57 lines · plain
1# RUN: llc -o - %s -mtriple=aarch64-apple-ios -run-pass=aarch64-collect-loh -debug-only=aarch64-collect-loh 2>&1 | FileCheck %s2# REQUIRES: asserts3--- |4 @rrdpb = local_unnamed_addr global i32 zeroinitializer, align 85 6 define internal void @test_use_between() {7 ret void8 }9 define internal void @test_no_use_between() {10 ret void11 }12 13...14# CHECK-LABEL: ********** AArch64 Collect LOH **********15# CHECK-LABEL: Looking in function test_use_between16# Check that we don't have an AdrpAdd LOH because there's a use of the ADD defreg17# in between the two.18# CHECK-NOT: MCLOH_AdrpAdd19 20# CHECK-LABEL: Looking in function test_no_use_between21# CHECK: MCLOH_AdrpAdd22---23name: test_use_between24alignment: 425tracksRegLiveness: true26liveins:27 - { reg: '$x11', virtual-reg: '' }28 - { reg: '$x12', virtual-reg: '' }29body: |30 bb.0:31 liveins: $x11, $x1232 renamable $x15 = ADRP target-flags(aarch64-page) @rrdpb33 STRXui renamable $x12, killed renamable $x11, 1 :: (store (s64))34 renamable $x11 = ADDXri killed renamable $x15, target-flags(aarch64-pageoff, aarch64-nc) @rrdpb, 035 STRXui renamable $x11, killed renamable $x11, 036 RET undef $lr37 38...39 40---41name: test_no_use_between42alignment: 443tracksRegLiveness: true44liveins:45 - { reg: '$x11', virtual-reg: '' }46 - { reg: '$x12', virtual-reg: '' }47body: |48 bb.0:49 liveins: $x11, $x1250 STRXui renamable $x12, killed renamable $x11, 1 :: (store (s64))51 renamable $x15 = ADRP target-flags(aarch64-page) @rrdpb52 renamable $x11 = ADDXri killed renamable $x15, target-flags(aarch64-pageoff, aarch64-nc) @rrdpb, 053 STRXui renamable $x11, killed renamable $x11, 054 RET undef $lr55 56...57