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