1 ; RUN: opt < %s -mem2reg -simplifycfg -S | FileCheck -enable-var-scope %s
3 define i32 @test(i32 %x) {
6 %y = alloca i32, align 4
7 %tobool = icmp ne i32 %x, 0
8 br i1 %tobool, label %if.then, label %if.else
12 ; CHECK: [[ASM1:%.*]] = call i32 asm "mov $0, #1", "=r"()
13 %tmp1 = call i32 asm "mov $0, #1", "=r"() nounwind readnone
14 store i32 %tmp1, i32* %y, align 4
19 ; CHECK: [[ASM2:%.*]] = call i32 asm "mov $0, #2", "=r"()
20 %tmp2 = call i32 asm "mov $0, #2", "=r"() nounwind readnone
21 store i32 %tmp2, i32* %y, align 4
26 ; CHECK: {{%.*}} = phi i32 [ [[ASM1]], %if.then ], [ [[ASM2]], %if.else ]
27 %tmp3 = load i32, i32* %y, align 4