1# RUN: llc -mtriple=i386-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X32 2--- | 3 4 @g_int = global i32 0, align 4 5 6 define i32* @test_global_ptrv() { 7 entry: 8 ret i32* @g_int 9 } 10... 11--- 12name: test_global_ptrv 13# ALL-LABEL: name: test_global_ptrv 14alignment: 4 15legalized: false 16regBankSelected: false 17# ALL: registers: 18# ALL-NEXT: - { id: 0, class: _, preferred-register: '' } 19registers: 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 24body: | 25 bb.1.entry: 26 %0(p0) = G_GLOBAL_VALUE @g_int 27 $eax = COPY %0(p0) 28 RET 0, implicit $rax 29 30... 31