reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX9 %s

// GFX9: 25: error: invalid operand for instruction
v_pk_add_u16 v1, v2, v3 op_sel

// GFX9: 32: error: expected a left square bracket
v_pk_add_u16 v1, v2, v3 op_sel:

// GFX9: 33: error: unknown token in expression
v_pk_add_u16 v1, v2, v3 op_sel:[

// GFX9: 33: error: unknown token in expression
v_pk_add_u16 v1, v2, v3 op_sel:[]

// GFX9: 33: error: unknown token in expression
v_pk_add_u16 v1, v2, v3 op_sel:[,]

// XXGFX9: 34: error: failed parsing operand.
// v_pk_add_u16 v1, v2, v3 op_sel:[0]

// GFX9: 35: error: expected a comma
v_pk_add_u16 v1, v2, v3 op_sel:[0 0]

// GFX9: 35: error: unknown token in expression
v_pk_add_u16 v1, v2, v3 op_sel:[0,]

// GFX9: 33: error: unknown token in expression
v_pk_add_u16 v1, v2, v3 op_sel:[,0]

// GFX9: 42: error: expected a closing square bracket
v_max3_f16 v5, v1, v2, v3 op_sel:[1,1,1,1,

// GFX9: 42: error: expected a closing square bracket
v_max3_f16 v5, v1, v2, v3 op_sel:[1,1,1,1[

// GFX9: 43: error: expected a closing square bracket
v_max3_f16 v5, v1, v2, v3 op_sel:[1,1,1,1 1

// GFX9: 35: error: invalid op_sel value.
v_pk_add_u16 v1, v2, v3 op_sel:[0,2]

// GFX9: 33: error: invalid op_sel value.
v_pk_add_u16 v1, v2, v3 op_sel:[2,0]

// GFX9: 33: error: invalid op_sel value.
v_pk_add_u16 v1, v2, v3 op_sel:[-1,0]

// GFX9: 35: error: invalid op_sel value.
v_pk_add_u16 v1, v2, v3 op_sel:[0,-1]

// GFX9: 40: error: expected a closing square bracket
v_pk_add_u16 v1, v2, v3 op_sel:[0,0,0,0,0]

// XXGFX9: invalid operand for instruction
v_pk_add_u16 v1, v2, v3 neg_lo:[0,0]

//
// Regular modifiers on packed instructions
//

// FIXME: should be invalid operand for instruction
// GFX9: :18: error: not a valid operand.
v_pk_add_f16 v1, |v2|, v3

// GFX9: :18: error: not a valid operand
v_pk_add_f16 v1, abs(v2), v3

// GFX9: :22: error: not a valid operand.
v_pk_add_f16 v1, v2, |v3|

// GFX9: :22: error: not a valid operand.
v_pk_add_f16 v1, v2, abs(v3)

// GFX9: :18: error: not a valid operand.
v_pk_add_f16 v1, -v2, v3

// GFX9: :22: error: not a valid operand.
v_pk_add_f16 v1, v2, -v3

// GFX9: :18: error: not a valid operand.
v_pk_add_u16 v1, abs(v2), v3

// GFX9: :18: error: not a valid operand.
v_pk_add_u16 v1, -v2, v3

//
// Constant bus restrictions
//

// GFX9: invalid operand (violates constant bus restrictions)
v_pk_add_f16 v255, s1, s2