1# RUN: llc -mtriple arm-- -run-pass=legalizer %s -o - | FileCheck %s 2# RUN: llc -mtriple thumb-- -mattr=+v6t2 -run-pass=legalizer %s -o - | FileCheck %s 3--- | 4 @a_global = global i32 42 5 define void @test_global_variable() { ret void } 6... 7--- 8name: test_global_variable 9# CHECK-LABEL: name: test_global_variable 10legalized: false 11# CHECK: legalized: true 12regBankSelected: false 13selected: false 14tracksRegLiveness: true 15registers: 16 - { id: 0, class: _ } 17 - { id: 1, class: _ } 18body: | 19 bb.0: 20 liveins: $r0 21 22 %0(s32) = COPY $r0 23 %1(p0) = G_GLOBAL_VALUE @a_global 24 ; G_GLOBAL_VALUE is legal, so we should find it unchanged in the output 25 ; CHECK: {{%[0-9]+}}:_(p0) = G_GLOBAL_VALUE @a_global 26 $r0 = COPY %1(p0) 27 BX_RET 14, $noreg, implicit $r0 28 29... 30