diff options
author | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-22 08:13:18 +0000 |
---|---|---|
committer | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-22 08:13:18 +0000 |
commit | 0ec9bb9076e6542555b4fbf43ce688548af587b4 (patch) | |
tree | 5338a01a224b38113ee2a7bec5e2e617e03e7d42 /gcc/testsuite/gcc.dg/vect/vect-22.c | |
parent | 31d58895a628a6337c33d9bb510996d33f808201 (diff) | |
download | gcc-0ec9bb9076e6542555b4fbf43ce688548af587b4.tar.gz |
* config/rs6000/altivec.md (xorv4sf3): New.
(negv4sf2, neg<mode>2): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103335 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/vect-22.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect-22.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/vect-22.c b/gcc/testsuite/gcc.dg/vect/vect-22.c index f15a4ff50fc..af46e8216ed 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-22.c +++ b/gcc/testsuite/gcc.dg/vect/vect-22.c @@ -42,6 +42,17 @@ main1 () 1,1,0,0,1,0,1,0, 1,1,0,0,1,0,1,0}; + float fa[N]; + float fb[N] = + {1,1,0,0,1,0,1,0, + 1,1,0,0,1,0,1,0, + 1,1,0,0,1,0,1,0, + 1,1,0,0,1,0,1,0, + 1,1,0,0,1,0,1,0, + 1,1,0,0,1,0,1,0, + 1,1,0,0,1,0,1,0, + 1,1,0,0,1,0,1,0}; + /* Check ints. */ for (i = 0; i < N; i++) @@ -84,6 +95,20 @@ main1 () abort (); } + /* Check floats. */ + + for (i = 0; i < N; i++) + { + fa[i] = -fb[i]; + } + + /* check results: */ + for (i = 0; i <N; i++) + { + if (fa[i] != -fb[i]) + abort (); + } + return 0; } @@ -94,7 +119,7 @@ int main (void) return main1 (); } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail *-*-* } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 4 loops" 1 "vect" } } */ /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */ /* { dg-final { cleanup-tree-dump "vect" } } */ |