forked from OSchip/llvm-project
Oops. PSHUFD is only available with SSE2.
llvm-svn: 28573
This commit is contained in:
parent
a5d4587296
commit
a4fc5b8699
|
@ -121,6 +121,8 @@ MachineInstr *X86InstrInfo::convertToThreeAddress(MachineInstr *MI) const {
|
|||
default: break;
|
||||
case X86::SHUFPSrri: {
|
||||
assert(MI->getNumOperands() == 4 && "Unknown shufps instruction!");
|
||||
const X86Subtarget *Subtarget = &TM.getSubtarget<X86Subtarget>();
|
||||
if (Subtarget->hasSSE2()) {
|
||||
unsigned A = MI->getOperand(0).getReg();
|
||||
unsigned B = MI->getOperand(1).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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: None of these instructions are promotable to LEAs without
|
||||
// additional information. In particular, LEA doesn't set the flags that
|
||||
|
|
Loading…
Reference in New Issue