xref: /llvm-project/llvm/test/MC/AMDGPU/mubuf-gfx9.s (revision 252c42354eca54274ed7b10c32c73c6937478e8b)
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
3
4buffer_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]
7
8buffer_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
11
12buffer_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
15
16buffer_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
19
20buffer_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
23
24buffer_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
27
28buffer_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
31
32buffer_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
35
36buffer_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
39
40buffer_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
43
44buffer_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
47
48buffer_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
51
52buffer_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
55
56buffer_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
59
60buffer_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
63
64buffer_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
67
68buffer_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
71
72buffer_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
75
76buffer_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
79
80buffer_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
83
84buffer_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
87