llvm.org GIT mirror llvm / 3c45ea4
Revert "[mips] Honour -mno-odd-spreg for vector splat" This reverts commit r291556. It was a mixture of two differentials and was missing a test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291562 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Dardis 2 years ago
2 changed file(s) with 2 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "MCTargetDesc/MipsABIInfo.h"
1413 #include "MipsTargetStreamer.h"
1514 #include "InstPrinter/MipsInstPrinter.h"
1615 #include "MipsELFStreamer.h"
684683 // the ABI, but this is fraught with wide ranging dependency
685684 // issues as well.
686685 unsigned EFlags = MCA.getELFHeaderEFlags();
687
688 // FIXME: Fix a dependency issue by instantiating the ABI object to some
689 // default based off the triple. The triple doesn't describe the target
690 // fully, but any external user of the API that uses the MCTargetStreamer
691 // would otherwise crash on assertion failure.
692
693 ABI = MipsABIInfo(
694 STI.getTargetTriple().getArch() == Triple::ArchType::mipsel ||
695 STI.getTargetTriple().getArch() == Triple::ArchType::mips
696 ? MipsABIInfo::O32()
697 : MipsABIInfo::N64());
698686
699687 // Architecture
700688 if (Features[Mips::FeatureMips64r6])
33763376 DebugLoc DL = MI.getDebugLoc();
33773377 unsigned Wd = MI.getOperand(0).getReg();
33783378 unsigned Fs = MI.getOperand(1).getReg();
3379 unsigned Wt1 = RegInfo.createVirtualRegister(
3380 Subtarget.useOddSPReg() ? &Mips::MSA128WRegClass
3381 : &Mips::MSA128WEvensRegClass);
3382 unsigned Wt2 = RegInfo.createVirtualRegister(
3383 Subtarget.useOddSPReg() ? &Mips::MSA128WRegClass
3384 : &Mips::MSA128WEvensRegClass);
3379 unsigned Wt1 = RegInfo.createVirtualRegister(&Mips::MSA128WRegClass);
3380 unsigned Wt2 = RegInfo.createVirtualRegister(&Mips::MSA128WRegClass);
33853381
33863382 BuildMI(*BB, MI, DL, TII->get(Mips::IMPLICIT_DEF), Wt1);
33873383 BuildMI(*BB, MI, DL, TII->get(Mips::INSERT_SUBREG), Wt2)