#2388: GHC creates invalid test instruction for 64-bit code
-------------------------------+--------------------------------------------
 Reporter:  MartinGrabmueller  |          Owner:                
     Type:  bug                |         Status:  new           
 Priority:  normal             |      Milestone:  6.10.1        
Component:  Compiler           |        Version:  6.8.2         
 Severity:  normal             |     Resolution:                
 Keywords:                     |     Difficulty:  Unknown       
 Testcase:                     |   Architecture:  x86_64 (amd64)
       Os:  Linux              |  
-------------------------------+--------------------------------------------
Comment (by igloo):

 Small testcase:
 {{{
 module Q where

 import Data.Bits
 import Data.Word

 splitBytes :: Word32 -> Char
 splitBytes w | w .&. 0x80000000 /= 0 = 'a'
 splitBytes _ = 'b'
 }}}
 {{{
 ghc-inplace --make -O q
 [1 of 1] Compiling Q                ( q.hs, q.o )
 /tmp/ghc10020_0/ghc10020_0.s: Assembler messages:

 /tmp/ghc10020_0/ghc10020_0.s:28:0:
      Error: suffix or operands invalid for `test'
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2388#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to