1 ; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-objdump -d - | FileCheck %s
5 ; int test(int a, int b) {
17 @gbl = common local_unnamed_addr global i32 0, align 4
19 define i32 @test(i32, i32) local_unnamed_addr #0 {
20 %3 = icmp eq i32 %0, 2
21 br i1 %3, label %4, label %8
23 ; <label>:4: ; preds = %2
24 %5 = load i32, i32* @gbl, align 4
30 ; CHECK: if r1 != 2 goto +6 <LBB0_2>
32 ; <label>:8: ; preds = %2
33 %9 = icmp eq i32 %0, %1
34 %10 = load i32, i32* @gbl, align 4
35 br i1 %9, label %15, label %11
38 ; CHECK: r0 = *(u32 *)(r1 + 0)
41 ; CHECK: goto +7 <LBB0_4>
43 ; <label>:11: ; preds = %8
44 %12 = shl nsw i32 %10, 2
47 ; CHECK-LABEL: LBB0_2:
49 ; CHECK: r0 = *(u32 *)(r3 + 0)
52 ; CHECK: if r1 == r2 goto +4 <LBB0_5>
55 ; <label>:13: ; preds = %4, %11
56 %14 = phi i32 [ %12, %11 ], [ %7, %4 ]
57 store i32 %14, i32* @gbl, align 4
59 ; CHECK-LABEL: LBB0_4:
61 ; CHECK: *(u32 *)(r1 + 0) = r0
63 ; <label>:15: ; preds = %8, %13
64 %16 = phi i32 [ %14, %13 ], [ %10, %8 ]
66 ; CHECK-LABEL: LBB0_5:
69 attributes #0 = { norecurse nounwind }