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: cmn x0, #5
9 ; CHECK-NEXT: b.le LBB0_3
10 ; CHECK-NEXT: ; %bb.1: ; %b3
11 ; CHECK-NEXT: ldr w8, [x8]
12 ; CHECK-NEXT: cbnz w8, LBB0_2
13 ; CHECK-NEXT: b LBB0_4
14 ; CHECK-NEXT: LBB0_2: ; %common.ret
16 ; CHECK-NEXT: LBB0_3: ; %b2
17 ; CHECK-NEXT: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
18 ; CHECK-NEXT: mov w0, #93 ; =0x5d
19 ; CHECK-NEXT: bl _extfunc
20 ; CHECK-NEXT: ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
21 ; CHECK-NEXT: cbz w0, LBB0_4
22 ; CHECK-NEXT: b LBB0_2
23 ; CHECK-NEXT: LBB0_4: ; %b7
24 ; CHECK-NEXT: mov w0, #13 ; =0xd
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, ptr 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 }