1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -march=hexagon < %s | FileCheck %s
4 ; Function Attrs: nounwind
5 define i32 @f0(i32 %a0, i32 %a1, i32 %a2) #0 {
7 ; CHECK: // %bb.0: // %b0
9 ; CHECK-NEXT: p0 = !tstbit(r1,r2)
10 ; CHECK-NEXT: r17:16 = combine(r0,r1)
11 ; CHECK-NEXT: memd(r29+#-16) = r17:16
12 ; CHECK-NEXT: allocframe(#8)
13 ; CHECK-NEXT: } // 8-byte Folded Spill
15 ; CHECK-NEXT: if (p0) jump:nt .LBB0_2
17 ; CHECK-NEXT: // %bb.1: // %b1
22 ; CHECK-NEXT: jump .LBB0_3
24 ; CHECK-NEXT: .LBB0_2: // %b2
28 ; CHECK-NEXT: .LBB0_3: // %b3
31 ; CHECK-NEXT: r1 = add(r16,#2)
32 ; CHECK-NEXT: r0 = r17
36 ; CHECK-NEXT: r17:16 = memd(r29+#0)
37 ; CHECK-NEXT: dealloc_return
38 ; CHECK-NEXT: } // 8-byte Folded Reload
41 %v1 = and i32 %v0, %a1
42 %v2 = icmp eq i32 %v1, 0
43 br i1 %v2, label %b2, label %b1
46 tail call void @f1() #0
50 %v3 = tail call i32 @f2() #0
53 b3: ; preds = %b2, %b1
54 %v4 = add nsw i32 %a1, 2
55 %v5 = tail call i32 @f3(i32 %a0, i32 %v4) #0
65 attributes #0 = { nounwind }