Home | History | Annotate | Download | only in AMDGPU
      1 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN,GFX9 %s
      2 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN,VI %s
      3 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN,CI %s
      4 
      5 v_swap_b32 v1, 1
      6 // GCN: :16: error: invalid operand for instruction
      7 
      8 v_swap_b32 v1, s0
      9 // GCN: :16: error: invalid operand for instruction
     10 
     11 // FIXME: Better error for it requiring VOP1 encoding
     12 v_swap_b32_e64 v1, v2
     13 // GFX9: :1: error: invalid instruction, did you mean: v_swap_b32?
     14 // CI: :1: error: invalid instruction
     15 // VI: :1: error: invalid instruction
     16 
     17 v_swap_b32 v1, v2, v1
     18 // GCN: :20: error: invalid operand for instruction
     19 
     20 v_swap_b32 v1, v2, v2
     21 // GCN: :20: error: invalid operand for instruction
     22 
     23 v_swap_b32 v1, v2, v2, v2
     24 // GCN: :20: error: invalid operand for instruction
     25 
     26 v_swap_codegen_pseudo_b32 v1, v2
     27 // GCN: :1: error: invalid instruction
     28