Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
e5c968a6
Commit
e5c968a6
authored
Apr 13, 2006
by
Simon Marlow
Browse files
forgot to add this file
parent
7b73a751
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/numeric/should_run/arith018.hs
0 → 100644
View file @
e5c968a6
-- exposes a bug in the native code generator in GHC 6.4.1. Division by
-- a power of 2 was being mis-optimsed to a direct shift.
main
=
do
print
(
map
f4
[(
-
20
)
..
(
-
1
)])
print
(
map
f8
[(
-
20
)
..
(
-
1
)])
f4
::
Int
->
Int
f4
x
=
x
`
quot
`
4
f8
::
Int
->
Int
f8
x
=
x
`
quot
`
8
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment