diff options
Diffstat (limited to 'test/CodeGen/ext-vector.c')
-rw-r--r-- | test/CodeGen/ext-vector.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/test/CodeGen/ext-vector.c b/test/CodeGen/ext-vector.c index a222f94..a9fa151 100644 --- a/test/CodeGen/ext-vector.c +++ b/test/CodeGen/ext-vector.c @@ -252,7 +252,8 @@ int4 test13(int4 *V) { void test14(uint4 *ap, uint4 *bp, unsigned c) { uint4 a = *ap; uint4 b = *bp; - + int4 d; + // CHECK: udiv <4 x i32> // CHECK: urem <4 x i32> a = a / b; @@ -269,10 +270,19 @@ void test14(uint4 *ap, uint4 *bp, unsigned c) { // CHECK: icmp uge // CHECK: icmp eq // CHECK: icmp ne - a = a < b; - a = a <= b; - a = a > b; - a = a >= b; - a = a == b; - a = a != b; + d = a < b; + d = a <= b; + d = a > b; + d = a >= b; + 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; } |