[AMDGPU] Better more consistent error check lines

Checking for : before @LINE avoids the unlikely possibility that the
expected error line number happens to be a suffix of the actual one.
This commit is contained in:
Jay Foad 2022-11-29 12:45:28 +00:00
parent 30eff7f29f
commit 7ab83a7046
4 changed files with 338 additions and 338 deletions

View File

@ -1,65 +1,65 @@
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1100 %s 2>&1 | FileCheck --check-prefix=GFX11 --implicit-check-not=error: %s
s_delay_alu
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: too few operands for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: too few operands for instruction
s_delay_alu instid9(VALU_DEP_1)
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid field name instid9
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid field name instid9
s_delay_alu instid0(VALU_DEP_9)
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid value name VALU_DEP_9
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value name VALU_DEP_9
s_delay_alu instid0(1)
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: expected a value name
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: expected a value name
s_delay_alu instid0(VALU_DEP_9|)
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: expected a right parenthesis
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: expected a right parenthesis
s_delay_alu instid0(VALU_DEP_1) | (SALU_CYCLE_1)
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: expected a field name
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: expected a field name
s_delay_alu instid0(VALU_DEP_1) | SALU_CYCLE_1)
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
lds_direct_load v15 wait_vdst:16
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
lds_direct_load v15 wait_vdst
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_interp_p10_f32 v0, v1, v2, v3 wait_exp:8
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_interp_p2_f32 v0, -v1, v2, v3 wait_exp
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
global_atomic_cmpswap_x2 v[1:4], v3, v[5:8], off offset:2047 glc
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_cubesc_f32_e64_dpp v5, v1, v2, 12345678 row_shr:4 row_mask:0xf bank_mask:0xf
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_add3_u32_e64_dpp v5, v1, v2, 49812340 dpp8:[7,6,5,4,3,2,1,0]
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_add3_u32_e64_dpp v5, v1, s1, v0 dpp8:[7,6,5,4,3,2,1,0]
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_cvt_f32_i32_e64_dpp v5, s1 dpp8:[7,6,5,4,3,2,1,0]
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_cvt_f32_i32_e64_dpp v5, s1 row_shl:15 row_mask:0xf bank_mask:0xf
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_cvt_f16_u16_e64_dpp v5, s1 dpp8:[7,6,5,4,3,2,1,0]
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_cvt_f16_u16_e64_dpp v5, s1 row_shl:1 row_mask:0xf bank_mask:0xf
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
; disallow space between colons
v_dual_mul_f32 v0, v0, v2 : : v_dual_mul_f32 v1, v1, v3
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression
// On GFX11, v_dot8_i32_i4 is a valid SP3 alias for v_dot8_i32_iu4.
// However, we intentionally leave it unimplemented because on other
@ -85,22 +85,22 @@ v_cmpx_class_f32_e64_dpp s1, v2 dpp8:[7,6,5,4,3,2,1,0] fi:1
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_fma_mix_f32_e64_dpp v5, s1, v3, v4 quad_perm:[3,2,1,0]
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_fma_mix_f32_e64_dpp v5, v1, s3, v4 quad_perm:[3,2,1,0]
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_fma_mix_f32_e64_dpp v5, s1, v3, v4 dpp8:[7,6,5,4,3,2,1,0]
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_fma_mix_f32_e64_dpp v5, v1, s3, v4 dpp8:[7,6,5,4,3,2,1,0]
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_fma_mixhi_f16_e64_dpp v5, v1, 0, v4 quad_perm:[3,2,1,0]
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_fma_mixlo_f16_e64_dpp v5, v1, 1, v4 dpp8:[7,6,5,4,3,2,1,0]
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
buffer_store_d16_hi_format_x v[1:2], off, s[12:15], s4 offset:4095 glc slc dlc tfe
// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: TFE modifier has no meaning for store instructions
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: TFE modifier has no meaning for store instructions

View File

@ -69,35 +69,35 @@ flat_store_b32 v[3:4], v1 offset:16
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_store_b32 v[3:4], v1, off
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_store_b32 v[3:4], v1, s[0:1]
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_store_b32 v[3:4], v1, s0
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_load_b32 v1, v[3:4], off
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_load_b32 v1, v[3:4], s[0:1]
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_load_b32 v1, v[3:4], s0
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_load_b32 v1, v[3:4], exec_hi
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_store_b32 v[3:4], v1, exec_hi
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_store_b64 v[1:2], v[3:4]
@ -110,7 +110,7 @@ flat_store_b128 v[1:2], v[3:6]
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_swap_b32 v0, v[1:2], v3 offset:2047
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_swap_b32 v[1:2], v3 offset:2047 glc
@ -130,15 +130,15 @@ flat_atomic_swap_b32 v0, v[1:2], v3 glc slc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_swap_b32 v0, v[1:2], v3
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_swap_b32 v0, v[1:2], v3 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_swap_b32 v0, v[1:2], v3 offset:2047 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_swap_b64 v[1:2], v[3:4] offset:2047 glc
@ -165,15 +165,15 @@ flat_atomic_add_u32 v[3:4], v5 slc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_add_u32 v2, v[3:4], v5 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_add_u32 v1, v[3:4], v5 offset:8 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_cmpswap_b32 v0, v[1:2], v[3:4] offset:2047
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_cmpswap_b32 v[1:2], v[3:4] offset:2047 glc
@ -193,27 +193,27 @@ flat_atomic_cmpswap_b32 v0, v[1:2], v[3:4] glc slc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_cmpswap_b32 v0, v[1:2], v[3:4]
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_cmpswap_b32 v0, v[1:2], v[3:4] slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_cmpswap_b32 v0, v[1:2], v[3:4] offset:2047 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_cmpswap_b64 v[1:2], v[3:4] offset:2047
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_cmpswap_b64 v[1:2], v[3:4] offset:2047 glc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_cmpswap_b64 v[1:2], v[3:4] glc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
flat_atomic_cmpswap_b64 v[1:2], v[3:4], v[5:8] offset:2047 glc
@ -282,7 +282,7 @@ global_load_b32 v1, v[3:4], off offset:2048
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v[3:4], off offset:4096
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: expected a 13-bit signed offset
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 13-bit signed offset
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v[3:4], off offset:4 glc
@ -319,34 +319,34 @@ global_store_b32 v[3:4], v1, off offset:16
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_store_b32 v[3:4], v1
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: too few operands for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: too few operands for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_store_b32 v[3:4], v1, s[0:1]
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_store_b32 v[3:4], v1, s0
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v[3:4], off
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v[3:4], off, s[0:1]
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v[3:4], s0
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v[3:4], exec_hi
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_store_b32 v[3:4], v1, exec_hi
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_store_b64 v[1:2], v[3:4], off
@ -359,15 +359,15 @@ global_store_b128 v[1:2], v[3:6], off
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v0, v[1:2], v3, off offset:2047
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v[1:2], v3 offset:2047 glc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: not a valid operand
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v[1:2], v3 glc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v0, v[1:2], v3, off offset:2047 glc
@ -383,15 +383,15 @@ global_atomic_swap_b32 v0, v[1:2], v3, off glc slc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v0, v[1:2], v3, off
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v0, v[1:2], v3, off slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v0, v[1:2], v3, off offset:2047 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b64 v[1:2], v[3:4], v[5:6], off offset:2047 glc
@ -407,15 +407,15 @@ global_atomic_swap_b64 v[1:2], v[3:4], v[5:6], off glc slc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_add_u32 v2, v[3:4], off, v5 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_add_u32 v1, v[3:4], off, v5 offset:8 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b32 v0, v[1:2], v[3:4], off offset:2047
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b32 v0, v[1:2], v[3:4], off offset:2047 glc
@ -431,19 +431,19 @@ global_atomic_cmpswap_b32 v0, v[1:2], v[3:4], off glc slc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b32 v0, v[1:2], off, v[3:4]
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b32 v0, v[1:2], v[3:4], off slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b32 v0, v[1:2], v[3:4], off offset:2047 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b64 v[1:2], v[3:4], off offset:2047
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b64 v[1:2], v[3:4], v[5:8], off offset:2047 glc
@ -459,7 +459,7 @@ global_atomic_cmpswap_b64 v[1:2], v[3:4], v[5:8], off glc slc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_x2 v[1:4], v3, v[5:8], off offset:2047 glc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error:
global_load_d16_u8 v1, v[3:4], off
@ -492,7 +492,7 @@ global_load_addtid_b32 v1, off
// GLOBAL With saddr
global_load_u8 v1, v3, s2
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_u8 v1, v3, s[2:3]
@ -517,7 +517,7 @@ global_load_b32 v1, v3, s[2:3] offset:-1
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v3, s[2:3] offset:-4097
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: expected a 13-bit signed offset
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 13-bit signed offset
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v3, s[2:3] offset:2047
@ -527,7 +527,7 @@ global_load_b32 v1, v3, s[2:3] offset:2048
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v3, s[2:3] offset:4096
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: expected a 13-bit signed offset
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 13-bit signed offset
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v3, s[2:3] offset:4 glc
@ -564,33 +564,33 @@ global_store_b32 v3, v1, s[2:3] offset:16
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_store_b32 v3, v1
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: too few operands for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: too few operands for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_store_b32 v3, v1, s[0:1]
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_store_b32 v3, v1, s0
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v3, s[2:3]
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v3, s[2:3], s[0:1]
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v3, s0
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_load_b32 v1, v3, exec_hi
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_store_b32 v3, v1, exec_hi
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_store_b64 v1, v[2:3], s[2:3]
@ -603,15 +603,15 @@ global_store_b128 v1, v[3:6], s[2:3]
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v0, v[1:2], v3, s[2:3] offset:2047
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v[1:2], v3 offset:2047 glc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: not a valid operand
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v[1:2], v3 glc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v0, v1, v3, s[2:3] offset:2047 glc
@ -627,15 +627,15 @@ global_atomic_swap_b32 v0, v1, v3, s[2:3] glc slc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v0, v1, v3, s[2:3]
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v0, v1, v3, s[2:3] slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b32 v0, v[1:2], v3, s[2:3] offset:2047 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_swap_b64 v[1:2], v3, v[5:6], s[2:3] offset:2047 glc
@ -651,15 +651,15 @@ global_atomic_swap_b64 v[1:2], v3, v[5:6], s[2:3] glc slc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_add_u32 v2, v3, s[2:3], v5 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_add_u32 v1, v3, s[2:3], v5 offset:8 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b32 v0, v1, v3, s[2:3] offset:2047
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b32 v0, v1, v[2:3], s[2:3] offset:2047 glc
@ -675,19 +675,19 @@ global_atomic_cmpswap_b32 v0, v1, v[2:3], s[2:3] glc slc
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b32 v0, v1, s[2:3], v3
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b32 v0, v1, v3, s[2:3] slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b32 v0, v1, v3, s[2:3] offset:2047 slc
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b64 v[1:2], v3, s[2:3] offset:2047
// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// VI-GFX9_10-ERR: error: instruction not supported on this GPU
global_atomic_cmpswap_b64 v[1:2], v3, v[5:8], s[2:3] offset:2047 glc

View File

@ -5,7 +5,7 @@
.amdhsa_user_sgpr_queue_ptr 1
.amdhsa_next_free_vgpr 32
.amdhsa_next_free_sgpr 32
// ERR: [[@LINE+1]]:19: error: amdgpu_user_sgpr_count smaller than than implied by enabled user SGPRs
// ERR: :[[@LINE+1]]:19: error: amdgpu_user_sgpr_count smaller than than implied by enabled user SGPRs
.end_amdhsa_kernel
.amdhsa_kernel implied_count_too_low_1
@ -13,5 +13,5 @@
.amdhsa_user_sgpr_queue_ptr 1
.amdhsa_next_free_vgpr 32
.amdhsa_next_free_sgpr 32
// ERR: [[@LINE+1]]:19: error: amdgpu_user_sgpr_count smaller than than implied by enabled user SGPRs
// ERR: :[[@LINE+1]]:19: error: amdgpu_user_sgpr_count smaller than than implied by enabled user SGPRs
.end_amdhsa_kernel

File diff suppressed because it is too large Load Diff