mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Remove intrinsic specific instructions for (V)CVTPS2DQ and replace with patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2123b18247
commit
e7f702fc2d
@ -410,7 +410,6 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
|
||||
{ X86::IMUL64rri8, X86::IMUL64rmi8, 0 },
|
||||
{ X86::Int_COMISDrr, X86::Int_COMISDrm, 0 },
|
||||
{ X86::Int_COMISSrr, X86::Int_COMISSrm, 0 },
|
||||
{ X86::Int_CVTPS2PDrr, X86::Int_CVTPS2PDrm, 0 },
|
||||
{ X86::CVTSD2SI64rr, X86::CVTSD2SI64rm, 0 },
|
||||
{ X86::CVTSD2SIrr, X86::CVTSD2SIrm, 0 },
|
||||
{ X86::CVTSS2SI64rr, X86::CVTSS2SI64rm, 0 },
|
||||
@ -491,7 +490,6 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
|
||||
// AVX 128-bit versions of foldable instructions
|
||||
{ X86::Int_VCOMISDrr, X86::Int_VCOMISDrm, 0 },
|
||||
{ X86::Int_VCOMISSrr, X86::Int_VCOMISSrm, 0 },
|
||||
{ X86::Int_VCVTPS2PDrr, X86::Int_VCVTPS2PDrm, 0 },
|
||||
{ X86::Int_VUCOMISDrr, X86::Int_VUCOMISDrm, 0 },
|
||||
{ X86::Int_VUCOMISSrr, X86::Int_VUCOMISSrm, 0 },
|
||||
{ X86::VCVTTSD2SI64rr, X86::VCVTTSD2SI64rm, 0 },
|
||||
|
@ -2020,28 +2020,15 @@ def CVTPS2PDrm : I<0x5A, MRMSrcMem, (outs VR128:$dst), (ins f64mem:$src),
|
||||
"cvtps2pd\t{$src, $dst|$dst, $src}", [],
|
||||
IIC_SSE_CVT_PD_RM>, TB;
|
||||
|
||||
def Int_VCVTPS2PDrr : I<0x5A, MRMSrcReg, (outs VR128:$dst), (ins VR128:$src),
|
||||
"vcvtps2pd\t{$src, $dst|$dst, $src}",
|
||||
[(set VR128:$dst, (int_x86_sse2_cvtps2pd VR128:$src))],
|
||||
IIC_SSE_CVT_PD_RR>,
|
||||
TB, VEX, Requires<[HasAVX]>;
|
||||
def Int_VCVTPS2PDrm : I<0x5A, MRMSrcMem, (outs VR128:$dst), (ins f64mem:$src),
|
||||
"vcvtps2pd\t{$src, $dst|$dst, $src}",
|
||||
[(set VR128:$dst, (int_x86_sse2_cvtps2pd
|
||||
(load addr:$src)))],
|
||||
IIC_SSE_CVT_PD_RM>,
|
||||
TB, VEX, Requires<[HasAVX]>;
|
||||
def Int_CVTPS2PDrr : I<0x5A, MRMSrcReg, (outs VR128:$dst), (ins VR128:$src),
|
||||
"cvtps2pd\t{$src, $dst|$dst, $src}",
|
||||
[(set VR128:$dst, (int_x86_sse2_cvtps2pd VR128:$src))],
|
||||
IIC_SSE_CVT_PD_RR>,
|
||||
TB, Requires<[HasSSE2]>;
|
||||
def Int_CVTPS2PDrm : I<0x5A, MRMSrcMem, (outs VR128:$dst), (ins f64mem:$src),
|
||||
"cvtps2pd\t{$src, $dst|$dst, $src}",
|
||||
[(set VR128:$dst, (int_x86_sse2_cvtps2pd
|
||||
(load addr:$src)))],
|
||||
IIC_SSE_CVT_PD_RM>,
|
||||
TB, Requires<[HasSSE2]>;
|
||||
let Predicates = [HasAVX] in {
|
||||
def : Pat<(int_x86_sse2_cvtps2pd VR128:$src),
|
||||
(VCVTPS2PDrr VR128:$src)>;
|
||||
}
|
||||
|
||||
let Predicates = [HasSSE2] in {
|
||||
def : Pat<(int_x86_sse2_cvtps2pd VR128:$src),
|
||||
(CVTPS2PDrr VR128:$src)>;
|
||||
}
|
||||
|
||||
// Convert Packed DW Integers to Packed Double FP
|
||||
let Predicates = [HasAVX] in {
|
||||
|
Loading…
x
Reference in New Issue
Block a user