brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 999ea42 Raw
34 lines · plain
1# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx950 -run-pass=greedy,amdgpu-rewrite-agpr-copy-mfma -verify-machineinstrs -o - %s 2>&1 | FileCheck %s2# CHECK: Illegal virtual register for instruction3# CHECK: Expected a VGPR_32 register, but got a AGPR_32 register4 5# Test for issue in amdgpu-rewrite-agpr-copy-mfma, which reassigns scale operand6# in vgpr_32 register to agpr_32, not permitted by instruction format.7---8name:            test9tracksRegLiveness: true10body:             |11  bb.0:12    liveins:13 14    %0:vgpr_32 = IMPLICIT_DEF15    %1:av_128_align2 = IMPLICIT_DEF16    undef %2.sub0:vreg_128_align2 = IMPLICIT_DEF17 18  bb.1:19    liveins:20 21    %3:vgpr_32 = IMPLICIT_DEF22    %4:av_128_align2 = IMPLICIT_DEF23    %5:vreg_128_align2 = V_MFMA_SCALE_F32_16X16X128_F8F6F4_f4_f4_vgprcd_e64 %4, %1, %2, 4, 4, %3, %0, 4, 0, implicit $mode, implicit $exec24    %6:agpr_32 = IMPLICIT_DEF25    %0:vgpr_32 = COPY %626    S_CBRANCH_SCC1 %bb.1, implicit undef $scc27    S_BRANCH %bb.228 29  bb.2:30    liveins:31 32    S_ENDPGM 033...34