1 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=gfx900
-show-encoding
%s
2>&1 | FileCheck
-check-prefixes
=GCN
,GFX9
%s
2 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=tonga
-show-encoding
%s
2>&1 | FileCheck
-check-prefixes
=GCN
,VI
%s
3 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=hawaii
-show-encoding
%s
2>&1 | FileCheck
-check-prefixes
=GCN
,CI
%s
6 // GCN
: :16: error
: invalid operand for instruction
9 // GCN
: :16: error
: invalid operand for instruction
11 // FIXME
: Better error for it requiring VOP1 encoding
13 // GFX9
: :1: error
: invalid instruction
, did you mean
: v_swap_b32?
14 // CI
: :1: error
: invalid instruction
15 // VI
: :1: error
: invalid instruction
18 // GCN
: :20: error
: invalid operand for instruction
21 // GCN
: :20: error
: invalid operand for instruction
23 v_swap_b32 v1
, v2
, v2
, v2
24 // GCN
: :20: error
: invalid operand for instruction
26 v_swap_codegen_pseudo_b32 v1
, v2
27 // GCN
: :1: error
: invalid instruction