1# RUN: llc -march=amdgcn -run-pass=instruction-select -verify-machineinstrs -global-isel %s -o - | FileCheck %s -check-prefixes=GCN
2
3--- |
4  define amdgpu_kernel void @bitcast(i32 addrspace(1)* %global0) {ret void}
5...
6---
7
8name:            bitcast
9legalized:       true
10regBankSelected: true
11
12# GCN-LABEL: name: bitcast
13# GCN: [[A:%[0-9]+]]:vgpr_32 = COPY $vgpr0
14# GCN: [[B:%[0-9]+]]:vreg_64 = COPY $vgpr3_vgpr4
15# GCN: FLAT_STORE_DWORD [[B]], [[A]]
16
17body: |
18  bb.0:
19    liveins: $sgpr0, $vgpr3_vgpr4
20    %0:vgpr(s32) = COPY $vgpr0
21    %1:vgpr(s64) = COPY $vgpr3_vgpr4
22    %2:vgpr(<2 x s16>) = G_BITCAST %0
23    %3:vgpr(s32) = G_BITCAST %2
24    G_STORE %3, %1 :: (store 4 into %ir.global0)
25...
26---
27