2019-07-09 22:30:57 +08:00
|
|
|
# RUN: llc -march=amdgcn -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck %s -check-prefixes=GCN
|
2018-05-11 05:20:10 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: bitcast
|
|
|
|
legalized: true
|
|
|
|
regBankSelected: true
|
2019-07-09 22:30:57 +08:00
|
|
|
tracksRegLiveness: true
|
2018-05-11 05:20:10 +08:00
|
|
|
|
|
|
|
# GCN-LABEL: name: bitcast
|
|
|
|
# GCN: [[A:%[0-9]+]]:vgpr_32 = COPY $vgpr0
|
2019-07-09 22:30:57 +08:00
|
|
|
# GCN: S_ENDPGM 0, implicit [[A]]
|
2018-05-11 05:20:10 +08:00
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2019-07-09 22:30:57 +08:00
|
|
|
liveins: $vgpr0
|
2018-05-11 05:20:10 +08:00
|
|
|
%0:vgpr(s32) = COPY $vgpr0
|
2019-07-09 22:30:57 +08:00
|
|
|
%1:vgpr(<2 x s16>) = G_BITCAST %0
|
|
|
|
%2:vgpr(s32) = G_BITCAST %1
|
|
|
|
S_ENDPGM 0, implicit %2
|
2018-05-11 05:20:10 +08:00
|
|
|
...
|