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