Commit b65f16d0 authored by Ian Lynagh's avatar Ian Lynagh

Fix integerConstantFolding on 32bit platforms

Daniel Fischer pointed out that the timesInteger test result doesn't
fir into Int on 32bit platforms.
parent f79861da
......@@ -11,7 +11,7 @@ integerConstantFolding:
# All the 100nnn values should be constant-folded away
! grep -q '\<100[0-9][0-9][0-9]\>' integerConstantFolding.simpl || { echo "Unfolded values found"; grep '\<100[0-9][0-9][0-9]\>' integerConstantFolding.simpl; }
$(call CHECK,\<200007\>,plusInteger)
$(call CHECK,\<10001100030\>,timesInteger)
$(call CHECK,\<683234160\>,timesInteger)
$(call CHECK,-991\>,minusIntegerN)
$(call CHECK,\<989\>,minusIntegerP)
$(call CHECK,-200011\>,negateInteger)
......
......@@ -48,7 +48,7 @@ plusInteger :: Integer
plusInteger = 100003 + 100004
timesInteger :: Integer
timesInteger = 100005 * 100006
timesInteger = 100005 * 6832
minusIntegerN :: Integer
minusIntegerN = 100007 - 100998
......
plusInteger: 200007
timesInteger: 10001100030
timesInteger: 683234160
minusIntegerN: -991
minusIntegerP: 989
negateInteger: -200011
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment