1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-apple-darwin -aarch64-cbz-offset-bits=3 < %s | FileCheck %s
5 define void @split_block_no_fallthrough(i64 %val) #0 {
6 ; CHECK-LABEL: split_block_no_fallthrough:
7 ; CHECK: ; %bb.0: ; %bb
8 ; CHECK-NEXT: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
9 ; CHECK-NEXT: cmn x0, #5 ; =5
10 ; CHECK-NEXT: b.le LBB0_3
11 ; CHECK-NEXT: ; %bb.1: ; %b3
12 ; CHECK-NEXT: ldr w8, [x8]
13 ; CHECK-NEXT: cbnz w8, LBB0_2
14 ; CHECK-NEXT: b LBB0_4
15 ; CHECK-NEXT: LBB0_2: ; %b8
16 ; CHECK-NEXT: ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
18 ; CHECK-NEXT: LBB0_3: ; %b2
19 ; CHECK-NEXT: mov w0, #93
20 ; CHECK-NEXT: bl _extfunc
21 ; CHECK-NEXT: cbnz w0, LBB0_2
22 ; CHECK-NEXT: LBB0_4: ; %b7
23 ; CHECK-NEXT: mov w0, #13
24 ; CHECK-NEXT: ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
25 ; CHECK-NEXT: b _extfunc
27 %c0 = icmp sgt i64 %val, -5
28 br i1 %c0, label %b3, label %b2
31 %v0 = tail call i32 @extfunc(i32 93)
32 %c1 = icmp eq i32 %v0, 0
33 br i1 %c1, label %b7, label %b8
36 %v1 = load volatile i32, i32* undef, align 4
37 %c2 = icmp eq i32 %v1, 0
38 br i1 %c2, label %b7, label %b8
41 %tmp1 = tail call i32 @extfunc(i32 13)
48 declare i32 @extfunc(i32) #0
50 attributes #0 = { nounwind }