Commit 4d24d4f2 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

FIX #1843: Generate different instructions on PPC

The old ones caused lots of
    unknown scattered relocation type 4
errors. Patch from Chris Kuklewicz.
parent 2e7c7dae
......@@ -1751,8 +1751,8 @@ getRegister (CmmLit lit)
= let rep = cmmLitRep lit
imm = litToImm lit
code dst = toOL [
LIS dst (HI imm),
OR dst dst (RIImm (LO imm))
LIS dst (HA imm),
ADD dst dst (RIImm (LO imm))
]
in return (Any rep code)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment