Ensure that scrutinee constant folding wraps numbers
authorSylvain Henry <hsyl20@gmail.com>
Tue, 24 Jan 2017 02:57:38 +0000 (21:57 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 24 Jan 2017 03:05:53 +0000 (22:05 -0500)
commit53e2e70a477896d57059b5f12147b69d22a2e2e0
tree1ac54818bdffb85c0f68c11b17402f99cf7fa656
parent1761bfacbce4fbd0b54481120316c565860222e5
Ensure that scrutinee constant folding wraps numbers

Test Plan: T13172

Reviewers: rwbarton, simonpj, austin, bgamari

Reviewed By: simonpj, bgamari

Subscribers: simonpj, thomie

Differential Revision: https://phabricator.haskell.org/D3009

GHC Trac Issues: #13172
compiler/prelude/PrelRules.hs
compiler/simplCore/SimplUtils.hs
testsuite/tests/simplCore/should_run/T13172.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_run/T13172.stdout [new file with mode: 0644]
testsuite/tests/simplCore/should_run/all.T