1. 26 Jan, 2017 1 commit
    • Daishi Nakajima's avatar
      Fix the right-shift operation for negative big integers (fixes #12136) · 06b9561a
      Daishi Nakajima authored
      In `x shiftR y`, any of the following conditions cause an abort:
      - `x` is a negative big integer
      - The size of `x` and `y` is a multiple of `GMP_NUMB_BITS`
      - The bit of the absolute value of `x` is filled with `1`
      
      For example:
      Assuming `GMP_NUMB_BITS = 2`,  the processing of `-15 shiftR 2` is as 
      follows:
      
      1. -15 = -1111 (twos complement: 10001)
      2. right shift 2 (as a positive number) -> 0011
      3. Due to the shift larger than GMP_NUMB_BITS, the size of the 
      destination is decreasing (2bit) -> 11
      4. Add 1, and get carry: (1) 00
      5. abort
      
      I fixed it that the destination size does not decrease in such a case.
      
      Test Plan: I tested the specific case being reported.
      
      Reviewers: goldfire, austin, hvr, bgamari, rwbarton
      
      Reviewed By: bgamari, rwbarton
      
      Subscribers: mpickering, rwbarton, thomie
      
      Differential Revision: https://phabricator.haskell.org/D2998
      
      GHC Trac Issues: #12136
      06b9561a
  2. 22 Jan, 2017 1 commit
    • thomie's avatar
      Remove clean_cmd and extra_clean usage from .T files · 5d38fb69
      thomie authored
      The `clean_cmd` and `extra_clean` setup functions don't do anything.
      Remove them from .T files.
      
      Created using https://github.com/thomie/refactor-ghc-testsuite. This
      diff is a test for the .T-file parser/processor/pretty-printer in that
      repository.
      
          find . -name '*.T' -exec ~/refactor-ghc-testsuite/Main "{}" \;
      
      Tests containing inline comments or multiline strings are not modified.
      
      Preparation for #12223.
      
      Test Plan: Harbormaster
      
      Reviewers: austin, hvr, simonmar, mpickering, bgamari
      
      Reviewed By: mpickering
      
      Subscribers: mpickering
      
      Differential Revision: https://phabricator.haskell.org/D3000
      
      GHC Trac Issues: #12223
      5d38fb69
  3. 20 Jun, 2016 1 commit
    • thomie's avatar
      Testsuite: delete dead code + cleanup · ebaf26b7
      thomie authored
      * Set config settings directly in mk/test.mk, instead of indirectly in
        config/ghc
      * passing --hpcdir for WAY=hpc is unnecessary
      ebaf26b7
  4. 20 Mar, 2016 2 commits
  5. 14 Mar, 2016 1 commit
  6. 22 Jan, 2016 1 commit
    • rwbarton's avatar
      Always run test T9407 · 85e147e0
      rwbarton authored
      We don't know what the cause of the bug was, or what commit fixed it.
      or why it was Windows only. So it seems prudent to run it in all
      configurations, in case the bug should crop up again.
      85e147e0
  7. 20 Jan, 2016 1 commit
  8. 31 Oct, 2015 1 commit
  9. 13 Jul, 2015 1 commit
  10. 19 Mar, 2015 1 commit
  11. 19 Nov, 2014 1 commit
    • Herbert Valerio Riedel's avatar
      Restore exact old semantics of `decodeFloat` · e2af452c
      Herbert Valerio Riedel authored
      `integer-gmp2` uses the new 64bit-based IEEE deconstructing primop
      introduced in b62bd5ec.
      
      However, the returned values differ for exceptional IEEE values:
      
      Previous (expected) semantics:
      
        > decodeFloat (-1/0)
        (-4503599627370496,972)
      
        > decodeFloat (1/0)
        (4503599627370496,972)
      
        > decodeFloat (0/0)
        (-6755399441055744,972)
      
      Currently (broken) semantics:
      
        > decodeFloat (-1/0 :: Double)
        (-9223372036854775808,-53)
      
        > decodeFloat (1/0 :: Double)
        (-9223372036854775808,-53)
      
        > decodeFloat (0/0 :: Double)
        (-9223372036854775808,-53)
      
      This patch reverts to the old expected semantics.
      
      I plan to revisit the implementation during GHC 7.11 development.
      
      This should address #9810
      
      Reviewed By: austin, ekmett, luite
      
      Differential Revision: https://phabricator.haskell.org/D486
      e2af452c
  12. 19 Oct, 2014 1 commit
    • Krzysztof Gogolewski's avatar
      Python 3 support, second attempt (Trac #9184) · d576fc38
      Krzysztof Gogolewski authored
      Summary:
      This is a fixup of https://phabricator.haskell.org/D233
      
      The only difference is in findTFiles (first commit), which
      previously broke Windows runner; now I translated literally
      instead attempting to improve it, and checked it works.
      
      Test Plan:
      I used validate under 2,3 on Linux and under 2 on msys2.
      On Windows I've seen a large number of failures, but they don't
      seem to be connected with the patch.
      
      Reviewers: hvr, simonmar, thomie, austin
      
      Reviewed By: austin
      
      Subscribers: thomie, carter, ezyang, simonmar
      
      Differential Revision: https://phabricator.haskell.org/D310
      
      GHC Trac Issues: #9184
      d576fc38
  13. 03 Oct, 2014 1 commit
  14. 01 Oct, 2014 1 commit
    • Krzysztof Gogolewski's avatar
      Basic Python 3 support for testsuite driver (Trac #9184) · 084d241b
      Krzysztof Gogolewski authored
      Summary:
      Most of the changes is adaptation of old Python 2 only code.
      My priority was not breaking Python 2, and so I avoided bigger
      changes to the driver. In particular, under Python 3 the output
      is a str and buffering cannot be disabled.
      
      To test, define PYTHON=python3 in testsuite/mk/boilerplate.mk.
      
      Thanks to aspidites <emarshall85@gmail.com> who provided the initial patch.
      
      Test Plan: validate under 2 and 3
      
      Reviewers: hvr, simonmar, thomie, austin
      
      Reviewed By: thomie, austin
      
      Subscribers: aspidites, thomie, simonmar, ezyang, carter
      
      Differential Revision: https://phabricator.haskell.org/D233
      
      GHC Trac Issues: #9184
      084d241b
  15. 09 Aug, 2014 1 commit
  16. 02 Feb, 2014 1 commit
  17. 28 Aug, 2013 1 commit
  18. 19 Aug, 2013 1 commit
  19. 19 Feb, 2013 1 commit
    • Jan Stolarek's avatar
      Test #7689 · 9cfc862f
      Jan Stolarek authored
      Tests primitive bitwise `andI#`, `orI#`, `notI#`, `xorI#`
      operations on Int#
      9cfc862f
  20. 14 Feb, 2013 1 commit
  21. 08 Feb, 2013 1 commit
  22. 26 Jan, 2013 1 commit
  23. 25 Jan, 2013 1 commit
  24. 17 Jan, 2013 1 commit
  25. 24 Oct, 2012 1 commit
  26. 27 Jul, 2012 1 commit
  27. 20 Jun, 2012 1 commit
  28. 15 May, 2012 1 commit
  29. 21 Apr, 2012 1 commit
  30. 24 Feb, 2012 1 commit
  31. 23 Feb, 2012 1 commit
  32. 17 Jan, 2012 1 commit
  33. 20 Jul, 2011 1 commit
  34. 09 Dec, 2010 1 commit
  35. 13 Oct, 2010 1 commit
  36. 08 Oct, 2010 1 commit
  37. 24 Feb, 2010 1 commit
  38. 23 Feb, 2010 1 commit
  39. 11 Feb, 2010 1 commit