FIX rts build failure for powerPC build
authorandy@galois.com <unknown>
Tue, 10 Jul 2007 07:17:13 +0000 (07:17 +0000)
committerandy@galois.com <unknown>
Tue, 10 Jul 2007 07:17:13 +0000 (07:17 +0000)
commit6103e1e2daf6aceb1a827723a1a2379ec655e946
tree601b2028a1c482ca37a5693aa6db17540875a57f
parent819badd59bd785e0f70aa416907f62cd92c8cb1f
FIX rts build failure for powerPC build

The rts was failing with

../compiler/ghc-inplace -H64m -Onot -fasm -optc-O2 -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint  -hisuf thr_p_hi -hcsuf thr_p_hc -osuf thr_p_o -optc-DTHREADED_RTS -prof -#include posix/Itimer.h  -c PrimOps.cmm -o PrimOps.thr_p_o
ghc-6.7.20070709: panic! (the 'impossible' happened)
  (GHC version 6.7.20070709 for powerpc-apple-darwin):
        iselExpr64(powerpc) %MO_U_Conv_I32_I64(16 / 4 - 2)

There was a special case for x86; so it has been transliterated to the PPC, and the output code looks plausable.
compiler/nativeGen/MachCodeGen.hs