1 // RUN
: llvm-mc
-arch
=amdgcn
-mcpu
=fiji
-show-encoding
%s | FileCheck
-check-prefix
=GCN
-check-prefix
=UNPACKED
%s
2 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=gfx810
-show-encoding
2>&1 %s | FileCheck
-check-prefix
=PACKED-ERR
-check-prefix
=GCN-ERR
%s
3 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=gfx900
-show-encoding
2>&1 %s | FileCheck
-check-prefix
=PACKED-ERR
-check-prefix
=GCN-ERR
%s
6 //===----------------------------------------------------------------------===//
7 // Buffer Format Instructions.
8 //===----------------------------------------------------------------------===//
10 buffer_load_format_d16_x v1
, off
, s
[4:7], s1
11 // UNPACKED
: buffer_load_format_d16_x v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x20,0xe0,0x00,0x01,0x01,0x01]
13 buffer_load_format_d16_xy v
[1:2], off
, s
[4:7], s1
14 // UNPACKED
: buffer_load_format_d16_xy v
[1:2], off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x24,0xe0,0x00,0x01,0x01,0x01]
15 // PACKED-ERR
: error
: instruction
not supported on this GPU
17 buffer_load_format_d16_xyz v
[1:3], off
, s
[4:7], s1
18 // UNPACKED
: buffer_load_format_d16_xyz v
[1:3], off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x28,0xe0,0x00,0x01,0x01,0x01]
19 // PACKED-ERR
: error
: instruction
not supported on this GPU
21 buffer_load_format_d16_xyzw v
[1:4], off
, s
[4:7], s1
22 // UNPACKED
: buffer_load_format_d16_xyzw v
[1:4], off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x2c,0xe0,0x00,0x01,0x01,0x01]
23 // PACKED-ERR
: error
: instruction
not supported on this GPU
25 buffer_store_format_d16_x v1
, off
, s
[4:7], s1
26 // UNPACKED
: buffer_store_format_d16_x v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x30,0xe0,0x00,0x01,0x01,0x01]
28 buffer_store_format_d16_xy v
[1:2], off
, s
[4:7], s1
29 // UNPACKED
: buffer_store_format_d16_xy v
[1:2], off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x34,0xe0,0x00,0x01,0x01,0x01]
30 // PACKED-ERR
: error
: instruction
not supported on this GPU
32 buffer_store_format_d16_xyz v
[1:3], off
, s
[4:7], s1
33 // UNPACKED
: buffer_store_format_d16_xyz v
[1:3], off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x38,0xe0,0x00,0x01,0x01,0x01]
34 // PACKED-ERR
: error
: instruction
not supported on this GPU
36 buffer_store_format_d16_xyzw v
[1:4], off
, s
[4:7], s1
37 // UNPACKED
: buffer_store_format_d16_xyzw v
[1:4], off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x3c,0xe0,0x00,0x01,0x01,0x01]
38 // PACKED-ERR
: error
: instruction
not supported on this GPU
41 //===----------------------------------------------------------------------===//
42 // TBuffer Format Instructions.
43 //===----------------------------------------------------------------------===//
45 tbuffer_load_format_d16_x v1
, off
, s
[4:7], dfmt
:15, nfmt
:2, s1
46 // UNPACKED
: tbuffer_load_format_d16_x v1
, off
, s
[4:7], dfmt
:15, nfmt
:2, s1 ; encoding
: [0x00,0x00,0x7c,0xe9,0x00,0x01,0x01,0x01]
48 tbuffer_load_format_d16_xy v
[1:2], off
, s
[4:7], dfmt
:15, nfmt
:2, s1
49 // UNPACKED
: tbuffer_load_format_d16_xy v
[1:2], off
, s
[4:7], dfmt
:15, nfmt
:2, s1 ; encoding
: [0x00,0x80,0x7c,0xe9,0x00,0x01,0x01,0x01]
50 // PACKED-ERR
: error
: instruction
not supported on this GPU
52 tbuffer_load_format_d16_xyz v
[1:3], off
, s
[4:7], dfmt
:15, nfmt
:2, s1
53 // UNPACKED
: tbuffer_load_format_d16_xyz v
[1:3], off
, s
[4:7], dfmt
:15, nfmt
:2, s1 ; encoding
: [0x00,0x00,0x7d,0xe9,0x00,0x01,0x01,0x01]
54 // PACKED-ERR
: error
: instruction
not supported on this GPU
56 tbuffer_load_format_d16_xyzw v
[1:4], off
, s
[4:7], dfmt
:15, nfmt
:2, s1
57 // UNPACKED
: tbuffer_load_format_d16_xyzw v
[1:4], off
, s
[4:7], dfmt
:15, nfmt
:2, s1 ; encoding
: [0x00,0x80,0x7d,0xe9,0x00,0x01,0x01,0x01]
58 // PACKED-ERR
: error
: instruction
not supported on this GPU
60 tbuffer_store_format_d16_x v1
, off
, s
[4:7], dfmt
:15, nfmt
:2, s1
61 // UNPACKED
: tbuffer_store_format_d16_x v1
, off
, s
[4:7], dfmt
:15, nfmt
:2, s1 ; encoding
: [0x00,0x00,0x7e,0xe9,0x00,0x01,0x01,0x01]
63 tbuffer_store_format_d16_xy v
[1:2], off
, s
[4:7], dfmt
:15, nfmt
:2, s1
64 // UNPACKED
: tbuffer_store_format_d16_xy v
[1:2], off
, s
[4:7], dfmt
:15, nfmt
:2, s1 ; encoding
: [0x00,0x80,0x7e,0xe9,0x00,0x01,0x01,0x01]
65 // PACKED-ERR
: error
: instruction
not supported on this GPU
67 tbuffer_store_format_d16_xyz v
[1:3], off
, s
[4:7], dfmt
:15, nfmt
:2, s1
68 // UNPACKED
: tbuffer_store_format_d16_xyz v
[1:3], off
, s
[4:7], dfmt
:15, nfmt
:2, s1 ; encoding
: [0x00,0x00,0x7f,0xe9,0x00,0x01,0x01,0x01]
69 // PACKED-ERR
: error
: instruction
not supported on this GPU
71 tbuffer_store_format_d16_xyzw v
[1:4], off
, s
[4:7], dfmt
:15, nfmt
:2, s1
72 // UNPACKED
: tbuffer_store_format_d16_xyzw v
[1:4], off
, s
[4:7], dfmt
:15, nfmt
:2, s1 ; encoding
: [0x00,0x80,0x7f,0xe9,0x00,0x01,0x01,0x01]
73 // PACKED-ERR
: error
: instruction
not supported on this GPU