mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-02 09:33:59 +00:00
Oops. PSHUFD is only available with SSE2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28573 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9e18ef5262
commit
51da42c28f
@ -121,6 +121,8 @@ MachineInstr *X86InstrInfo::convertToThreeAddress(MachineInstr *MI) const {
|
|||||||
default: break;
|
default: break;
|
||||||
case X86::SHUFPSrri: {
|
case X86::SHUFPSrri: {
|
||||||
assert(MI->getNumOperands() == 4 && "Unknown shufps instruction!");
|
assert(MI->getNumOperands() == 4 && "Unknown shufps instruction!");
|
||||||
|
const X86Subtarget *Subtarget = &TM.getSubtarget<X86Subtarget>();
|
||||||
|
if (Subtarget->hasSSE2()) {
|
||||||
unsigned A = MI->getOperand(0).getReg();
|
unsigned A = MI->getOperand(0).getReg();
|
||||||
unsigned B = MI->getOperand(1).getReg();
|
unsigned B = MI->getOperand(1).getReg();
|
||||||
unsigned C = MI->getOperand(2).getReg();
|
unsigned C = MI->getOperand(2).getReg();
|
||||||
@ -128,6 +130,7 @@ MachineInstr *X86InstrInfo::convertToThreeAddress(MachineInstr *MI) const {
|
|||||||
return BuildMI(X86::PSHUFDri, 2, A).addReg(B).addImm(M);
|
return BuildMI(X86::PSHUFDri, 2, A).addReg(B).addImm(M);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: None of these instructions are promotable to LEAs without
|
// FIXME: None of these instructions are promotable to LEAs without
|
||||||
// additional information. In particular, LEA doesn't set the flags that
|
// additional information. In particular, LEA doesn't set the flags that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user