summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/ext-vector.c
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2012-01-16 21:02:28 +0000
committerTanya Lattner <tonic@nondot.org>2012-01-16 21:02:28 +0000
commit20248226a99c734b68c97115804e7ae45edab6f9 (patch)
treef7bdda12d000da249061c58e3984ff4ce635ea15 /clang/test/CodeGen/ext-vector.c
parent2dfa79325c570fbb83d24ac1d192fa61e2a4b4f6 (diff)
downloadbcm5719-llvm-20248226a99c734b68c97115804e7ae45edab6f9.tar.gz
bcm5719-llvm-20248226a99c734b68c97115804e7ae45edab6f9.zip
Add support for OpenCL 1.1 logical operations.
llvm-svn: 148254
Diffstat (limited to 'clang/test/CodeGen/ext-vector.c')
-rw-r--r--clang/test/CodeGen/ext-vector.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ext-vector.c b/clang/test/CodeGen/ext-vector.c
index 896814bc24a..1387b139ca8 100644
--- a/clang/test/CodeGen/ext-vector.c
+++ b/clang/test/CodeGen/ext-vector.c
@@ -277,3 +277,12 @@ void test14(uint4 *ap, uint4 *bp, unsigned c) {
d = a == b;
d = a != b;
}
+
+// CHECK: @test15
+int4 test15(uint4 V0) {
+ // CHECK: icmp eq <4 x i32>
+ int4 V = !V0;
+ V = V && V;
+ V = V || V;
+ return V;
+} \ No newline at end of file
OpenPOWER on IntegriCloud