зеркало из https://github.com/microsoft/clang-1.git
The optimizers figured out how to make this store 6.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144597 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
2407712d90
Коммит
155fa39bb5
|
@ -53,11 +53,7 @@ int f2() {
|
|||
// CHECK-NEXT: [[CAUGHT:%.*]] = icmp eq i32 [[SETJMP]], 0
|
||||
// CHECK-NEXT: br i1 [[CAUGHT]]
|
||||
@try {
|
||||
// If the optimizers ever figure out how to make this store 6,
|
||||
// that's okay.
|
||||
// CHECK: [[T1:%.*]] = load i32* [[X]]
|
||||
// CHECK-NEXT: [[T2:%.*]] = add nsw i32 [[T1]], 1
|
||||
// CHECK-NEXT: store i32 [[T2]], i32* [[X]]
|
||||
// CHECK: store i32 6, i32* [[X]]
|
||||
x++;
|
||||
// CHECK-NEXT: call void asm sideeffect "", "*m,*m"(i32* [[X]]
|
||||
// CHECK-NEXT: call void @foo()
|
||||
|
|
Загрузка…
Ссылка в новой задаче