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
4
5v_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
9
10v_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
14
15v_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
19
20v_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
24
25v_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
29
30v_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
34
35v_swap_codegen_pseudo_b32 v1, v2
36// GCN: :1: error: invalid instruction
37