1# RUN: llc -march=amdgcn -mcpu=hawaii -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=GCN 2# RUN: llc -march=amdgcn -mcpu=fiji -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=GCN 3 4# REQUIRES: global-isel 5 6--- | 7 define amdgpu_kernel void @global_addrspace(i32 addrspace(1)* %global0) { ret void } 8... 9--- 10 11name: global_addrspace 12legalized: true 13regBankSelected: true 14 15# GCN: global_addrspace 16# GCN: [[PTR:%[0-9]+]]:vreg_64 = COPY $vgpr0_vgpr1 17# GCN: FLAT_LOAD_DWORD [[PTR]], 0, 0, 0 18 19body: | 20 bb.0: 21 liveins: $vgpr0_vgpr1 22 23 %0:vgpr(p1) = COPY $vgpr0_vgpr1 24 %1:vgpr(s32) = G_LOAD %0 :: (load 4 from %ir.global0) 25 $vgpr0 = COPY %1 26 27... 28--- 29