60 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 -show-encoding %s | FileCheck %s --check-prefix=GFX102// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck %s --check-prefix=NOGFX10 --implicit-check-not=error:3 4v_readfirstlane_b32 s0, lds_direct5// GFX10: v_readfirstlane_b32 s0, src_lds_direct ; encoding: [0xfe,0x04,0x00,0x7e]6 7v_readlane_b32 s0, lds_direct, s08// GFX10: v_readlane_b32 s0, src_lds_direct, s0 ; encoding: [0x00,0x00,0x60,0xd7,0xfe,0x00,0x00,0x00]9 10v_writelane_b32 v0, lds_direct, s011// GFX10: v_writelane_b32 v0, src_lds_direct, s0 ; encoding: [0x00,0x00,0x61,0xd7,0xfe,0x00,0x00,0x00]12 13v_permlane16_b32 v0, lds_direct, s0, s014// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction15 16v_permlanex16_b32 v0, lds_direct, s0, s017// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction18 19v_ashrrev_i16 v0, src_lds_direct, v020// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction21 22v_ashrrev_i32 v0, src_lds_direct, v023// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction24 25v_lshlrev_b16 v0, src_lds_direct, v026// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction27 28v_lshlrev_b32 v0, src_lds_direct, v029// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction30 31v_lshrrev_b16 v0, src_lds_direct, v032// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction33 34v_lshrrev_b32 v0, src_lds_direct, v035// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction36 37v_pk_ashrrev_i16 v0, src_lds_direct, v038// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction39 40v_pk_lshlrev_b16 v0, src_lds_direct, v041// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction42 43v_pk_lshrrev_b16 v0, src_lds_direct, v044// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction45 46v_subrev_co_ci_u32 v0, vcc_lo, src_lds_direct, v0, vcc_lo47// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction48 49v_subrev_co_u32 v0, s0, src_lds_direct, v050// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction51 52v_subrev_f16 v0, src_lds_direct, v053// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction54 55v_subrev_f32 v0, src_lds_direct, v056// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction57 58v_subrev_nc_u32 v0, src_lds_direct, v059// NOGFX10: :[[@LINE-1]]:{{[0-9]+}}: error: lds_direct cannot be used with this instruction60