clang/test/CodeGen/builtin-assume-aligned.c: Fix for -Asserts.

llvm-svn: 218507
This commit is contained in:
NAKAMURA Takumi 2014-09-26 09:37:15 +00:00
parent a9b7e661c8
commit 6ed6ef7ac2
1 changed files with 9 additions and 9 deletions

View File

@ -47,10 +47,10 @@ int *m1() __attribute__((assume_aligned(64)));
// CHECK-LABEL: @test5 // CHECK-LABEL: @test5
int test5() { int test5() {
return *m1(); return *m1();
// CHECK: %ptrint = ptrtoint // CHECK: [[PTRINT5:%.+]] = ptrtoint
// CHECK: %maskedptr = and i64 %ptrint, 63 // CHECK: [[MASKEDPTR5:%.+]] = and i64 [[PTRINT5]], 63
// CHECK: %maskcond = icmp eq i64 %maskedptr, 0 // CHECK: [[MASKCOND5:%.+]] = icmp eq i64 [[MASKEDPTR5]], 0
// CHECK: call void @llvm.assume(i1 %maskcond) // CHECK: call void @llvm.assume(i1 [[MASKCOND5]])
} }
int *m2() __attribute__((assume_aligned(64, 12))); int *m2() __attribute__((assume_aligned(64, 12)));
@ -58,10 +58,10 @@ int *m2() __attribute__((assume_aligned(64, 12)));
// CHECK-LABEL: @test6 // CHECK-LABEL: @test6
int test6() { int test6() {
return *m2(); return *m2();
// CHECK: %ptrint = ptrtoint // CHECK: [[PTRINT6:%.+]] = ptrtoint
// CHECK: %offsetptr = sub i64 %ptrint, 12 // CHECK: [[OFFSETPTR6:%.+]] = sub i64 [[PTRINT6]], 12
// CHECK: %maskedptr = and i64 %offsetptr, 63 // CHECK: [[MASKEDPTR6:%.+]] = and i64 [[OFFSETPTR6]], 63
// CHECK: %maskcond = icmp eq i64 %maskedptr, 0 // CHECK: [[MASKCOND6:%.+]] = icmp eq i64 [[MASKEDPTR6]], 0
// CHECK: call void @llvm.assume(i1 %maskcond) // CHECK: call void @llvm.assume(i1 [[MASKCOND6]])
} }