projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
957e574
)
Fix a bug where we were passing the wrong number of arguments to an
author
Nate Begeman
<natebegeman@mac.com>
Fri, 19 Aug 2005 03:42:28 +0000
(
03:42
+0000)
committer
Nate Begeman
<natebegeman@mac.com>
Fri, 19 Aug 2005 03:42:28 +0000
(
03:42
+0000)
instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22901
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCISelPattern.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCISelPattern.cpp
b/lib/Target/PowerPC/PPCISelPattern.cpp
index 3ca7cd6c610f8a33f019171c9bc724c0bea64a55..caf6b3981d09091d58db08d1b7a51dedf400dab4 100644
(file)
--- a/
lib/Target/PowerPC/PPCISelPattern.cpp
+++ b/
lib/Target/PowerPC/PPCISelPattern.cpp
@@
-469,7
+469,10
@@
void ISel::MoveCRtoGPR(unsigned CCReg, ISD::CondCode CC, unsigned Result){
BuildMI(BB, PPC::MCRF, 1, PPC::CR7).addReg(CCReg);
bool GPOpt =
TLI.getTargetMachine().getSubtarget<PPCSubtarget>().isGigaProcessor();
- BuildMI(BB, GPOpt ? PPC::MFOCRF : PPC::MFCR, 1, IntCR).addReg(PPC::CR7);
+ if (GPOpt)
+ BuildMI(BB, PPC::MFOCRF, 1, IntCR).addReg(PPC::CR7);
+ else
+ BuildMI(BB, PPC::MFCR, 0, IntCR);
if (Inv) {
unsigned Tmp1 = MakeIntReg();
BuildMI(BB, PPC::RLWINM, 4, Tmp1).addReg(IntCR).addImm(32-(3-Idx))