1// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX9 %s 2 3// GFX9: 31: error: failed parsing operand. 4v_pk_add_u16 v1, v2, v3 op_sel 5 6// GFX9: 32: error: failed parsing operand. 7v_pk_add_u16 v1, v2, v3 op_sel: 8 9// GFX9: 33: error: failed parsing operand. 10v_pk_add_u16 v1, v2, v3 op_sel:[ 11 12// GFX9: 33: error: failed parsing operand. 13v_pk_add_u16 v1, v2, v3 op_sel:[] 14 15// GFX9: 34: error: failed parsing operand. 16v_pk_add_u16 v1, v2, v3 op_sel:[,] 17 18// XXGFX9: 34: error: failed parsing operand. 19// v_pk_add_u16 v1, v2, v3 op_sel:[0] 20 21// GFX9: 35: error: failed parsing operand. 22v_pk_add_u16 v1, v2, v3 op_sel:[0,] 23 24// XXGFX9: 36: error: failed parsing operand. 25// v_pk_add_u16 v1, v2, v3 op_sel:[,0] 26 27// GFX9: 36: error: failed parsing operand. 28v_pk_add_u16 v1, v2, v3 op_sel:[0,2] 29 30// GFX9: 35: error: failed parsing operand. 31v_pk_add_u16 v1, v2, v3 op_sel:[2,0] 32 33// GFX9: 33: error: failed parsing operand. 34v_pk_add_u16 v1, v2, v3 op_sel:[-1,0] 35 36// GFX9: 35: error: failed parsing operand. 37v_pk_add_u16 v1, v2, v3 op_sel:[0,-1] 38 39// GFX9: 42: error: not a valid operand. 40v_pk_add_u16 v1, v2, v3 op_sel:[0,0,0,0,0] 41 42// XXGFX9: invalid operand for instruction 43v_pk_add_u16 v1, v2, v3 neg_lo:[0,0] 44 45// 46// Regular modifiers on packed instructions 47// 48 49// FIXME: should be invalid operand for instruction 50// GFX9: :18: error: not a valid operand. 51v_pk_add_f16 v1, |v2|, v3 52 53// GFX9: :18: error: invalid operand for instruction 54v_pk_add_f16 v1, abs(v2), v3 55 56// GFX9: :22: error: not a valid operand. 57v_pk_add_f16 v1, v2, |v3| 58 59// GFX9: :22: error: invalid operand for instruction 60v_pk_add_f16 v1, v2, abs(v3) 61 62// GFX9: :18: error: invalid operand for instruction 63v_pk_add_f16 v1, -v2, v3 64 65// GFX9: :22: error: invalid operand for instruction 66v_pk_add_f16 v1, v2, -v3 67 68// GFX9: :18: error: invalid operand for instruction 69v_pk_add_u16 v1, abs(v2), v3 70 71// GFX9: :18: error: invalid operand for instruction 72v_pk_add_u16 v1, -v2, v3 73 74// 75// Constant bus restrictions 76// 77 78// GFX9: invalid operand (violates constant bus restrictions) 79v_pk_add_f16 v255, s1, s2 80