xref: /llvm-project/llvm/test/MC/AMDGPU/gfx7_err_pos.s (revision 252c42354eca54274ed7b10c32c73c6937478e8b)
1// RUN: not llvm-mc -triple=amdgcn -mcpu=bonaire %s 2>&1 | FileCheck %s --implicit-check-not=error: --strict-whitespace
2
3//==============================================================================
4// cache policy is not supported for SMRD instructions
5
6s_load_dword s1, s[2:3], 0xfc glc slc
7// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: cache policy is not supported for SMRD instructions
8// CHECK-NEXT:{{^}}s_load_dword s1, s[2:3], 0xfc glc slc
9// CHECK-NEXT:{{^}}                              ^
10
11s_load_dword s1, s[2:3], 0xfc slc
12// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: cache policy is not supported for SMRD instructions
13// CHECK-NEXT:{{^}}s_load_dword s1, s[2:3], 0xfc slc
14// CHECK-NEXT:{{^}}                              ^
15
16//==============================================================================
17// d16 modifier is not supported on this GPU
18
19image_gather4 v[5:6], v1, s[8:15], s[12:15] dmask:0x1 d16
20// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: d16 modifier is not supported on this GPU
21// CHECK-NEXT:{{^}}image_gather4 v[5:6], v1, s[8:15], s[12:15] dmask:0x1 d16
22// CHECK-NEXT:{{^}}                                                      ^
23
24//==============================================================================
25// integer clamping is not supported on this GPU
26
27v_add_co_u32 v84, s[4:5], v13, v31 clamp
28// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: integer clamping is not supported on this GPU
29// CHECK-NEXT:{{^}}v_add_co_u32 v84, s[4:5], v13, v31 clamp
30// CHECK-NEXT:{{^}}                                   ^
31
32//==============================================================================
33// literal operands are not supported
34
35v_and_b32_e64 v0, 0.159154943091895317852646485335, v1
36// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: literal operands are not supported
37// CHECK-NEXT:{{^}}v_and_b32_e64 v0, 0.159154943091895317852646485335, v1
38// CHECK-NEXT:{{^}}                  ^
39
40//==============================================================================
41// cache policy is not supported for SMRD instructions
42
43s_load_dword s5, s[2:3], glc
44// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: cache policy is not supported for SMRD instructions
45// CHECK-NEXT:{{^}}s_load_dword s5, s[2:3], glc
46// CHECK-NEXT:{{^}}                         ^
47