1. 22 Mar, 2014 1 commit
    • rwbarton's avatar
      Make argument types in popcnt.c match declared primop types · ad9bf968
      rwbarton authored
      On 64-bit Mac OS, gcc 4.2 (which comes with Xcode 4.6) generates code
      that assumes that an argument that is smaller than the register
      it is passed in has been sign- or zero-extended. But ghc thinks
      the types of the PopCnt*Op primops are Word# -> Word#, so it passes
      the entire argument word to the hs_popcnt* function as though it was
      declared to have an argument of type StgWord. Segfaults ensue.
      
      The easiest fix is to sidestep all this zero-extension business
      by declaring the hs_popcnt* functions to take a whole StgWord (when their
      argument would fit in a register), thereby matching the list of primops.
      
      Fixes #7684.
      ad9bf968
  2. 16 Mar, 2014 1 commit
  3. 14 Mar, 2014 4 commits
  4. 01 Mar, 2014 1 commit
  5. 30 Jan, 2014 2 commits
  6. 27 Oct, 2013 3 commits
  7. 25 Oct, 2013 2 commits
  8. 18 Sep, 2013 3 commits
  9. 13 Sep, 2013 1 commit
    • Joachim Breitner's avatar
      Define GHC.Types.Coercible · 32ab616f
      Joachim Breitner authored
      This data type is required so that Coercible (which is actually a class
      and is exported from GHC.Prim) has a info table etc., similar to ~
      32ab616f
  10. 11 Sep, 2013 1 commit
  11. 16 Aug, 2013 1 commit
    • Jan Stolarek's avatar
      Change return type for emulated 64bit comparisons · 84fed893
      Jan Stolarek authored
      In the previous patch I used Int64# as a return value for
      comparison primops used on 32bit machines for comparing Int64#
      and Word64#. This obviously wasn't a good idea. This patch changes
      return type from emulated Int64# to a native Int#.
      84fed893
  12. 26 Jul, 2013 1 commit
  13. 09 Jun, 2013 1 commit
  14. 06 Dec, 2012 1 commit
  15. 30 Nov, 2012 2 commits
  16. 23 Nov, 2012 1 commit
  17. 13 Nov, 2012 2 commits
  18. 10 Jul, 2012 1 commit
  19. 21 Jun, 2012 1 commit
  20. 19 Jun, 2012 1 commit
  21. 21 May, 2012 1 commit
  22. 21 Feb, 2012 1 commit
  23. 16 Feb, 2012 1 commit
  24. 26 Sep, 2011 2 commits
  25. 08 Sep, 2011 1 commit
  26. 06 Sep, 2011 1 commit
  27. 27 Aug, 2011 1 commit
    • daniel.is.fischer's avatar
      Fix return type of hs_popcntX · 9cd14ba0
      daniel.is.fischer authored
      All the hs_popcntX functions should return an StgWord in accordance with
      the primop types.
      I'm not sure whether the argument should also become an StgWord
      (except for the 64-bit versions), the primops have type Word# -> Word#,
      but we have e.g. StgWord hs_popcnt8(StgWord8 x).
      StgWord8 is an unsigned char (usually, at least), but I think arguments
      are passed at least word-sized to C-functions, so it probably works.
      For the moment it works and passes tests, I'll ask tibbe to be sure.
      9cd14ba0
  28. 26 Aug, 2011 1 commit