
#10677: slightly silly assembly for testing whether a Word# is 0##
-------------------------------------+-------------------------------------
Reporter: rwbarton | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 7.11
(CodeGen) |
Keywords: | Operating System: Unknown/Multiple
Architecture: x86_64 | Type of failure: Runtime
(amd64) | performance bug
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Revisions: |
-------------------------------------+-------------------------------------
{{{
{-# LANGUAGE MagicHash #-}
module Zero where
import GHC.Exts
f :: Word# -> Word#
f 0## = 1##
f x## = x##
}}}
in HEAD produces
{{{
0000000000000018