[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / smem-err.s
blob5f62318a1ac7b4b6751b8995b24ad58beb01bbb2
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=NOVI --implicit-check-not=error: %s
3 s_memtime exec
4 // NOVI: :11: error: invalid operand for instruction
6 s_memrealtime exec
7 // NOVI: :15: error: invalid operand for instruction
9 s_store_dword m0, s[2:3], 0x0
10 // NOVI: :15: error: invalid operand for instruction
12 s_store_dword exec_lo, s[2:3], 0x0
13 // NOVI: :15: error: invalid operand for instruction
15 s_store_dword exec_hi, s[2:3], 0x0
16 // NOVI: :15: error: invalid operand for instruction
18 s_store_dwordx2 exec, s[2:3], 0x0
19 // NOVI: :17: error: invalid operand for instruction
21 s_buffer_store_dword m0, s[0:3], 0x0
22 // NOVI: :22: error: invalid operand for instruction
24 s_buffer_store_dword exec_lo, s[0:3], 0x0
25 // NOVI: :22: error: invalid operand for instruction
27 s_buffer_store_dword exec_hi, s[0:3], 0x0
28 // NOVI: :22: error: invalid operand for instruction
30 s_buffer_store_dwordx2 exec, s[0:3], 0x0
31 // NOVI: :24: error: invalid operand for instruction
33 s_load_dword m0, s[0:1], s4
34 // NOVI: :14: error: invalid operand for instruction
36 s_load_dword exec_lo, s[0:1], s4
37 // NOVI: :14: error: invalid operand for instruction
39 s_load_dword exec_hi, s[0:1], s4
40 // NOVI: :14: error: invalid operand for instruction
42 s_load_dwordx2 exec, s[0:1], s4
43 // NOVI: :16: error: invalid operand for instruction
45 s_buffer_load_dword m0, s[0:3], s4
46 // NOVI: :21: error: invalid operand for instruction
48 s_buffer_load_dword exec_lo, s[0:3], s4
49 // NOVI: :21: error: invalid operand for instruction
51 s_buffer_load_dword exec_hi, s[0:3], s4
52 // NOVI: :21: error: invalid operand for instruction
54 s_buffer_load_dwordx2 exec, s[0:3], s4
55 // NOVI: :23: error: invalid operand for instruction