summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/simd-1b.c
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-15 10:33:51 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-15 10:33:51 +0000
commit491255f5c9be1f72a785f6ccdcefd5d36675d441 (patch)
treecddc58e82c86c8f543c8c9fe3f96bcc986824672 /gcc/testsuite/gcc.dg/simd-1b.c
parentd5058a954b173f22eba48ed05469f54841f6f107 (diff)
downloadgcc-491255f5c9be1f72a785f6ccdcefd5d36675d441.tar.gz
* c-common.h (same_scalar_type_ignoring_signedness): Protoize.
* c-common.c (same_scalar_type_ignoring_signedness): New. * c-typeck.c (build_binary_op): Check compatability of vector types. Move error report after switch. Do not clobber code[01] on *_DIV_EXPR case. * testsuite/gcc.dg/simd-1.c: Update error messages. * testsuite/gcc.dg/simd-1b.c: Re-enable tests. Update error messages. * testsuite/gcc.dg/simd-2.c: Update error messages. * testsuite/gcc.dg/simd-4.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100976 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/simd-1b.c')
-rw-r--r--gcc/testsuite/gcc.dg/simd-1b.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/testsuite/gcc.dg/simd-1b.c b/gcc/testsuite/gcc.dg/simd-1b.c
index d40fb0469ca..56d94b91c68 100644
--- a/gcc/testsuite/gcc.dg/simd-1b.c
+++ b/gcc/testsuite/gcc.dg/simd-1b.c
@@ -14,23 +14,23 @@ void
hanneke ()
{
/* Operators on compatible SIMD types. */
- a %= b; /* { dg-bogus "invalid operands to binary %" "" { xfail *-*-* } } */
+ a %= b; /* { dg-error "invalid operands to binary %" } */
c &= d;
a |= b;
c ^= d;
- a >>= b; /* { dg-bogus "invalid operands to binary >>" "" { xfail *-*-* } } */
- c <<= d; /* { dg-bogus "invalid operands to binary <<" "" { xfail *-*-* } } */
+ a >>= b; /* { dg-error "invalid operands to binary >>" } */
+ c <<= d; /* { dg-error "invalid operands to binary <<" } */
a = +b;
c = ~d;
/* Operators on incompatible SIMD types. */
-/* a = b % c; { dg*error "can't convert between vector values of different size" } */
- a = b % c; /* { dg-bogus "invalid operands to binary %" "" { xfail *-*-* } } */
- d = c & b; /* { dg-error "can't convert between vector values of different size" } */
- a = b | c; /* { dg-error "can't convert between vector values of different size" } */
- d = c ^ b; /* { dg-error "can't convert between vector values of different size" } */
-/* a = b >> c; { dg*error "can't convert between vector values of different size" } */
- a = b >> c; /* { dg-bogus "invalid operands to binary >>" "" { xfail *-*-* } } */
-/* d = c << b; { dg*error "can't convert between vector values of different size" } */
- d = c << b; /* { dg-bogus "invalid operands to binary <<" "" { xfail *-*-* } } */
+ a = b % c; /* { dg-error "invalid operands to binary" } */
+ a = b % c; /* { dg-error "invalid operands to binary" } */
+ d = c & b; /* { dg-error "invalid operands to binary" } */
+ a = b | c; /* { dg-error "invalid operands to binary" } */
+ d = c ^ b; /* { dg-error "invalid operands to binary" } */
+ a = b >> c; /* { dg-error "invalid operands to binary" } */
+ a = b >> c; /* { dg-error "invalid operands to binary" } */
+ d = c << b; /* { dg-error "invalid operands to binary" } */
+ d = c << b; /* { dg-error "invalid operands to binary" } */
}