mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 10:08:03 +00:00
743da63164
This is somewhat tricky because there are two pairs of tied operands, and it isn't allowed to be VOP3 encoded. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296519 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
729 B
ArmAsm
14 lines
729 B
ArmAsm
// RUN: llvm-mc -arch=amdgcn -mcpu=gfx901 -show-encoding %s | FileCheck -check-prefix=GFX9 %s
|
|
// RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s 2>&1 | FileCheck -check-prefix=NOVI %s
|
|
// RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s 2>&1 | FileCheck -check-prefix=NOVI %s
|
|
// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck -check-prefix=NOVI %s
|
|
|
|
v_swap_b32 v1, v2
|
|
// GFX9: v_swap_b32 v1, v2 ; encoding: [0x02,0xa3,0x02,0x7e]
|
|
// NOVI: :1: error: instruction not supported on this GPU
|
|
|
|
// FIXME: Error for it requiring VOP1 encoding
|
|
v_swap_b32_e32 v1, v2
|
|
// GFX9: v_swap_b32 v1, v2 ; encoding: [0x02,0xa3,0x02,0x7e]
|
|
// NOVI: :1: error: instruction not supported on this GPU
|