summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/ext-vector.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-07-22 06:07:16 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-07-22 06:07:16 +0000
commit5ac69057c000cd3d3f7f8a834c2aef537894956f (patch)
tree3d5ef32753d0787c319b369f361882b138646e90 /clang/test/CodeGen/ext-vector.c
parent2e1d66847cf0682790c7cf14c6ced58c67c83667 (diff)
downloadbcm5719-llvm-5ac69057c000cd3d3f7f8a834c2aef537894956f.tar.gz
bcm5719-llvm-5ac69057c000cd3d3f7f8a834c2aef537894956f.zip
Make vectorized floating-point comparisons work without crashing.
llvm-svn: 76726
Diffstat (limited to 'clang/test/CodeGen/ext-vector.c')
-rw-r--r--clang/test/CodeGen/ext-vector.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ext-vector.c b/clang/test/CodeGen/ext-vector.c
index 4739a661cc0..6a246db6351 100644
--- a/clang/test/CodeGen/ext-vector.c
+++ b/clang/test/CodeGen/ext-vector.c
@@ -124,3 +124,17 @@ void test7(int4 *ap, int4 *bp, int c) {
cmp = a == b;
cmp = a != b;
}
+
+void test8(float4 *ap, float4 *bp, int c) {
+ float4 a = *ap;
+ float4 b = *bp;
+
+ // Vector comparisons.
+ int4 cmp;
+ cmp = a < b;
+ cmp = a <= b;
+ cmp = a < b;
+ cmp = a >= b;
+ cmp = a == b;
+ cmp = a != b;
+}
OpenPOWER on IntegriCloud