[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / vop1-gfx9-err.s
blob0afa306182a93b8b8b2c33c24e1e0fb83e95430e
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck -check-prefixes=GCN,GFX9 --implicit-check-not=error: %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefixes=GCN,VI --implicit-check-not=error: %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii %s 2>&1 | FileCheck -check-prefixes=GCN,CI --implicit-check-not=error: %s
5 v_swap_b32 v1, 1
6 // CI: error: instruction not supported on this GPU
7 // GFX9: error: invalid operand for instruction
8 // VI: error: instruction not supported on this GPU
10 v_swap_b32 v1, s0
11 // CI: error: instruction not supported on this GPU
12 // GFX9: error: invalid operand for instruction
13 // VI: error: instruction not supported on this GPU
15 v_swap_b32_e64 v1, v2
16 // GFX9: :1: error: e64 variant of this instruction is not supported
17 // CI: :1: error: instruction not supported on this GPU
18 // VI: :1: error: instruction not supported on this GPU
20 v_swap_b32 v1, v2, v1
21 // CI: error: instruction not supported on this GPU
22 // GFX9: error: invalid operand for instruction
23 // VI: error: instruction not supported on this GPU
25 v_swap_b32 v1, v2, v2
26 // CI: error: instruction not supported on this GPU
27 // GFX9: error: invalid operand for instruction
28 // VI: error: instruction not supported on this GPU
30 v_swap_b32 v1, v2, v2, v2
31 // CI: error: instruction not supported on this GPU
32 // GFX9: error: invalid operand for instruction
33 // VI: error: instruction not supported on this GPU
35 v_swap_codegen_pseudo_b32 v1, v2
36 // GCN: :1: error: invalid instruction