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:
eedcf3f
)
Fix the PPC JIT regressions by encoding zeroreg as 0 for BLR.
author
Chris Lattner
<sabre@nondot.org>
Wed, 13 Feb 2008 17:24:14 +0000
(17:24 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 13 Feb 2008 17:24:14 +0000
(17:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47067
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCRegisterInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCRegisterInfo.cpp
b/lib/Target/PowerPC/PPCRegisterInfo.cpp
index a21abe5810c800a405ab05bc01d7eaf882215af1..28ac7fdabe118d69cd6410c2383e13e8f7af8945 100644
(file)
--- a/
lib/Target/PowerPC/PPCRegisterInfo.cpp
+++ b/
lib/Target/PowerPC/PPCRegisterInfo.cpp
@@
-46,6
+46,7
@@
using namespace llvm;
unsigned PPCRegisterInfo::getRegisterNumbering(unsigned RegEnum) {
using namespace PPC;
switch (RegEnum) {
+ case 0: return 0;
case R0 : case X0 : case F0 : case V0 : case CR0: return 0;
case R1 : case X1 : case F1 : case V1 : case CR1: return 1;
case R2 : case X2 : case F2 : case V2 : case CR2: return 2;