30 lines · plain
1# RUN: llc -mtriple arm-- -run-pass=legalizer %s -o - | FileCheck %s2# RUN: llc -mtriple thumb-- -mattr=+v6t2 -run-pass=legalizer %s -o - | FileCheck %s3--- |4 @a_global = global i32 425 define void @test_global_variable() { ret void }6...7---8name: test_global_variable9# CHECK-LABEL: name: test_global_variable10legalized: false11# CHECK: legalized: true12regBankSelected: false13selected: false14tracksRegLiveness: true15registers:16 - { id: 0, class: _ }17 - { id: 1, class: _ }18body: |19 bb.0:20 liveins: $r021 22 %0(s32) = COPY $r023 %1(p0) = G_GLOBAL_VALUE @a_global24 ; G_GLOBAL_VALUE is legal, so we should find it unchanged in the output25 ; CHECK: {{%[0-9]+}}:_(p0) = G_GLOBAL_VALUE @a_global26 $r0 = COPY %1(p0)27 BX_RET 14, $noreg, implicit $r028 29...30