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:
e41419f
)
Fix the JIT failures from last night.
author
Chris Lattner
<sabre@nondot.org>
Sun, 11 Dec 2005 07:37:41 +0000
(07:37 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 11 Dec 2005 07:37:41 +0000
(07:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24659
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCCodeEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCCodeEmitter.cpp
b/lib/Target/PowerPC/PPCCodeEmitter.cpp
index d576b79eb715914d0e4c2622db289e9a5ab1f08d..95f84ebe74284f9c5aaa1c90d432e08f19aa784a 100644
(file)
--- a/
lib/Target/PowerPC/PPCCodeEmitter.cpp
+++ b/
lib/Target/PowerPC/PPCCodeEmitter.cpp
@@
-242,11
+242,12
@@
int PPCCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
unsigned index = MO.getConstantPoolIndex();
unsigned Opcode = MI.getOpcode();
rv = MCE.getConstantPoolEntryAddress(index);
- if (Opcode == PPC::LIS) {
+ if (Opcode == PPC::LIS
|| Opcode == PPC::ADDIS
) {
// lis wants hi16(addr)
if ((short)rv < 0) rv += 1 << 16;
rv >>= 16;
} else if (Opcode == PPC::LWZ || Opcode == PPC::LA ||
+ Opcode == PPC::LI ||
Opcode == PPC::LFS || Opcode == PPC::LFD) {
// These load opcodes want lo16(addr)
rv &= 0xffff;