cvs commit: fptools/ghc/compiler/nativeGen MachCode.lhs MachMisc.lhs PprMach.lhs StixPrim.lhs fptools/ghc/compiler/prelude PrimRep.lhs

Julian Seward sewardj@glass.cse.ogi.edu
Wed, 31 Jan 2001 04:27:25 -0800


sewardj     2001/01/31 04:27:25 PST

  Modified files:
    ghc/compiler/nativeGen MachCode.lhs MachMisc.lhs PprMach.lhs 
                           StixPrim.lhs 
    ghc/compiler/prelude PrimRep.lhs 
  Log:
  Create PrimReps: {Int|Word}{8|16|32}Rep, for use in the native code
  generator.  And change the rep for character ops from Int8Rep to
  Word8Rep.  This fixes a bug in the sparc NCG in which chars loaded from
  memory were incorrectly sign-extended to 32 bits.  This problem
  appeared when CharRep was turned into a 32-bit quantity, and
  previous uses of it were replaced with Int8Rep, incorrectly, since
  Int8Rep is signed.  Also undo the kludge in the x86 section which
  had (unknown to all) kept it working despite the change to Int8Rep.
  
  sparc NCG now appears to work; hope the x86 side isn't now broken.
  
  Revision  Changes    Path
  1.65      +3 -3      fptools/ghc/compiler/nativeGen/MachCode.lhs
  1.43      +8 -9      fptools/ghc/compiler/nativeGen/MachMisc.lhs
  1.49      +1 -9      fptools/ghc/compiler/nativeGen/PprMach.lhs
  1.61      +9 -9      fptools/ghc/compiler/nativeGen/StixPrim.lhs
  1.21      +24 -4     fptools/ghc/compiler/prelude/PrimRep.lhs