1 # RUN: llc -o - %s -mtriple=aarch64-apple-ios -run-pass=aarch64-collect-loh -debug-only=aarch64-collect-loh 2>&1 | FileCheck %s
4 @rrdpb = local_unnamed_addr global i32 zeroinitializer, align 8
6 define internal void @test_use_between() {
9 define internal void @test_no_use_between() {
14 # CHECK-LABEL: ********** AArch64 Collect LOH **********
15 # CHECK-LABEL: Looking in function test_use_between
16 # Check that we don't have an AdrpAdd LOH because there's a use of the ADD defreg
18 # CHECK-NOT: MCLOH_AdrpAdd
20 # CHECK-LABEL: Looking in function test_no_use_between
21 # CHECK: MCLOH_AdrpAdd
23 name: test_use_between
25 tracksRegLiveness: true
27 - { reg: '$x11', virtual-reg: '' }
28 - { reg: '$x12', virtual-reg: '' }
32 renamable $x15 = ADRP target-flags(aarch64-page) @rrdpb
33 STRXui renamable $x12, killed renamable $x11, 1 :: (store (s64))
34 renamable $x11 = ADDXri killed renamable $x15, target-flags(aarch64-pageoff, aarch64-nc) @rrdpb, 0
35 STRXui renamable $x11, killed renamable $x11, 0
41 name: test_no_use_between
43 tracksRegLiveness: true
45 - { reg: '$x11', virtual-reg: '' }
46 - { reg: '$x12', virtual-reg: '' }
50 STRXui renamable $x12, killed renamable $x11, 1 :: (store (s64))
51 renamable $x15 = ADRP target-flags(aarch64-page) @rrdpb
52 renamable $x11 = ADDXri killed renamable $x15, target-flags(aarch64-pageoff, aarch64-nc) @rrdpb, 0
53 STRXui renamable $x11, killed renamable $x11, 0