1 # RUN: llc -mtriple=i386-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X32
4 @g_int = global i32 0, align 4
6 define i32* @test_global_ptrv() {
12 name: test_global_ptrv
13 # ALL-LABEL: name: test_global_ptrv
16 regBankSelected: false
18 # ALL-NEXT: - { id: 0, class: _, preferred-register: '' }
20 - { id: 0, class: _, preferred-register: '' }
21 # ALL: %0:_(p0) = G_GLOBAL_VALUE @g_int
22 # ALL-NEXT: $eax = COPY %0(p0)
23 # ALL-NEXT: RET 0, implicit $rax
26 %0(p0) = G_GLOBAL_VALUE @g_int