aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-08 00:15:53 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-08 00:15:53 +0000
commit6647986cd986521b5607b82d770f57d001f46acf (patch)
tree5142fcf999c7d12e2212d24022d582ea4598f23e
parent774d8b4679ce1317da0f18336c3d27bdb11e5f63 (diff)
clang/test/CodeGenOpenCL/shifts.cl: Fixup for -Asserts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171820 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGenOpenCL/shifts.cl16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/CodeGenOpenCL/shifts.cl b/test/CodeGenOpenCL/shifts.cl
index b84ec1eeef..51be668ae0 100644
--- a/test/CodeGenOpenCL/shifts.cl
+++ b/test/CodeGenOpenCL/shifts.cl
@@ -5,24 +5,24 @@
//CHECK: @positiveShift32
int positiveShift32(int a,int b) {
- //CHECK: %shl.mask = and i32 %b, 31
- //CHECK-NEXT: %shl = shl i32 %a, %shl.mask
+ //CHECK: [[M32:%.+]] = and i32 %b, 31
+ //CHECK-NEXT: [[C32:%.+]] = shl i32 %a, [[M32]]
int c = a<<b;
int d = ((int)1)<<33;
- //CHECK-NEXT: %add = add nsw i32 %shl, 2
+ //CHECK-NEXT: [[E32:%.+]] = add nsw i32 [[C32]], 2
int e = c + d;
- //CHECK-NEXT: ret i32 %add
+ //CHECK-NEXT: ret i32 [[E32]]
return e;
}
//CHECK: @positiveShift64
long positiveShift64(long a,long b) {
- //CHECK: %shr.mask = and i64 %b, 63
- //CHECK-NEXT: %shr = ashr i64 %a, %shr.mask
+ //CHECK: [[M64:%.+]] = and i64 %b, 63
+ //CHECK-NEXT: [[C64:%.+]] = ashr i64 %a, [[M64]]
long c = a>>b;
long d = ((long)8)>>65;
- //CHECK-NEXT: %add = add nsw i64 %shr, 4
+ //CHECK-NEXT: [[E64:%.+]] = add nsw i64 [[C64]], 4
long e = c + d;
- //CHECK-NEXT: ret i64 %add
+ //CHECK-NEXT: ret i64 [[E64]]
return e;
}