[AMDGPU][MC][NFC] Correct error message

Differential Revision: https://reviews.llvm.org/D134028
This commit is contained in:
Dmitry Preobrazhensky 2022-09-16 18:18:32 +03:00
parent 591452eb23
commit ef8feb6359
11 changed files with 58 additions and 58 deletions

View File

@ -4353,7 +4353,7 @@ bool AMDGPUAsmParser::validateVOPLiteral(const MCInst &Inst,
} }
if (NumLiterals > 1) { if (NumLiterals > 1) {
Error(getLitLoc(Operands, true), "only one literal operand is allowed"); Error(getLitLoc(Operands, true), "only one unique literal operand is allowed");
return false; return false;
} }
@ -4613,7 +4613,7 @@ bool AMDGPUAsmParser::validateInstruction(const MCInst &Inst,
} }
if (!validateSOPLiteral(Inst)) { if (!validateSOPLiteral(Inst)) {
Error(getLitLoc(Operands), Error(getLitLoc(Operands),
"only one literal operand is allowed"); "only one unique literal operand is allowed");
return false; return false;
} }
if (!validateVOPLiteral(Inst, Operands)) { if (!validateVOPLiteral(Inst, Operands)) {

View File

@ -55,19 +55,19 @@ v_lshlrev_b64 v[5:6], u-1, v[2:3]
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
s_sub_u32 s0, 123, u s_sub_u32 s0, 123, u
// NOGFX10: error: only one literal operand is allowed // NOGFX10: error: only one unique literal operand is allowed
s_sub_u32 s0, u, u s_sub_u32 s0, u, u
// NOGFX10: error: only one literal operand is allowed // NOGFX10: error: only one unique literal operand is allowed
s_sub_u32 s0, u, u1 s_sub_u32 s0, u, u1
// NOGFX10: error: only one literal operand is allowed // NOGFX10: error: only one unique literal operand is allowed
v_bfe_u32 v0, v2, 123, u v_bfe_u32 v0, v2, 123, u
// NOGFX10: error: only one literal operand is allowed // NOGFX10: error: only one unique literal operand is allowed
v_bfe_u32 v0, v2, u, u v_bfe_u32 v0, v2, u, u
// NOGFX10: error: only one literal operand is allowed // NOGFX10: error: only one unique literal operand is allowed
v_bfe_u32 v0, v2, u, u1 v_bfe_u32 v0, v2, u, u1
// NOGFX10: error: only one literal operand is allowed // NOGFX10: error: only one unique literal operand is allowed

View File

@ -14,13 +14,13 @@ v_mov_b32_sdwa v1, sext(u)
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
s_sub_u32 s0, 123, u s_sub_u32 s0, 123, u
// NOGFX9: error: only one literal operand is allowed // NOGFX9: error: only one unique literal operand is allowed
s_sub_u32 s0, u, u s_sub_u32 s0, u, u
// NOGFX9: error: only one literal operand is allowed // NOGFX9: error: only one unique literal operand is allowed
s_sub_u32 s0, u, u1 s_sub_u32 s0, u, u1
// NOGFX9: error: only one literal operand is allowed // NOGFX9: error: only one unique literal operand is allowed
v_bfe_u32 v0, v2, v3, u v_bfe_u32 v0, v2, v3, u
// NOGFX9: error: literal operands are not supported // NOGFX9: error: literal operands are not supported

View File

@ -280,19 +280,19 @@ v_mov_b32_dpp v5, v1 dpp8:[0,1,2,3,4,5,6,7]
v_fmaak_f32 v0, 0xff32ff, v0, 0x11213141 v_fmaak_f32 v0, 0xff32ff, v0, 0x11213141
// GFX6-9: error: instruction not supported on this GPU // GFX6-9: error: instruction not supported on this GPU
// GFX10: error: only one literal operand is allowed // GFX10: error: only one unique literal operand is allowed
v_fmamk_f32 v0, 0xff32ff, 0x11213141, v0 v_fmamk_f32 v0, 0xff32ff, 0x11213141, v0
// GFX6-9: error: instruction not supported on this GPU // GFX6-9: error: instruction not supported on this GPU
// GFX10: error: only one literal operand is allowed // GFX10: error: only one unique literal operand is allowed
v_fmaak_f32 v0, 0xff32, v0, 0x1122 v_fmaak_f32 v0, 0xff32, v0, 0x1122
// GFX6-9: error: instruction not supported on this GPU // GFX6-9: error: instruction not supported on this GPU
// GFX10: error: only one literal operand is allowed // GFX10: error: only one unique literal operand is allowed
v_fmamk_f32 v0, 0xff32, 0x1122, v0 v_fmamk_f32 v0, 0xff32, 0x1122, v0
// GFX6-9: error: instruction not supported on this GPU // GFX6-9: error: instruction not supported on this GPU
// GFX10: error: only one literal operand is allowed // GFX10: error: only one unique literal operand is allowed
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// VOP2 E64. // VOP2 E64.

View File

@ -1037,50 +1037,50 @@ v_mov_b32 v0, v0 row_bcast:0
// CHECK-NEXT:{{^}} ^ // CHECK-NEXT:{{^}} ^
//============================================================================== //==============================================================================
// only one literal operand is allowed // only one unique literal operand is allowed
s_and_b32 s2, 0x12345678, 0x12345679 s_and_b32 s2, 0x12345678, 0x12345679
// CHECK: error: only one literal operand is allowed // CHECK: error: only one unique literal operand is allowed
// CHECK-NEXT:{{^}}s_and_b32 s2, 0x12345678, 0x12345679 // CHECK-NEXT:{{^}}s_and_b32 s2, 0x12345678, 0x12345679
// CHECK-NEXT:{{^}} ^ // CHECK-NEXT:{{^}} ^
v_add_f64 v[0:1], 1.23456, -abs(1.2345) v_add_f64 v[0:1], 1.23456, -abs(1.2345)
// CHECK: error: only one literal operand is allowed // CHECK: error: only one unique literal operand is allowed
// CHECK-NEXT:{{^}}v_add_f64 v[0:1], 1.23456, -abs(1.2345) // CHECK-NEXT:{{^}}v_add_f64 v[0:1], 1.23456, -abs(1.2345)
// CHECK-NEXT:{{^}} ^ // CHECK-NEXT:{{^}} ^
v_min3_i16 v5, 0x5678, 0x5678, 0x5679 v_min3_i16 v5, 0x5678, 0x5678, 0x5679
// CHECK: error: only one literal operand is allowed // CHECK: error: only one unique literal operand is allowed
// CHECK-NEXT:{{^}}v_min3_i16 v5, 0x5678, 0x5678, 0x5679 // CHECK-NEXT:{{^}}v_min3_i16 v5, 0x5678, 0x5678, 0x5679
// CHECK-NEXT:{{^}} ^ // CHECK-NEXT:{{^}} ^
v_pk_add_f16 v1, 25.0, 25.1 v_pk_add_f16 v1, 25.0, 25.1
// CHECK: error: only one literal operand is allowed // CHECK: error: only one unique literal operand is allowed
// CHECK-NEXT:{{^}}v_pk_add_f16 v1, 25.0, 25.1 // CHECK-NEXT:{{^}}v_pk_add_f16 v1, 25.0, 25.1
// CHECK-NEXT:{{^}} ^ // CHECK-NEXT:{{^}} ^
v_fma_mix_f32 v5, 0x7c, 0x7b, 1 v_fma_mix_f32 v5, 0x7c, 0x7b, 1
// CHECK: error: only one literal operand is allowed // CHECK: error: only one unique literal operand is allowed
// CHECK-NEXT:{{^}}v_fma_mix_f32 v5, 0x7c, 0x7b, 1 // CHECK-NEXT:{{^}}v_fma_mix_f32 v5, 0x7c, 0x7b, 1
// CHECK-NEXT:{{^}} ^ // CHECK-NEXT:{{^}} ^
v_pk_add_i16 v5, 0x7c, 0x4000 v_pk_add_i16 v5, 0x7c, 0x4000
// CHECK: error: only one literal operand is allowed // CHECK: error: only one unique literal operand is allowed
// CHECK-NEXT:{{^}}v_pk_add_i16 v5, 0x7c, 0x4000 // CHECK-NEXT:{{^}}v_pk_add_i16 v5, 0x7c, 0x4000
// CHECK-NEXT:{{^}} ^ // CHECK-NEXT:{{^}} ^
v_pk_add_i16 v5, 0x4400, 0x4000 v_pk_add_i16 v5, 0x4400, 0x4000
// CHECK: error: only one literal operand is allowed // CHECK: error: only one unique literal operand is allowed
// CHECK-NEXT:{{^}}v_pk_add_i16 v5, 0x4400, 0x4000 // CHECK-NEXT:{{^}}v_pk_add_i16 v5, 0x4400, 0x4000
// CHECK-NEXT:{{^}} ^ // CHECK-NEXT:{{^}} ^
v_bfe_u32 v0, v2, 123, undef v_bfe_u32 v0, v2, 123, undef
// CHECK: error: only one literal operand is allowed // CHECK: error: only one unique literal operand is allowed
// CHECK-NEXT:{{^}}v_bfe_u32 v0, v2, 123, undef // CHECK-NEXT:{{^}}v_bfe_u32 v0, v2, 123, undef
// CHECK-NEXT:{{^}} ^ // CHECK-NEXT:{{^}} ^
v_bfe_u32 v0, v2, undef, 123 v_bfe_u32 v0, v2, undef, 123
// CHECK: error: only one literal operand is allowed // CHECK: error: only one unique literal operand is allowed
// CHECK-NEXT:{{^}}v_bfe_u32 v0, v2, undef, 123 // CHECK-NEXT:{{^}}v_bfe_u32 v0, v2, undef, 123
// CHECK-NEXT:{{^}} ^ // CHECK-NEXT:{{^}} ^

View File

@ -5,7 +5,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
v_dual_mul_f32 v11, 0x24681357, v2 :: v_dual_mul_f32 v10, 0xbabe, v5 v_dual_mul_f32 v11, 0x24681357, v2 :: v_dual_mul_f32 v10, 0xbabe, v5
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_mul_f32 v11, 0x24681357, v2 :: v_dual_mul_f32 v10, 0xbabe, v5 // GFX11-NEXT:{{^}}v_dual_mul_f32 v11, 0x24681357, v2 :: v_dual_mul_f32 v10, 0xbabe, v5
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^
@ -15,27 +15,27 @@ v_dual_mul_f32 v11, 0x24681357, v2 :: v_dual_mul_f32 v10, 0x
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
v_dual_fmamk_f32 v122, v74, 0xa0172923, v161 :: v_dual_lshlrev_b32 v247, 0xbabe, v99 v_dual_fmamk_f32 v122, v74, 0xa0172923, v161 :: v_dual_lshlrev_b32 v247, 0xbabe, v99
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, v74, 0xa0172923, v161 :: v_dual_lshlrev_b32 v247, 0xbabe, v99 // GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, v74, 0xa0172923, v161 :: v_dual_lshlrev_b32 v247, 0xbabe, v99
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^
v_dual_add_f32 v5, 0xaf123456, v2 :: v_dual_fmaak_f32 v6, v3, v1, 0xbabe v_dual_add_f32 v5, 0xaf123456, v2 :: v_dual_fmaak_f32 v6, v3, v1, 0xbabe
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_add_f32 v5, 0xaf123456, v2 :: v_dual_fmaak_f32 v6, v3, v1, 0xbabe // GFX11-NEXT:{{^}}v_dual_add_f32 v5, 0xaf123456, v2 :: v_dual_fmaak_f32 v6, v3, v1, 0xbabe
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^
v_dual_add_f32 v5, 0xaf123456, v2 :: v_dual_fmaak_f32 v6, 0xbabe, v1, 0xbabe v_dual_add_f32 v5, 0xaf123456, v2 :: v_dual_fmaak_f32 v6, 0xbabe, v1, 0xbabe
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_add_f32 v5, 0xaf123456, v2 :: v_dual_fmaak_f32 v6, 0xbabe, v1, 0xbabe // GFX11-NEXT:{{^}}v_dual_add_f32 v5, 0xaf123456, v2 :: v_dual_fmaak_f32 v6, 0xbabe, v1, 0xbabe
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^
v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0x1234, v162 v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0x1234, v162
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0x1234, v162 // GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0x1234, v162
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^
v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, s0, 0x1234, v162 v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, s0, 0x1234, v162
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, s0, 0x1234, v162 // GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, s0, 0x1234, v162
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^
@ -44,22 +44,22 @@ v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v12
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0x1234, v162 v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0x1234, v162
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0x1234, v162 // GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0x1234, v162
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^
v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0x1234, 0xdeadbeef, v162 v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0x1234, 0xdeadbeef, v162
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0x1234, 0xdeadbeef, v162 // GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0xdeadbeef, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0x1234, 0xdeadbeef, v162
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^
v_dual_fmamk_f32 v122, 0xdeadbeef, 0x1234, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0xdeadbeef, v162 v_dual_fmamk_f32 v122, 0xdeadbeef, 0x1234, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0xdeadbeef, v162
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0xdeadbeef, 0x1234, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0xdeadbeef, v162 // GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0xdeadbeef, 0x1234, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0xdeadbeef, v162
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^
v_dual_fmamk_f32 v122, 0x1234, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0xdeadbeef, v162 v_dual_fmamk_f32 v122, 0x1234, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0xdeadbeef, v162
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0x1234, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0xdeadbeef, v162 // GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, 0x1234, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, 0xdeadbeef, 0xdeadbeef, v162
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^
@ -69,7 +69,7 @@ v_dual_fmamk_f32 v122, 0x1234, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v12
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
v_dual_fmamk_f32 v122, s0, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, s0, 0x1234, v162 v_dual_fmamk_f32 v122, s0, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, s0, 0x1234, v162
// GFX11: error: only one literal operand is allowed // GFX11: error: only one unique literal operand is allowed
// GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, s0, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, s0, 0x1234, v162 // GFX11-NEXT:{{^}}v_dual_fmamk_f32 v122, s0, 0xdeadbeef, v161 :: v_dual_fmamk_f32 v123, s0, 0x1234, v162
// GFX11-NEXT:{{^}} ^ // GFX11-NEXT:{{^}} ^

View File

@ -843,18 +843,18 @@ v_madak_f32 v0, shared_base, v0, 0x11213141
// NOGCN: error: invalid operand (violates constant bus restrictions) // NOGCN: error: invalid operand (violates constant bus restrictions)
v_madak_f32 v0, scc, v0, 0x11213141 v_madak_f32 v0, scc, v0, 0x11213141
// NOGCN: error: only one literal operand is allowed // NOGCN: error: only one unique literal operand is allowed
v_madak_f32 v0, 0xff32ff, v0, 0x11213141 v_madak_f32 v0, 0xff32ff, v0, 0x11213141
// NOGCN: error: only one literal operand is allowed // NOGCN: error: only one unique literal operand is allowed
v_madmk_f32 v0, 0xff32ff, 0x11213141, v0 v_madmk_f32 v0, 0xff32ff, 0x11213141, v0
// NOSICI: error: instruction not supported on this GPU // NOSICI: error: instruction not supported on this GPU
// NOGFX89: error: only one literal operand is allowed // NOGFX89: error: only one unique literal operand is allowed
v_madak_f16 v0, 0xff32, v0, 0x1122 v_madak_f16 v0, 0xff32, v0, 0x1122
// NOSICI: error: instruction not supported on this GPU // NOSICI: error: instruction not supported on this GPU
// NOGFX89: error: only one literal operand is allowed // NOGFX89: error: only one unique literal operand is allowed
v_madmk_f16 v0, 0xff32, 0x1122, v0 v_madmk_f16 v0, 0xff32, 0x1122, v0
// NOSICIVI: error: register not available on this GPU // NOSICIVI: error: register not available on this GPU

View File

@ -30,11 +30,11 @@ v_pk_add_f16 v1, 0x1000ffff, v2
v_pk_mad_i16 v5, 0x3c00, 0x4000, 0x4400 v_pk_mad_i16 v5, 0x3c00, 0x4000, 0x4400
// GFX9: error: literal operands are not supported // GFX9: error: literal operands are not supported
// GFX10: error: only one literal operand is allowed // GFX10: error: only one unique literal operand is allowed
v_pk_mad_i16 v5, 0x3c00, 0x4000, 2 v_pk_mad_i16 v5, 0x3c00, 0x4000, 2
// GFX9: error: literal operands are not supported // GFX9: error: literal operands are not supported
// GFX10: error: only one literal operand is allowed // GFX10: error: only one unique literal operand is allowed
v_pk_mad_i16 v5, 0x3c00, 3, 2 v_pk_mad_i16 v5, 0x3c00, 3, 2
// GFX9: error: literal operands are not supported // GFX9: error: literal operands are not supported

View File

@ -7,7 +7,7 @@ s_cbranch_g_fork s[6:7], 100
// GCN: error: invalid operand for instruction // GCN: error: invalid operand for instruction
s_and_b32 s2, 0x12345678, 0x12345679 s_and_b32 s2, 0x12345678, 0x12345679
// GCN: error: only one literal operand is allowed // GCN: error: only one unique literal operand is allowed
s_and_b64 s[2:3], 0x12345678, 0x12345679 s_and_b64 s[2:3], 0x12345678, 0x12345679
// GCN: error: only one literal operand is allowed // GCN: error: only one unique literal operand is allowed

View File

@ -28,7 +28,7 @@ s_set_gpr_idx_on s0, gpr_idx(SRC0,
// VI: error: expected a VGPR index mode // VI: error: expected a VGPR index mode
s_cmp_eq_i32 0x12345678, 0x12345679 s_cmp_eq_i32 0x12345678, 0x12345679
// GCN: error: only one literal operand is allowed // GCN: error: only one unique literal operand is allowed
s_cmp_eq_u64 0x12345678, 0x12345679 s_cmp_eq_u64 0x12345678, 0x12345679
// GCN: error: only one literal operand is allowed // GCN: error: only one unique literal operand is allowed

View File

@ -32,7 +32,7 @@ v_bfe_u32 v0, 0x3039, 0x3039, 0x3039
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_bfe_u32 v0, 0x3039, s1, 0x3038 v_bfe_u32 v0, 0x3039, s1, 0x3038
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_bfe_u32 v0, 0x3039, v1, v2 v_bfe_u32 v0, 0x3039, v1, v2
@ -40,7 +40,7 @@ v_bfe_u32 v0, 0x3039, v1, v2
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_bfe_u32 v0, 0x3039, 0x12345, v2 v_bfe_u32 v0, 0x3039, 0x12345, v2
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_bfe_u32 v0, s1, 0x3039, s1 v_bfe_u32 v0, s1, 0x3039, s1
@ -64,7 +64,7 @@ v_bfm_b32_e64 v0, 0x3039, 0x3039
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_bfm_b32_e64 v0, 0x3039, 0x3038 v_bfm_b32_e64 v0, 0x3039, 0x3038
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_pk_add_f16 v1, 25.0, v2 v_pk_add_f16 v1, 25.0, v2
@ -84,7 +84,7 @@ v_pk_add_f16 v1, 25.0, 25.0
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_pk_add_f16 v1, 25.0, 25.1 v_pk_add_f16 v1, 25.0, 25.1
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_pk_add_u16 v1, -200, v2 v_pk_add_u16 v1, -200, v2
@ -156,7 +156,7 @@ v_add_f64 v[0:1], 1.23456, -abs(1.23456)
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_add_f64 v[0:1], 1.23456, -abs(1.2345) v_add_f64 v[0:1], 1.23456, -abs(1.2345)
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_max_i16_e64 v5, 0xfe0b, v2 v_max_i16_e64 v5, 0xfe0b, v2
@ -188,11 +188,11 @@ v_min3_i16 v5, 0x5678, 0x5678, 0x5678
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_min3_i16 v5, 0x5678, 0x5679, 0x5678 v_min3_i16 v5, 0x5678, 0x5679, 0x5678
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_min3_i16 v5, 0x5678, 0x5678, 0x5679 v_min3_i16 v5, 0x5678, 0x5678, 0x5679
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_add_nc_u16 v5, 0xfe0b, v2 v_add_nc_u16 v5, 0xfe0b, v2
@ -256,7 +256,7 @@ v_cmp_f_i32_e64 s[10:11], 0xaf123456, 0xaf123456
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_cmp_f_i32_e64 s[10:11], 0xaf123456, 0xaf123455 v_cmp_f_i32_e64 s[10:11], 0xaf123456, 0xaf123455
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_cmp_f_u64_e64 s[10:11], 0xaf123456, v[2:3] v_cmp_f_u64_e64 s[10:11], 0xaf123456, v[2:3]
@ -284,7 +284,7 @@ v_cmpx_class_f32_e64 0xaf123456, 0xaf123456
// GFX9-ERR: error: operands are not valid for this GPU or mode // GFX9-ERR: error: operands are not valid for this GPU or mode
v_cmpx_class_f32_e64 0xaf123456, 0xaf123455 v_cmpx_class_f32_e64 0xaf123456, 0xaf123455
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: operands are not valid for this GPU or mode // GFX9-ERR: error: operands are not valid for this GPU or mode
v_cmpx_lt_i16_e64 v1, 0x3456 v_cmpx_lt_i16_e64 v1, 0x3456
@ -364,7 +364,7 @@ v_pk_add_i16 v5, 0xab7b, 0xab7b
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_pk_add_i16 v5, 0xab7b, 0xab7a v_pk_add_i16 v5, 0xab7b, 0xab7a
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_div_fmas_f32 v5, v1, 0x123, v3 v_div_fmas_f32 v5, v1, 0x123, v3
@ -388,7 +388,7 @@ v_div_fmas_f64 v[5:6], 0x12345678, 0x12345678, 0x12345678
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_div_fmas_f64 v[5:6], v[1:2], 0x123457, 0x123456 v_div_fmas_f64 v[5:6], v[1:2], 0x123457, 0x123456
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_ldexp_f64 v[5:6], 0.12345, v2 v_ldexp_f64 v[5:6], 0.12345, v2
@ -400,5 +400,5 @@ v_ldexp_f64 v[5:6], 0.12345, 0x3fbf9a6b
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported
v_ldexp_f64 v[5:6], 0.12345, 0x3fbf9a6c v_ldexp_f64 v[5:6], 0.12345, 0x3fbf9a6c
// GFX10-ERR: error: only one literal operand is allowed // GFX10-ERR: error: only one unique literal operand is allowed
// GFX9-ERR: error: literal operands are not supported // GFX9-ERR: error: literal operands are not supported