[RemoveDIs][DebugInfo] Update SROA to handle DPVAssigns (#78475)
[llvm-project.git] / llvm / test / MC / AMDGPU / gfx11_asm_mimg_err.s
blob9dc88690d95628a671986a922cfa63b4b39813f6
1 // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 %s 2>&1 | FileCheck --check-prefixes=NOGFX11 --implicit-check-not=error: %s
3 image_sample_d v[64:66], [v32, v16, v8, v4, v2, v1], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_2D
4 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
6 image_sample_d v[64:66], [v32, v16, v8, v4, v2, v1, v0, v20, v21], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
7 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
9 image_sample_d v[64:66], [v32, v16, v8, v4, v2, v1, v5], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_CUBE
10 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
12 image_sample_d v[64:66], [v32, v16, v8, v4, v0, v20, v21], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_2D_ARRAY
13 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
15 image_sample_d_cl v[64:66], [v32, v16, v8, v4, v2, v1, v0, v20, v21, v48], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
16 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
18 image_sample_c_d v[64:66], [v32, v16, v0, v2, v1, v4, v8, v12, v16, v17], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
19 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
21 image_sample_c_d_cl v[64:66], [v32, v16, v0, v2, v1, v4, v8, v12, v16, v17, v18], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
22 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
24 image_sample_c_b_cl v[64:66], [v32, v16, v0, v2, v1, v5], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
25 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
27 image_sample_d_o v[64:66], [v32, v16, v0, v2, v4, v5, v6, v7, v8, v9], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
28 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
30 image_sample_d_cl_o v[64:66], [v32, v16, v0, v2, v4, v5, v6, v7, v8, v9, v10], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
31 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
33 image_sample_b_cl_o v[64:66], [v32, v16, v0, v2, v1, v4], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
34 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
36 image_sample_c_cl_o v[64:66], [v32, v16, v0, v2, v1, v4], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
37 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
39 image_sample_c_d_o v[64:66], [v32, v16, v0, v2, v1, v4, v5, v6, v7, v8, v9], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
40 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
42 image_sample_c_d_cl_o v[64:66], [v32, v16, v0, v2, v1, v4, v5, v6, v7, v8, v9, v10], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
43 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
45 image_sample_c_l_o v[64:66], [v32, v16, v0, v2, v1, v4], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
46 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
48 image_sample_c_b_o v[64:66], [v32, v16, v0, v2, v1, v4], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
49 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
51 image_sample_c_b_cl_o v[64:66], [v32, v16, v0, v2, v1, v4, v5], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
52 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
54 image_gather4_c_b_cl v[64:67], [v32, v0, v4, v5, v6, v7], s[4:11], s[100:103] dmask:0x1 dim:SQ_RSRC_IMG_3D
55 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
57 image_gather4_cl_o v[64:67], [v32, v0, v4, v5, v6], s[4:11], s[100:103] dmask:0x1 dim:SQ_RSRC_IMG_3D
58 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
60 image_gather4_l_o v[64:67], [v32, v0, v4, v5, v6], s[4:11], s[100:103] dmask:0x1 dim:SQ_RSRC_IMG_3D
61 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
63 image_gather4_b_o v[64:67], [v32, v0, v4, v5, v6], s[4:11], s[100:103] dmask:0x1 dim:SQ_RSRC_IMG_3D
64 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
66 image_gather4_b_cl_o v[64:67], [v32, v0, v4, v5, v6, v7], s[4:11], s[100:103] dmask:0x1 dim:SQ_RSRC_IMG_3D
67 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
69 image_gather4_c_o v[64:67], [v32, v0, v4, v5, v6], s[4:11], s[100:103] dmask:0x1 dim:SQ_RSRC_IMG_3D
70 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
72 image_gather4_c_cl_o v[64:67], [v32, v0, v4, v5, v6, v7], s[4:11], s[100:103] dmask:0x1 dim:SQ_RSRC_IMG_3D
73 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
75 image_gather4_c_l_o v[64:67], [v32, v0, v4, v5, v6, v7], s[4:11], s[100:103] dmask:0x1 dim:SQ_RSRC_IMG_3D
76 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
78 image_gather4_c_b_o v[64:67], [v32, v0, v4, v5, v6, v7], s[4:11], s[100:103] dmask:0x1 dim:SQ_RSRC_IMG_3D
79 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
81 image_gather4_c_b_cl_o v[64:67], [v32, v0, v4, v5, v6, v7, v8], s[4:11], s[100:103] dmask:0x1 dim:SQ_RSRC_IMG_3D
82 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
84 image_sample_cd v[64:66], [v32, v16, v0, v2, v1, v4, v5, v6, v7], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
85 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
87 image_sample_cd_cl v[64:66], [v32, v16, v0, v2, v1, v4, v5, v6, v7, v8], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
88 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
90 image_sample_c_cd v[64:66], [v32, v16, v0, v2, v1, v4, v5, v6, v7, v8], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
91 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
93 image_sample_c_cd_cl v[64:66], [v32, v16, v0, v2, v1, v4, v5, v6, v7, v8, v9], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
94 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
96 image_sample_cd_o v[64:66], [v32, v16, v0, v2, v1, v4, v5, v6, v7, v8], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
97 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
99 image_sample_cd_cl_o v[64:66], [v32, v16, v0, v2, v1, v4, v5, v6, v7, v8, v9], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
100 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
102 image_sample_c_cd_o v[64:66], [v32, v16, v0, v2, v1, v4, v5, v6, v7, v8, v9], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
103 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
105 image_sample_c_cd_cl_o v[64:66], [v32, v16, v0, v2, v1, v4, v5, v6, v7, v8, v9, v10], s[4:11], s[100:103] dmask:0x7 dim:SQ_RSRC_IMG_3D
106 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
108 image_atomic_fcmpswap v[4:5], v32, s[96:103] dmask:0x3 dim:SQ_RSRC_IMG_1D glc
109 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
111 image_atomic_fmin v4, v32, s[96:103] dmask:0x1 dim:SQ_RSRC_IMG_1D glc
112 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
114 image_atomic_fmax v4, v32, s[96:103] dmask:0x1 dim:SQ_RSRC_IMG_1D glc
115 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
117 image_msaa_load v[1:4], v[5:7], s[8:15] dmask:0xf dim:SQ_RSRC_IMG_2D_MSAA
118 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid image_gather dmask: only one bit must be set
120 image_msaa_load v5, v[1:3], s[8:15] dmask:0x1 dim:SQ_RSRC_IMG_2D_MSAA d16
121 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode
123 image_msaa_load v14, [v204,v11,v14,v19], s[40:47] dmask:0x1 dim:SQ_RSRC_IMG_2D_MSAA_ARRAY
124 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode
126 image_bvh_intersect_ray v[4:6], v[0:15], s[4:7]
127 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
129 image_bvh_intersect_ray v[4:7], v[0:15], s[4:7] a16
130 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
132 image_bvh64_intersect_ray v[4:6], v[0:15], s[4:7]
133 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
135 image_bvh64_intersect_ray v[4:7], v[0:7], s[4:7] a16
136 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
138 image_bvh_intersect_ray v[39:42], [v50, v46, v[20:22], v[40:42], v[47:49], v0], s[12:15]
139 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
141 image_bvh_intersect_ray v[39:42], [v50, v46, v47, v[40:42]], s[12:15] a16
142 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
144 image_bvh64_intersect_ray v[39:42], [v50, v46, v[20:22], v[40:42], v[47:49]], s[12:15]
145 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
147 image_bvh64_intersect_ray v[39:42], [v[50:51], v46, v[20:22]], s[12:15] a16
148 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
150 image_bvh_intersect_ray v[4:7], v[9:16], s[4:7] noa16
151 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: image address size does not match a16
153 image_bvh_intersect_ray v[39:42], [v50, v46, v[20:22], v[40:42]], s[12:15] noa16
154 // NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: image address size does not match a16