[PATCH] D63865: [ARM] Fix bogus assertions in copyPhysReg v8.1-M cases.
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 05:44:01 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL364534: [ARM] Fix bogus assertions in copyPhysReg v8.1-M cases. (authored by statham, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D63865?vs=206807&id=206839#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63865/new/
https://reviews.llvm.org/D63865
Files:
llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
Index: llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -927,25 +927,25 @@
copyToCPSR(MBB, I, SrcReg, KillSrc, Subtarget);
return;
} else if (DestReg == ARM::VPR) {
- assert(ARM::GPRPairRegClass.contains(SrcReg));
+ assert(ARM::GPRRegClass.contains(SrcReg));
BuildMI(MBB, I, I->getDebugLoc(), get(ARM::VMSR_P0), DestReg)
.addReg(SrcReg, getKillRegState(KillSrc))
.add(predOps(ARMCC::AL));
return;
} else if (SrcReg == ARM::VPR) {
- assert(ARM::GPRPairRegClass.contains(DestReg));
+ assert(ARM::GPRRegClass.contains(DestReg));
BuildMI(MBB, I, I->getDebugLoc(), get(ARM::VMRS_P0), DestReg)
.addReg(SrcReg, getKillRegState(KillSrc))
.add(predOps(ARMCC::AL));
return;
} else if (DestReg == ARM::FPSCR_NZCV) {
- assert(ARM::GPRPairRegClass.contains(SrcReg));
+ assert(ARM::GPRRegClass.contains(SrcReg));
BuildMI(MBB, I, I->getDebugLoc(), get(ARM::VMSR_FPSCR_NZCVQC), DestReg)
.addReg(SrcReg, getKillRegState(KillSrc))
.add(predOps(ARMCC::AL));
return;
} else if (SrcReg == ARM::FPSCR_NZCV) {
- assert(ARM::GPRPairRegClass.contains(DestReg));
+ assert(ARM::GPRRegClass.contains(DestReg));
BuildMI(MBB, I, I->getDebugLoc(), get(ARM::VMRS_FPSCR_NZCVQC), DestReg)
.addReg(SrcReg, getKillRegState(KillSrc))
.add(predOps(ARMCC::AL));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63865.206839.patch
Type: text/x-patch
Size: 1547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190627/9a5b550b/attachment.bin>
More information about the llvm-commits
mailing list