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. 4 v_pk_add_u16 v1, v2, v3 op_sel 5 6 // GFX9: 32: error: failed parsing operand. 7 v_pk_add_u16 v1, v2, v3 op_sel: 8 9 // GFX9: 33: error: failed parsing operand. 10 v_pk_add_u16 v1, v2, v3 op_sel:[ 11 12 // GFX9: 33: error: failed parsing operand. 13 v_pk_add_u16 v1, v2, v3 op_sel:[] 14 15 // GFX9: 34: error: failed parsing operand. 16 v_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. 22 v_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. 28 v_pk_add_u16 v1, v2, v3 op_sel:[0,2] 29 30 // GFX9: 35: error: failed parsing operand. 31 v_pk_add_u16 v1, v2, v3 op_sel:[2,0] 32 33 // GFX9: 33: error: failed parsing operand. 34 v_pk_add_u16 v1, v2, v3 op_sel:[-1,0] 35 36 // GFX9: 35: error: failed parsing operand. 37 v_pk_add_u16 v1, v2, v3 op_sel:[0,-1] 38 39 // GFX9: 42: error: not a valid operand. 40 v_pk_add_u16 v1, v2, v3 op_sel:[0,0,0,0,0] 41 42 // XXGFX9: invalid operand for instruction 43 v_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. 51 v_pk_add_f16 v1, |v2|, v3 52 53 // GFX9: :18: error: invalid operand for instruction 54 v_pk_add_f16 v1, abs(v2), v3 55 56 // GFX9: :22: error: not a valid operand. 57 v_pk_add_f16 v1, v2, |v3| 58 59 // GFX9: :22: error: invalid operand for instruction 60 v_pk_add_f16 v1, v2, abs(v3) 61 62 // GFX9: :18: error: invalid operand for instruction 63 v_pk_add_f16 v1, -v2, v3 64 65 // GFX9: :22: error: invalid operand for instruction 66 v_pk_add_f16 v1, v2, -v3 67 68 // GFX9: :18: error: invalid operand for instruction 69 v_pk_add_u16 v1, abs(v2), v3 70 71 // GFX9: :18: error: invalid operand for instruction 72 v_pk_add_u16 v1, -v2, v3 73 74 // 75 // Constant bus restrictions 76 // 77 78 // GFX9: invalid operand (violates constant bus restrictions) 79 v_pk_add_f16 v255, s1, s2 80