Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
cb5a00c7
Commit
cb5a00c7
authored
Jun 09, 2013
by
ian@well-typed.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cgrun072
parent
c5d5e3ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
testsuite/tests/codeGen/should_run/cgrun072.hs
testsuite/tests/codeGen/should_run/cgrun072.hs
+7
-9
testsuite/tests/codeGen/should_run/cgrun072.stdout
testsuite/tests/codeGen/should_run/cgrun072.stdout
+0
-1
No files found.
testsuite/tests/codeGen/should_run/cgrun072.hs
View file @
cb5a00c7
...
...
@@ -8,21 +8,19 @@ import GHC.Word
#
include
"MachDeps.h"
main
=
putStr
(
test_bSwap16
++
"
\n
"
++
test_bSwap32
++
"
\n
"
++
test_bSwap64
++
"
\n
"
++
"
\n
"
)
main
::
IO
()
main
=
do
putStrLn
test_bSwap16
putStrLn
test_bSwap32
putStrLn
test_bSwap64
bswap16
::
Word16
->
Word16
bswap16
(
W16
#
w
#
)
=
W16
#
(
bSwap16
#
w
#
)
bswap16
(
W16
#
w
#
)
=
W16
#
(
b
yte
Swap16
#
w
#
)
bswap32
::
Word32
->
Word32
bswap32
(
W32
#
w
#
)
=
W32
#
(
bSwap32
#
w
#
)
bswap32
(
W32
#
w
#
)
=
W32
#
(
b
yte
Swap32
#
w
#
)
bswap64
::
Word64
->
Word64
bswap64
(
W64
#
w
#
)
=
W64
#
(
bSwap64
#
w
#
)
bswap64
(
W64
#
w
#
)
=
W64
#
(
b
yte
Swap64
#
w
#
)
slowBswap64
::
Word64
->
Word64
slowBswap64
w
=
...
...
testsuite/tests/codeGen/should_run/cgrun072.stdout
View file @
cb5a00c7
OK
OK
OK
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