summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-02-11 09:18:09 +0100
committerBen Gamari <ben@smart-cactus.org>2020-06-17 16:22:04 -0400
commitf817d816e60a487bca64037095c01e9956225b64 (patch)
tree7e2779c7e2485539001b3649bea62554b6d924f7 /testsuite/tests/simplCore
parentaa9e7b7196f03f84579e3b4a09068c668cbe6ffb (diff)
downloadhaskell-f817d816e60a487bca64037095c01e9956225b64.tar.gz
Update testsuite
* support detection of slow ghc-bignum backend (to replace the detection of integer-simple use). There are still some test cases that the native backend doesn't handle efficiently enough. * remove tests for GMP only functions that have been removed from ghc-bignum * fix test results showing dependent packages (e.g. integer-gmp) or showing suggested instances * fix test using Integer/Natural API or showing internal names
Diffstat (limited to 'testsuite/tests/simplCore')
-rw-r--r--testsuite/tests/simplCore/should_compile/T15445.stderr2
-rw-r--r--testsuite/tests/simplCore/should_run/T5603.hs8
-rw-r--r--testsuite/tests/simplCore/should_run/all.T3
3 files changed, 6 insertions, 7 deletions
diff --git a/testsuite/tests/simplCore/should_compile/T15445.stderr b/testsuite/tests/simplCore/should_compile/T15445.stderr
index d5deac5a59..6f25622a9d 100644
--- a/testsuite/tests/simplCore/should_compile/T15445.stderr
+++ b/testsuite/tests/simplCore/should_compile/T15445.stderr
@@ -1,6 +1,6 @@
Rule fired: Class op + (BUILTIN)
Rule fired: Class op fromInteger (BUILTIN)
-Rule fired: integerToInt (BUILTIN)
+Rule fired: Integer -> Int# (BUILTIN)
Rule fired: SPEC plusTwoRec (T15445a)
Rule fired: SPEC $fShow[] (GHC.Show)
Rule fired: Class op >> (BUILTIN)
diff --git a/testsuite/tests/simplCore/should_run/T5603.hs b/testsuite/tests/simplCore/should_run/T5603.hs
index c1545d2c39..c5bbaf9730 100644
--- a/testsuite/tests/simplCore/should_run/T5603.hs
+++ b/testsuite/tests/simplCore/should_run/T5603.hs
@@ -4,13 +4,13 @@
module Main (main) where
import GHC.Base
-import GHC.Integer.GMP.Internals
+import GHC.Num.Integer
main :: IO ()
main = (encodeDouble 0 :: Double) `seq` return ()
{-# INLINE encodeDouble #-}
encodeDouble :: Integer -> Double
-encodeDouble (S# _) = D# 3.0##
-encodeDouble (Jp# _) = D# 4.0##
-encodeDouble (Jn# _) = D# 5.0##
+encodeDouble (IS _) = D# 3.0##
+encodeDouble (IP _) = D# 4.0##
+encodeDouble (IN _) = D# 5.0##
diff --git a/testsuite/tests/simplCore/should_run/all.T b/testsuite/tests/simplCore/should_run/all.T
index d730632345..48e3d90961 100644
--- a/testsuite/tests/simplCore/should_run/all.T
+++ b/testsuite/tests/simplCore/should_run/all.T
@@ -46,8 +46,7 @@ test('T3972', [], compile_and_run, [''])
test('T5315', normal, compile_and_run, [''])
test('T5453', normal, compile_and_run, [''])
test('T5441', [], multimod_compile_and_run, ['T5441', ''])
-# This compares Core from integer-gmp
-test('T5603', reqlib('integer-gmp'), compile_and_run, [''])
+test('T5603', normal, compile_and_run, [''])
test('T2110', normal, compile_and_run, [''])
test('AmapCoerce', normal, compile_and_run, [''])
test('T16208', normal, compile_and_run, [''])