mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 12:50:00 +00:00
Expose FMA3 instructions to the disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147351 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c38fff4277
commit
19f18be449
@ -41,23 +41,21 @@ multiclass fma_forms<bits<8> opc132, bits<8> opc213, bits<8> opc231,
|
||||
defm r231 : fma_rm<opc231, !strconcat(OpcodeStr, !strconcat("231", PackTy))>;
|
||||
}
|
||||
|
||||
let isAsmParserOnly = 1 in {
|
||||
// Fused Multiply-Add
|
||||
defm VFMADDPS : fma_forms<0x98, 0xA8, 0xB8, "vfmadd", "ps">;
|
||||
defm VFMADDPD : fma_forms<0x98, 0xA8, 0xB8, "vfmadd", "pd">, VEX_W;
|
||||
defm VFMADDSUBPS : fma_forms<0x96, 0xA6, 0xB6, "vfmaddsub", "ps">;
|
||||
defm VFMADDSUBPD : fma_forms<0x96, 0xA6, 0xB6, "vfmaddsub", "pd">, VEX_W;
|
||||
defm VFMSUBADDPS : fma_forms<0x97, 0xA7, 0xB7, "vfmsubadd", "ps">;
|
||||
defm VFMSUBADDPD : fma_forms<0x97, 0xA7, 0xB7, "vfmsubadd", "pd">, VEX_W;
|
||||
defm VFMSUBPS : fma_forms<0x9A, 0xAA, 0xBA, "vfmsub", "ps">;
|
||||
defm VFMSUBPD : fma_forms<0x9A, 0xAA, 0xBA, "vfmsub", "pd">, VEX_W;
|
||||
// Fused Multiply-Add
|
||||
defm VFMADDPS : fma_forms<0x98, 0xA8, 0xB8, "vfmadd", "ps">;
|
||||
defm VFMADDPD : fma_forms<0x98, 0xA8, 0xB8, "vfmadd", "pd">, VEX_W;
|
||||
defm VFMADDSUBPS : fma_forms<0x96, 0xA6, 0xB6, "vfmaddsub", "ps">;
|
||||
defm VFMADDSUBPD : fma_forms<0x96, 0xA6, 0xB6, "vfmaddsub", "pd">, VEX_W;
|
||||
defm VFMSUBADDPS : fma_forms<0x97, 0xA7, 0xB7, "vfmsubadd", "ps">;
|
||||
defm VFMSUBADDPD : fma_forms<0x97, 0xA7, 0xB7, "vfmsubadd", "pd">, VEX_W;
|
||||
defm VFMSUBPS : fma_forms<0x9A, 0xAA, 0xBA, "vfmsub", "ps">;
|
||||
defm VFMSUBPD : fma_forms<0x9A, 0xAA, 0xBA, "vfmsub", "pd">, VEX_W;
|
||||
|
||||
// Fused Negative Multiply-Add
|
||||
defm VFNMADDPS : fma_forms<0x9C, 0xAC, 0xBC, "vfnmadd", "ps">;
|
||||
defm VFNMADDPD : fma_forms<0x9C, 0xAC, 0xBC, "vfnmadd", "pd">, VEX_W;
|
||||
defm VFNMSUBPS : fma_forms<0x9E, 0xAE, 0xBE, "vfnmsub", "ps">;
|
||||
defm VFNMSUBPD : fma_forms<0x9E, 0xAE, 0xBE, "vfnmsub", "pd">, VEX_W;
|
||||
}
|
||||
// Fused Negative Multiply-Add
|
||||
defm VFNMADDPS : fma_forms<0x9C, 0xAC, 0xBC, "vfnmadd", "ps">;
|
||||
defm VFNMADDPD : fma_forms<0x9C, 0xAC, 0xBC, "vfnmadd", "pd">, VEX_W;
|
||||
defm VFNMSUBPS : fma_forms<0x9E, 0xAE, 0xBE, "vfnmsub", "ps">;
|
||||
defm VFNMSUBPD : fma_forms<0x9E, 0xAE, 0xBE, "vfnmsub", "pd">, VEX_W;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// FMA4 - AMD 4 operand Fused Multiply-Add instructions
|
||||
|
@ -647,3 +647,27 @@
|
||||
|
||||
# CHECK: shrxq %r12, %r11, %r10
|
||||
0xc4 0x42 0x9b 0xf7 0xd3
|
||||
|
||||
# CHECK: vfmadd132ps %xmm11, %xmm12, %xmm10
|
||||
0xc4 0x42 0x19 0x98 0xd3
|
||||
|
||||
# CHECK: vfmadd132pd %xmm11, %xmm12, %xmm10
|
||||
0xc4 0x42 0x99 0x98 0xd3
|
||||
|
||||
# CHECK: vfmadd132ps %ymm11, %ymm12, %ymm10
|
||||
0xc4 0x42 0x1d 0x98 0xd3
|
||||
|
||||
# CHECK: vfmadd132pd %ymm11, %ymm12, %ymm10
|
||||
0xc4 0x42 0x9d 0x98 0xd3
|
||||
|
||||
# CHECK: vfmadd132ps (%rax), %xmm12, %xmm10
|
||||
0xc4 0x62 0x19 0x98 0x10
|
||||
|
||||
# CHECK: vfmadd132pd (%rax), %xmm12, %xmm10
|
||||
0xc4 0x62 0x99 0x98 0x10
|
||||
|
||||
# CHECK: vfmadd132ps (%rax), %ymm12, %ymm10
|
||||
0xc4 0x62 0x1d 0x98 0x10
|
||||
|
||||
# CHECK: vfmadd132pd (%rax), %ymm12, %ymm10
|
||||
0xc4 0x62 0x9d 0x98 0x10
|
||||
|
Loading…
Reference in New Issue
Block a user