summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/ext-vector.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-08 01:08:03 +0000
committerChris Lattner <sabre@nondot.org>2009-07-08 01:08:03 +0000
commit2a7deb64c0fe77947bed52fc7044d2b1c0b4ab5b (patch)
tree8184613057345e8a511bb3a962b50b61be37f402 /clang/test/CodeGen/ext-vector.c
parentd41531a2c0e820a67fd0bb5af03bbd3518edb556 (diff)
downloadbcm5719-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/CodeGen/ext-vector.c')
-rw-r--r--clang/test/CodeGen/ext-vector.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/test/CodeGen/ext-vector.c b/clang/test/CodeGen/ext-vector.c
index e3b6211ee99..4739a661cc0 100644
--- a/clang/test/CodeGen/ext-vector.c
+++ b/clang/test/CodeGen/ext-vector.c
@@ -115,9 +115,7 @@ void test7(int4 *ap, int4 *bp, int c) {
a /= c;
a %= c;
- // Vector comparisons can sometimes crash the x86 backend: rdar://6326239,
- // reject them until the implementation is stable.
-#if 0
+ // Vector comparisons.
int4 cmp;
cmp = a < b;
cmp = a <= b;
@@ -125,5 +123,4 @@ void test7(int4 *ap, int4 *bp, int c) {
cmp = a >= b;
cmp = a == b;
cmp = a != b;
-#endif
}
OpenPOWER on IntegriCloud