mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 18:34:09 +00:00
X86: Drop the isConvertibleTo3Addr bit from shufps/shufpd now that we don't convert them anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219112 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
862c93c856
commit
043994e266
@ -2566,18 +2566,17 @@ def : Pat<(v2i64 (X86cmpp (v2f64 VR128:$src1), (memop addr:$src2), imm:$cc)),
|
|||||||
/// sse12_shuffle - sse 1 & 2 fp shuffle instructions
|
/// sse12_shuffle - sse 1 & 2 fp shuffle instructions
|
||||||
multiclass sse12_shuffle<RegisterClass RC, X86MemOperand x86memop,
|
multiclass sse12_shuffle<RegisterClass RC, X86MemOperand x86memop,
|
||||||
ValueType vt, string asm, PatFrag mem_frag,
|
ValueType vt, string asm, PatFrag mem_frag,
|
||||||
Domain d, bit IsConvertibleToThreeAddress = 0> {
|
Domain d> {
|
||||||
def rmi : PIi8<0xC6, MRMSrcMem, (outs RC:$dst),
|
def rmi : PIi8<0xC6, MRMSrcMem, (outs RC:$dst),
|
||||||
(ins RC:$src1, x86memop:$src2, i8imm:$src3), asm,
|
(ins RC:$src1, x86memop:$src2, i8imm:$src3), asm,
|
||||||
[(set RC:$dst, (vt (X86Shufp RC:$src1, (mem_frag addr:$src2),
|
[(set RC:$dst, (vt (X86Shufp RC:$src1, (mem_frag addr:$src2),
|
||||||
(i8 imm:$src3))))], IIC_SSE_SHUFP, d>,
|
(i8 imm:$src3))))], IIC_SSE_SHUFP, d>,
|
||||||
Sched<[WriteFShuffleLd, ReadAfterLd]>;
|
Sched<[WriteFShuffleLd, ReadAfterLd]>;
|
||||||
let isConvertibleToThreeAddress = IsConvertibleToThreeAddress in
|
def rri : PIi8<0xC6, MRMSrcReg, (outs RC:$dst),
|
||||||
def rri : PIi8<0xC6, MRMSrcReg, (outs RC:$dst),
|
(ins RC:$src1, RC:$src2, i8imm:$src3), asm,
|
||||||
(ins RC:$src1, RC:$src2, i8imm:$src3), asm,
|
[(set RC:$dst, (vt (X86Shufp RC:$src1, RC:$src2,
|
||||||
[(set RC:$dst, (vt (X86Shufp RC:$src1, RC:$src2,
|
(i8 imm:$src3))))], IIC_SSE_SHUFP, d>,
|
||||||
(i8 imm:$src3))))], IIC_SSE_SHUFP, d>,
|
Sched<[WriteFShuffle]>;
|
||||||
Sched<[WriteFShuffle]>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defm VSHUFPS : sse12_shuffle<VR128, f128mem, v4f32,
|
defm VSHUFPS : sse12_shuffle<VR128, f128mem, v4f32,
|
||||||
@ -2596,10 +2595,10 @@ defm VSHUFPDY : sse12_shuffle<VR256, f256mem, v4f64,
|
|||||||
let Constraints = "$src1 = $dst" in {
|
let Constraints = "$src1 = $dst" in {
|
||||||
defm SHUFPS : sse12_shuffle<VR128, f128mem, v4f32,
|
defm SHUFPS : sse12_shuffle<VR128, f128mem, v4f32,
|
||||||
"shufps\t{$src3, $src2, $dst|$dst, $src2, $src3}",
|
"shufps\t{$src3, $src2, $dst|$dst, $src2, $src3}",
|
||||||
memopv4f32, SSEPackedSingle, 1 /* cvt to pshufd */>, PS;
|
memopv4f32, SSEPackedSingle>, PS;
|
||||||
defm SHUFPD : sse12_shuffle<VR128, f128mem, v2f64,
|
defm SHUFPD : sse12_shuffle<VR128, f128mem, v2f64,
|
||||||
"shufpd\t{$src3, $src2, $dst|$dst, $src2, $src3}",
|
"shufpd\t{$src3, $src2, $dst|$dst, $src2, $src3}",
|
||||||
memopv2f64, SSEPackedDouble, 1 /* cvt to pshufd */>, PD;
|
memopv2f64, SSEPackedDouble>, PD;
|
||||||
}
|
}
|
||||||
|
|
||||||
let Predicates = [HasAVX] in {
|
let Predicates = [HasAVX] in {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user