1 // RUN
: llvm-mc
-triple
=amdgcn
-mcpu
=gfx900
-show-encoding
%s | FileCheck
-check-prefix
=GFX9
%s
2 // RUN
: not llvm-mc
-triple
=amdgcn
-mcpu
=tonga
2>&1 %s | FileCheck
-check-prefix
=VI-ERR
--implicit-check-
not=error
: %s
4 buffer_load_ubyte_d16 v1
, off
, s
[4:7], s1
5 // VI-ERR
: :[[@LINE-
1]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
6 // GFX9
: buffer_load_ubyte_d16 v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x80,0xe0,0x00,0x01,0x01,0x01]
8 buffer_load_ubyte_d16_hi v1
, off
, s
[4:7], s1
9 // GFX9
: buffer_load_ubyte_d16_hi v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x84,0xe0,0x00,0x01,0x01,0x01]
10 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
12 buffer_load_ubyte_d16_hi v
[1:2], off
, s
[4:7], s1 tfe
13 // GFX9
: buffer_load_ubyte_d16_hi v
[1:2], off
, s
[4:7], s1 tfe ; encoding
: [0x00,0x00,0x84,0xe0,0x00,0x01,0x81,0x01]
14 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
16 buffer_load_sbyte_d16 v1
, off
, s
[4:7], s1
17 // GFX9
: buffer_load_sbyte_d16 v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x88,0xe0,0x00,0x01,0x01,0x01]
18 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
20 buffer_load_sbyte_d16_hi v1
, off
, s
[4:7], s1
21 // GFX9
: buffer_load_sbyte_d16_hi v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x8c,0xe0,0x00,0x01,0x01,0x01]
22 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
24 buffer_load_short_d16 v1
, off
, s
[4:7], s1
25 // GFX9
: buffer_load_short_d16 v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x90,0xe0,0x00,0x01,0x01,0x01]
26 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
28 buffer_load_short_d16_hi v1
, off
, s
[4:7], s1
29 // GFX9
: buffer_load_short_d16_hi v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x94,0xe0,0x00,0x01,0x01,0x01]
30 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
32 buffer_store_byte_d16_hi v1
, off
, s
[4:7], s1
33 // GFX9
: buffer_store_byte_d16_hi v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x64,0xe0,0x00,0x01,0x01,0x01]
34 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
36 buffer_store_short_d16_hi v1
, off
, s
[4:7], s1
37 // GFX9
: buffer_store_short_d16_hi v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x6c,0xe0,0x00,0x01,0x01,0x01]
38 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
40 buffer_load_format_d16_hi_x v5
, off
, s
[8:11], s3
41 // GFX9
: buffer_load_format_d16_hi_x v5
, off
, s
[8:11], s3 ; encoding
: [0x00,0x00,0x98,0xe0,0x00,0x05,0x02,0x03]
42 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
44 buffer_load_format_d16_hi_x v5
, off
, s
[8:11], s3 offset
:4095
45 // GFX9
: buffer_load_format_d16_hi_x v5
, off
, s
[8:11], s3 offset
:4095 ; encoding
: [0xff,0x0f,0x98,0xe0,0x00,0x05,0x02,0x03]
46 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
48 buffer_load_format_d16_hi_x v5
, v0
, s
[8:11], s3 idxen offset
:4095
49 // GFX9
: buffer_load_format_d16_hi_x v5
, v0
, s
[8:11], s3 idxen offset
:4095 ; encoding
: [0xff,0x2f,0x98,0xe0,0x00,0x05,0x02,0x03]
50 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
52 buffer_load_format_d16_hi_x v5
, v0
, s
[8:11], s3 offen offset
:4095
53 // GFX9
: buffer_load_format_d16_hi_x v5
, v0
, s
[8:11], s3 offen offset
:4095 ; encoding
: [0xff,0x1f,0x98,0xe0,0x00,0x05,0x02,0x03]
54 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
56 buffer_load_format_d16_hi_x v5
, off
, s
[8:11], s3 offset
:4095 glc
57 // GFX9
: buffer_load_format_d16_hi_x v5
, off
, s
[8:11], s3 offset
:4095 glc ; encoding
: [0xff,0x4f,0x98,0xe0,0x00,0x05,0x02,0x03]
58 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
60 buffer_load_format_d16_hi_x v5
, off
, s
[8:11], s3 offset
:4095 slc
61 // GFX9
: buffer_load_format_d16_hi_x v5
, off
, s
[8:11], s3 offset
:4095 slc ; encoding
: [0xff,0x0f,0x9a,0xe0,0x00,0x05,0x02,0x03]
62 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
64 buffer_store_format_d16_hi_x v255
, off
, s
[12:15], s4
65 // GFX9
: buffer_store_format_d16_hi_x v255
, off
, s
[12:15], s4 ; encoding
: [0x00,0x00,0x9c,0xe0,0x00,0xff,0x03,0x04]
66 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
68 buffer_store_format_d16_hi_x v255
, off
, s
[12:15], s4 offset
:4095
69 // GFX9
: buffer_store_format_d16_hi_x v255
, off
, s
[12:15], s4 offset
:4095 ; encoding
: [0xff,0x0f,0x9c,0xe0,0x00,0xff,0x03,0x04]
70 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
72 buffer_store_format_d16_hi_x v1
, v0
, s
[12:15], s4 idxen offset
:4095
73 // GFX9
: buffer_store_format_d16_hi_x v1
, v0
, s
[12:15], s4 idxen offset
:4095 ; encoding
: [0xff,0x2f,0x9c,0xe0,0x00,0x01,0x03,0x04]
74 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
76 buffer_store_format_d16_hi_x v1
, v0
, s
[12:15], s4 offen offset
:4095
77 // GFX9
: buffer_store_format_d16_hi_x v1
, v0
, s
[12:15], s4 offen offset
:4095 ; encoding
: [0xff,0x1f,0x9c,0xe0,0x00,0x01,0x03,0x04]
78 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
80 buffer_store_format_d16_hi_x v1
, off
, s
[12:15], s4 offset
:4095 glc
81 // GFX9
: buffer_store_format_d16_hi_x v1
, off
, s
[12:15], s4 offset
:4095 glc ; encoding
: [0xff,0x4f,0x9c,0xe0,0x00,0x01,0x03,0x04]
82 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
84 buffer_store_format_d16_hi_x v1
, off
, s
[12:15], s4 offset
:4095 slc
85 // GFX9
: buffer_store_format_d16_hi_x v1
, off
, s
[12:15], s4 offset
:4095 slc ; encoding
: [0xff,0x0f,0x9e,0xe0,0x00,0x01,0x03,0x04]
86 // VI-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU