1 // RUN
: llvm-mc
-triple
=amdgcn
-mcpu
=gfx810
-show-encoding
%s | FileCheck
-check-prefix
=PACKED
%s
2 // RUN
: llvm-mc
-triple
=amdgcn
-mcpu
=gfx900
-show-encoding
%s | FileCheck
-check-prefix
=PACKED
%s
4 // RUN
: not llvm-mc
-triple
=amdgcn
-mcpu
=fiji
2>&1 %s | FileCheck
-check-prefix
=UNPACKED-ERR
--implicit-check-
not=error
: %s
7 //===----------------------------------------------------------------------===//
8 // Buffer Format Instructions.
9 //===----------------------------------------------------------------------===//
11 buffer_load_format_d16_x v1
, off
, s
[4:7], s1
12 // PACKED
: buffer_load_format_d16_x v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x20,0xe0,0x00,0x01,0x01,0x01]
14 buffer_load_format_d16_xy v1
, off
, s
[4:7], s1
15 // PACKED
: buffer_load_format_d16_xy v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x24,0xe0,0x00,0x01,0x01,0x01]
16 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
18 buffer_load_format_d16_xyz v
[1:2], off
, s
[4:7], s1
19 // PACKED
: buffer_load_format_d16_xyz v
[1:2], off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x28,0xe0,0x00,0x01,0x01,0x01]
20 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
22 buffer_load_format_d16_xyzw v
[1:2], off
, s
[4:7], s1
23 // PACKED
: buffer_load_format_d16_xyzw v
[1:2], off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x2c,0xe0,0x00,0x01,0x01,0x01]
24 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
26 buffer_store_format_d16_x v1
, off
, s
[4:7], s1
27 // PACKED
: buffer_store_format_d16_x v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x30,0xe0,0x00,0x01,0x01,0x01]
29 buffer_store_format_d16_xy v1
, off
, s
[4:7], s1
30 // PACKED
: buffer_store_format_d16_xy v1
, off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x34,0xe0,0x00,0x01,0x01,0x01]
31 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
33 buffer_store_format_d16_xyz v
[1:2], off
, s
[4:7], s1
34 // PACKED
: buffer_store_format_d16_xyz v
[1:2], off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x38,0xe0,0x00,0x01,0x01,0x01]
35 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
37 buffer_store_format_d16_xyzw v
[1:2], off
, s
[4:7], s1
38 // PACKED
: buffer_store_format_d16_xyzw v
[1:2], off
, s
[4:7], s1 ; encoding
: [0x00,0x00,0x3c,0xe0,0x00,0x01,0x01,0x01]
39 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
42 //===----------------------------------------------------------------------===//
43 // TBuffer Format Instructions.
44 //===----------------------------------------------------------------------===//
46 tbuffer_load_format_d16_x v1
, off
, s
[4:7], dfmt
:15, nfmt
:2, s1
47 // PACKED
: tbuffer_load_format_d16_x v1
, off
, s
[4:7], s1 format
:[BUF_DATA_FORMAT_RESERVED_15
,BUF_NUM_FORMAT_USCALED
] ; encoding
: [0x00,0x00,0x7c,0xe9,0x00,0x01,0x01,0x01]
49 tbuffer_load_format_d16_xy v1
, off
, s
[4:7], dfmt
:15, nfmt
:2, s1
50 // PACKED
: tbuffer_load_format_d16_xy v1
, off
, s
[4:7], s1 format
:[BUF_DATA_FORMAT_RESERVED_15
,BUF_NUM_FORMAT_USCALED
] ; encoding
: [0x00,0x80,0x7c,0xe9,0x00,0x01,0x01,0x01]
51 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
53 tbuffer_load_format_d16_xyz v
[1:2], off
, s
[4:7], dfmt
:15, nfmt
:2, s1
54 // PACKED
: tbuffer_load_format_d16_xyz v
[1:2], off
, s
[4:7], s1 format
:[BUF_DATA_FORMAT_RESERVED_15
,BUF_NUM_FORMAT_USCALED
] ; encoding
: [0x00,0x00,0x7d,0xe9,0x00,0x01,0x01,0x01]
55 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
57 tbuffer_load_format_d16_xyzw v
[1:2], off
, s
[4:7], dfmt
:15, nfmt
:2, s1
58 // PACKED
: tbuffer_load_format_d16_xyzw v
[1:2], off
, s
[4:7], s1 format
:[BUF_DATA_FORMAT_RESERVED_15
,BUF_NUM_FORMAT_USCALED
] ; encoding
: [0x00,0x80,0x7d,0xe9,0x00,0x01,0x01,0x01]
59 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
61 tbuffer_store_format_d16_x v1
, off
, s
[4:7], dfmt
:15, nfmt
:2, s1
62 // PACKED
: tbuffer_store_format_d16_x v1
, off
, s
[4:7], s1 format
:[BUF_DATA_FORMAT_RESERVED_15
,BUF_NUM_FORMAT_USCALED
] ; encoding
: [0x00,0x00,0x7e,0xe9,0x00,0x01,0x01,0x01]
64 tbuffer_store_format_d16_xy v1
, off
, s
[4:7], dfmt
:15, nfmt
:2, s1
65 // PACKED
: tbuffer_store_format_d16_xy v1
, off
, s
[4:7], s1 format
:[BUF_DATA_FORMAT_RESERVED_15
,BUF_NUM_FORMAT_USCALED
] ; encoding
: [0x00,0x80,0x7e,0xe9,0x00,0x01,0x01,0x01]
66 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
68 tbuffer_store_format_d16_xyz v
[1:2], off
, s
[4:7], dfmt
:15, nfmt
:2, s1
69 // PACKED
: tbuffer_store_format_d16_xyz v
[1:2], off
, s
[4:7], s1 format
:[BUF_DATA_FORMAT_RESERVED_15
,BUF_NUM_FORMAT_USCALED
] ; encoding
: [0x00,0x00,0x7f,0xe9,0x00,0x01,0x01,0x01]
70 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode
72 tbuffer_store_format_d16_xyzw v
[1:2], off
, s
[4:7], dfmt
:15, nfmt
:2, s1
73 // PACKED
: tbuffer_store_format_d16_xyzw v
[1:2], off
, s
[4:7], s1 format
:[BUF_DATA_FORMAT_RESERVED_15
,BUF_NUM_FORMAT_USCALED
] ; encoding
: [0x00,0x80,0x7f,0xe9,0x00,0x01,0x01,0x01]
74 // UNPACKED-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: operands are
not valid for this GPU
or mode