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
4 @a_global = global i32 42
5 define void @test_global_variable() { ret void }
8 name: test_global_variable
9 # CHECK-LABEL: name: test_global_variable
11 # CHECK: legalized: true
12 regBankSelected: false
14 tracksRegLiveness: true
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
27 BX_RET 14, $noreg, implicit $r0