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 15// FIXME: Better error for it requiring VOP1 encoding 16v_swap_b32_e64 v1, v2 17// GFX9: :1: error: e64 variant of this instruction is not supported 18// CI: :1: error: instruction not supported on this GPU 19// VI: :1: error: instruction not supported on this GPU 20 21v_swap_b32 v1, v2, v1 22// CI: error: instruction not supported on this GPU 23// GFX9: error: invalid operand for instruction 24// VI: error: instruction not supported on this GPU 25 26v_swap_b32 v1, v2, v2 27// CI: error: instruction not supported on this GPU 28// GFX9: error: invalid operand for instruction 29// VI: error: instruction not supported on this GPU 30 31v_swap_b32 v1, v2, v2, v2 32// CI: error: instruction not supported on this GPU 33// GFX9: error: invalid operand for instruction 34// VI: error: instruction not supported on this GPU 35 36v_swap_codegen_pseudo_b32 v1, v2 37// GCN: :1: error: invalid instruction 38