| # RUN: llc -march=amdgcn -mcpu=hawaii -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck %s -check-prefix=GCN |
| |
| --- |
| |
| name: fptoui |
| legalized: true |
| regBankSelected: true |
| |
| # GCN-LABEL: name: fptoui |
| body: | |
| bb.0: |
| liveins: $sgpr0, $vgpr0, $vgpr3_vgpr4 |
| |
| ; GCN: [[SGPR:%[0-9]+]]:sreg_32_xm0 = COPY $sgpr0 |
| %0:sgpr(s32) = COPY $sgpr0 |
| |
| ; GCN: [[VGPR:%[0-9]+]]:vgpr_32 = COPY $vgpr0 |
| %1:vgpr(s32) = COPY $vgpr0 |
| |
| %2:vgpr(p1) = COPY $vgpr3_vgpr4 |
| |
| ; fptoui s |
| ; GCN: V_CVT_U32_F32_e64 0, [[SGPR]], 0, 0 |
| %3:vgpr(s32) = G_FPTOUI %0 |
| |
| ; fptoui v |
| ; GCN: V_CVT_U32_F32_e64 0, [[VGPR]], 0, 0 |
| %4:vgpr(s32) = G_FPTOUI %1 |
| |
| G_STORE %3, %2 :: (store 4, addrspace 1) |
| G_STORE %4, %2 :: (store 4, addrspace 1) |
| ... |