1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -O3 -mtriple=aarch64-- | FileCheck %s
4 define void @copyprop_after_mbp(i32 %v, ptr %a, ptr %b, ptr %c, ptr %d) {
5 ; CHECK-LABEL: copyprop_after_mbp:
7 ; CHECK-NEXT: cmp w0, #10
8 ; CHECK-NEXT: b.ne .LBB0_2
9 ; CHECK-NEXT: // %bb.1: // %bb.0
10 ; CHECK-NEXT: mov w8, #15 // =0xf
11 ; CHECK-NEXT: str w8, [x2]
12 ; CHECK-NEXT: mov w8, #1 // =0x1
13 ; CHECK-NEXT: str w8, [x1]
14 ; CHECK-NEXT: mov w8, #12 // =0xc
15 ; CHECK-NEXT: str w8, [x4]
17 ; CHECK-NEXT: .LBB0_2: // %bb.1
18 ; CHECK-NEXT: mov w9, #25 // =0x19
19 ; CHECK-NEXT: str w9, [x3]
20 ; CHECK-NEXT: str wzr, [x1]
21 ; CHECK-NEXT: mov w8, #12 // =0xc
22 ; CHECK-NEXT: str w8, [x4]
24 %1 = icmp eq i32 %v, 10
25 br i1 %1, label %bb.0, label %bb.1
28 store i32 15, ptr %b, align 4
32 store i32 25, ptr %c, align 4
36 %2 = phi i32 [ 1, %bb.0 ], [ 0, %bb.1 ]
37 store i32 %2, ptr %a, align 4
38 store i32 12, ptr %d, align 4