FIX #1843: Generate different instructions on PPC
[ghc-hetmet.git] / compiler / nativeGen / MachCodeGen.hs
index 7108c48..4692f06 100644 (file)
@@ -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)