Mercurial > hg > CbC > CbC_llvm
view llvm/test/CodeGen/AMDGPU/shrink-instructions-illegal-fold.mir @ 223:5f17cb93ff66 llvm-original
LLVM13 (2021/7/18)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:43:00 +0900 |
parents | 79ff65ed7e25 |
children |
line wrap: on
line source
# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=si-shrink-instructions --verify-machineinstrs %s -o - | FileCheck %s # Make sure immediate folding into V_CNDMASK respects constant bus restrictions. --- name: shrink_cndmask_illegal_imm_folding tracksRegLiveness: true body: | bb.0: liveins: $vgpr0, $vgpr1 ; CHECK-LABEL: name: shrink_cndmask_illegal_imm_folding ; CHECK: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0 ; CHECK: [[MOV:%[0-9]+]]:vgpr_32 = V_MOV_B32_e32 32768, implicit $exec ; CHECK: V_CMP_EQ_U32_e32 0, [[COPY]], implicit-def $vcc, implicit $exec ; CHECK: V_CNDMASK_B32_e32 [[MOV]], killed [[COPY]], implicit $vcc, implicit $exec %0:vgpr_32 = COPY $vgpr0 %1:vgpr_32 = V_MOV_B32_e32 32768, implicit $exec V_CMP_EQ_U32_e32 0, %0:vgpr_32, implicit-def $vcc, implicit $exec %2:vgpr_32 = V_CNDMASK_B32_e64 0, %1:vgpr_32, 0, killed %0:vgpr_32, $vcc, implicit $exec S_NOP 0 ...