mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Fix the PPC JIT regressions by encoding zeroreg as 0 for BLR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47067 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eedcf3fc46
commit
a1998d1cba
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user