[AMDGPU] Add True16 register classes.
[llvm-project.git] / llvm / test / MC / AMDGPU / vop1-gfx9-err.s
blob71290eb8068642722510fe881b2c1053af85dad1
1 // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck -check-prefixes=GCN,GFX9 --implicit-check-not=error: %s
2 // RUN: not llvm-mc -triple=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefixes=GCN,VI --implicit-check-not=error: %s
3 // RUN: not llvm-mc -triple=amdgcn -mcpu=hawaii %s 2>&1 | FileCheck -check-prefixes=GCN,CI --implicit-check-not=error: %s
5 v_swap_b32 v1, 1
6 // CI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
7 // GFX9: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
8 // VI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
10 v_swap_b32 v1, s0
11 // CI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
12 // GFX9: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
13 // VI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
15 v_swap_b32_e64 v1, v2
16 // GFX9: :[[@LINE-1]]:1: error: e64 variant of this instruction is not supported
17 // CI: :[[@LINE-2]]:1: error: instruction not supported on this GPU
18 // VI: :[[@LINE-3]]:1: error: instruction not supported on this GPU
20 v_swap_b32 v1, v2, v1
21 // CI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
22 // GFX9: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
23 // VI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
25 v_swap_b32 v1, v2, v2
26 // CI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
27 // GFX9: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
28 // VI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
30 v_swap_b32 v1, v2, v2, v2
31 // CI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
32 // GFX9: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
33 // VI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
35 v_swap_codegen_pseudo_b32 v1, v2
36 // GCN: :[[@LINE-1]]:1: error: invalid instruction