diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-08 01:08:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-08 01:08:03 +0000 |
commit | 2a7deb64c0fe77947bed52fc7044d2b1c0b4ab5b (patch) | |
tree | 8184613057345e8a511bb3a962b50b61be37f402 /clang/test/Sema/exprs.c | |
parent | d41531a2c0e820a67fd0bb5af03bbd3518edb556 (diff) | |
download | bcm5719-llvm-2a7deb64c0fe77947bed52fc7044d2b1c0b4ab5b.tar.gz bcm5719-llvm-2a7deb64c0fe77947bed52fc7044d2b1c0b4ab5b.zip |
reimplement vector comparisons as [fi]cmp+sext instead of using v[if]cmp.
Also, enable them in sema so that they are tested, and now that the x86 backend
has stablized.
llvm-svn: 74983
Diffstat (limited to 'clang/test/Sema/exprs.c')
-rw-r--r-- | clang/test/Sema/exprs.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/test/Sema/exprs.c b/clang/test/Sema/exprs.c index 3fd1437da88..faa6c285c60 100644 --- a/clang/test/Sema/exprs.c +++ b/clang/test/Sema/exprs.c @@ -94,15 +94,12 @@ void test13( P = ^(){}; // expected-error {{blocks support disabled - compile with -fblocks}} } - -// rdar://6326239 - Vector comparisons are not fully trusted yet, until the -// backend is known to work, just unconditionally reject them. void test14() { typedef long long __m64 __attribute__((__vector_size__(8))); typedef short __v4hi __attribute__((__vector_size__(8))); + // Ok. __v4hi a; - __m64 mask = (__m64)((__v4hi)a > // expected-error {{comparison of vector types ('__v4hi' and '__v4hi') not supported yet}} - (__v4hi)a); + __m64 mask = (__m64)((__v4hi)a > (__v4hi)a); } |