1 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=verde
-show-encoding
%s
2>&1 | FileCheck
-check-prefix
=SI
%s
2 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=tonga
-show-encoding
%s
2>&1 | FileCheck
-check-prefix
=VI
%s
3 // RUN
: llvm-mc
-arch
=amdgcn
-mcpu
=gfx1010
-show-encoding
%s | FileCheck
-check-prefix
=GFX10
%s
5 exp prim v1
, off
, off
, off
6 // SI
: :5: error
: invalid operand for instruction
7 // VI
: :5: error
: invalid operand for instruction
8 // GFX10
: exp prim v1
, off
, off
, off ; encoding
: [0x41,0x01,0x00,0xf8,0x01,0x00,0x00,0x00]
10 exp prim v2
, v3
, off
, off
11 // SI
: :5: error
: invalid operand for instruction
12 // VI
: :5: error
: invalid operand for instruction
13 // GFX10
: exp prim v2
, v3
, off
, off ; encoding
: [0x43,0x01,0x00,0xf8,0x02,0x03,0x00,0x00]
15 exp pos4 v4
, v3
, v2
, v1
16 // SI
: error
: invalid exp target
17 // VI
: error
: invalid exp target
18 // GFX10
: exp pos4 v4
, v3
, v2
, v1 ; encoding
: [0x0f,0x01,0x00,0xf8,0x04,0x03,0x02,0x01]