[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / cpol-err.s
blob1172c8a0e199d6b8609ba098d339ad75a3c2fe1f
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck %s --implicit-check-not=error: --strict-whitespace
3 scratch_load_ubyte v1, v2, off cpol:2
4 // CHECK: error: not a valid operand.
5 // CHECK-NEXT:{{^}}scratch_load_ubyte v1, v2, off cpol:2
6 // CHECK-NEXT:{{^}} ^
8 scratch_load_ubyte v1, v2, off glc slc dlc
9 // CHECK: error: dlc modifier is not supported on this GPU
10 // CHECK-NEXT:{{^}}scratch_load_ubyte v1, v2, off glc slc dlc
11 // CHECK-NEXT:{{^}} ^
13 global_atomic_add v[3:4], v5, off slc glc
14 // CHECK: error: instruction must not use glc
15 // CHECK-NEXT:{{^}}global_atomic_add v[3:4], v5, off slc glc
16 // CHECK-NEXT:{{^}} ^
18 global_atomic_add v0, v[1:2], v2, off glc 1
19 // CHECK: error: invalid operand for instruction
20 // CHECK-NEXT:{{^}}global_atomic_add v0, v[1:2], v2, off glc 1
21 // CHECK-NEXT:{{^}} ^
23 global_load_dword v3, v[0:1], off slc glc noglc
24 // CHECK: error: duplicate cache policy modifier
25 // CHECK-NEXT:{{^}}global_load_dword v3, v[0:1], off slc glc noglc
26 // CHECK-NEXT:{{^}} ^
28 global_load_dword v3, v[0:1], off slc glc glc
29 // CHECK: error: duplicate cache policy modifier
30 // CHECK-NEXT:{{^}}global_load_dword v3, v[0:1], off slc glc glc
31 // CHECK-NEXT:{{^}} ^
33 global_load_dword v3, v[0:1], off slc noglc noglc
34 // CHECK: error: duplicate cache policy modifier
35 // CHECK-NEXT:{{^}}global_load_dword v3, v[0:1], off slc noglc noglc
36 // CHECK-NEXT:{{^}} ^
38 global_atomic_add v[3:4], v5, off slc noglc glc
39 // CHECK: error: duplicate cache policy modifier
40 // CHECK-NEXT:{{^}}global_atomic_add v[3:4], v5, off slc noglc glc
41 // CHECK-NEXT:{{^}} ^
43 s_load_dword s1, s[2:3], 0xfc glc slc
44 // CHECK: error: invalid cache policy for SMRD instruction
45 // CHECK-NEXT:{{^}}s_load_dword s1, s[2:3], 0xfc glc slc
46 // CHECK-NEXT:{{^}}^