brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · fce011e Raw
82 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck %s --check-prefix=NOGFX9 --implicit-check-not=error:2 3//---------------------------------------------------------------------------//4// lds_direct may be used only with vector ALU instructions5//---------------------------------------------------------------------------//6 7s_and_b32 s2, lds_direct, s18// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction9 10//---------------------------------------------------------------------------//11// lds_direct may not be used with "REV" opcodes12//---------------------------------------------------------------------------//13 14v_ashrrev_i16 v0, lds_direct, v015// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction16 17v_ashrrev_i32 v0, lds_direct, v018// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction19 20v_lshlrev_b16 v0, lds_direct, v021// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction22 23v_lshlrev_b32 v0, lds_direct, v024// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction25 26v_lshrrev_b16 v0, lds_direct, v027// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction28 29v_lshrrev_b32 v0, lds_direct, v030// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction31 32v_pk_ashrrev_i16 v0, lds_direct, v033// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction34 35v_pk_lshlrev_b16 v0, lds_direct, v036// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction37 38v_pk_lshrrev_b16 v0, lds_direct, v039// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction40 41v_subbrev_co_u32 v0, vcc, src_lds_direct, v0, vcc42// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction43 44v_subrev_co_u32 v0, vcc, src_lds_direct, v045// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction46 47v_subrev_f16 v0, src_lds_direct, v048// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction49 50v_subrev_u16 v0, src_lds_direct, v051// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction52 53v_subrev_u32 v0, src_lds_direct, v054// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction55 56//---------------------------------------------------------------------------//57// lds_direct may not be used with v_writelane_b32 for VI/GFX958//---------------------------------------------------------------------------//59 60v_writelane_b32 v0, lds_direct, s061// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode62 63//---------------------------------------------------------------------------//64// lds_direct cannot be used with 64-bit and larger operands65//---------------------------------------------------------------------------//66 67v_add_f64 v[0:1], lds_direct, v[0:1]68// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction69 70//---------------------------------------------------------------------------//71// Only SRC0 may specify lds_direct72//---------------------------------------------------------------------------//73 74v_add_i32 v0, v0, lds_direct75// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct may be used as src0 only76 77v_add_i32 lds_direct, v0, v078// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction79 80v_fma_f32 v0, v0, v0, lds_direct81// NOGFX9: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct may be used as src0 only82