1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -march=hexagon -O2 < %s | FileCheck %s
4 ; Check that we don't generate .falign directives after function calls at O2.
5 ; We need more than one basic block for this test because MachineBlockPlacement
6 ; will not run on single basic block functions.
10 ; We don't want faligns after the calls to foo.
12 define i32 @f1(i32 %a0) #0 {
14 ; CHECK: // %bb.0: // %b0
16 ; CHECK-NEXT: if (!p0.new) r0 = add(r0,#5)
17 ; CHECK-NEXT: p0 = cmp.eq(r0,#0)
18 ; CHECK-NEXT: if (!p0.new) jumpr:nt r31
20 ; CHECK-NEXT: .LBB0_1: // %b1
23 ; CHECK-NEXT: memd(r29+#-16) = r17:16
24 ; CHECK-NEXT: allocframe(#8)
25 ; CHECK-NEXT: } // 8-byte Folded Spill
28 ; CHECK-NEXT: r16 = r0
31 ; CHECK-NEXT: r0 = add(r16,r0)
32 ; CHECK-NEXT: r17:16 = memd(r29+#0)
33 ; CHECK-NEXT: deallocframe
34 ; CHECK-NEXT: } // 8-byte Folded Reload
36 ; CHECK-NEXT: jumpr r31
39 %v0 = icmp eq i32 %a0, 0
40 br i1 %v0, label %b1, label %b2
45 %v3 = add i32 %v1, %v2
53 attributes #0 = { nounwind }