1 // RUN
: not llvm-mc
-triple
=amdgcn
-mcpu
=gfx940
%s
2>&1 | FileCheck
%s
--check-prefix
=NOGFX940
--implicit-check-
not=error
:
3 image_load v
[4:6], v
[238:241], s
[28:35] dmask
:0x7 unorm
4 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
6 image_load_pck v5
, v
[0:3], s
[8:15] dmask
:0x1 glc
7 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
9 image_load_pck_sgn v5
, v
[0:3], s
[8:15] dmask
:0x1 lwe
10 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
12 image_load_mip v5
, v
[0:3], s
[8:15]
13 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
15 image_load_mip_pck v5
, v1
, s
[8:15] dmask
:0x1
16 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
18 image_load_mip_pck_sgn v
[4:5], v
[0:3], s
[8:15] dmask
:0x5
19 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
21 image_store v
[192:194], v
[238:241], s
[28:35] dmask
:0x7 unorm
22 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
24 image_store_pck v1
, v
[2:5], s
[12:19] dmask
:0x1 unorm da
25 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
27 image_store_mip v1
, v
[2:5], s
[12:19]
28 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
30 image_store_mip_pck v252
, v
[2:3], s
[12:19] dmask
:0x1 a16
31 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
33 image_atomic_add v4
, v192
, s
[28:35] dmask
:0x1 unorm glc
34 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
36 image_atomic_and v4
, v192
, s
[28:35] dmask
:0x1 unorm
37 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
39 image_atomic_swap v4
, v
[192:195], s
[28:35] dmask
:0x1 unorm glc
40 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
42 image_atomic_cmpswap v
[4:5], v
[192:195], s
[28:35] dmask
:0x3 unorm glc
43 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
45 image_atomic_or v4
, v192
, s
[28:35] dmask
:0x1 unorm
46 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
48 image_atomic_xor v4
, v192
, s
[28:35] dmask
:0x1 unorm
49 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
51 image_atomic_sub v4
, v192
, s
[28:35] dmask
:0x1 unorm
52 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
54 image_atomic_smin v4
, v192
, s
[28:35] dmask
:0x1 unorm
55 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
57 image_atomic_smax v4
, v192
, s
[28:35] dmask
:0x1 unorm
58 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
60 image_atomic_umin v4
, v192
, s
[28:35] dmask
:0x1 unorm
61 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
63 image_atomic_umax v4
, v192
, s
[28:35] dmask
:0x1 unorm
64 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
66 image_atomic_inc v4
, v192
, s
[28:35] dmask
:0x1 unorm
67 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
69 image_atomic_dec v4
, v192
, s
[28:35] dmask
:0x1 unorm
70 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
72 image_get_resinfo v5
, v1
, s
[8:15] dmask
:0x1
73 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
75 image_sample v5
, v
[0:3], s
[8:15], s
[12:15] dmask
:0x1
76 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
:
78 image_gather4 v
[5:8], v
[1:4], s
[8:15], s
[12:15] dmask
:0x2
79 // NOGFX940
: :[[@LINE-
1]]:{{[0-9]+}}: error
: