37 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck -check-prefixes=GCN,GFX9 --implicit-check-not=error: %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefixes=GCN,VI --implicit-check-not=error: %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=hawaii %s 2>&1 | FileCheck -check-prefixes=GCN,CI --implicit-check-not=error: %s4 5v_swap_b32 v1, 16// CI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU7// GFX9: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction8// VI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU9 10v_swap_b32 v1, s011// CI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU12// GFX9: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction13// VI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU14 15v_swap_b32_e64 v1, v216// GFX9: :[[@LINE-1]]:1: error: e64 variant of this instruction is not supported17// CI: :[[@LINE-2]]:1: error: instruction not supported on this GPU18// VI: :[[@LINE-3]]:1: error: instruction not supported on this GPU19 20v_swap_b32 v1, v2, v121// CI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU22// GFX9: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction23// VI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU24 25v_swap_b32 v1, v2, v226// CI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU27// GFX9: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction28// VI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU29 30v_swap_b32 v1, v2, v2, v231// CI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU32// GFX9: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction33// VI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU34 35v_swap_codegen_pseudo_b32 v1, v236// GCN: :[[@LINE-1]]:1: error: invalid instruction37