#2209: MagicHash extraction is wrong on x86_64 with -fasm -O2
----------------------+-----------------------------------------------------
 Reporter:  quark     |          Owner:                
     Type:  bug       |         Status:  new           
 Priority:  normal    |      Milestone:  6.8.3         
Component:  Compiler  |        Version:  6.8.2         
 Severity:  major     |     Resolution:                
 Keywords:            |     Difficulty:  Unknown       
 Testcase:            |   Architecture:  x86_64 (amd64)
       Os:  Linux     |  
----------------------+-----------------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown
  * milestone:  => 6.8.3

Comment:

 In my validated-HEAD, this gives me
 {{{
 /tmp/ghc4469_0/ghc4469_0.s:460:0:
      Error: suffix or operands invalid for `test'

 /tmp/ghc4469_0/ghc4469_0.s:463:0:
      Error: suffix or operands invalid for `test'

 /tmp/ghc4469_0/ghc4469_0.s:474:0:
      Error: suffix or operands invalid for `movsd'
 }}}
 complaining about these 3 lines:
 {{{
     testq %xmm0,%xmm0
     testq %xmm0,%xmm0
     movsd .Ln1c1(%rip),%rsi
 }}}

 We do claim that this ("Casting an unboxed type to another unboxed type of
 the same size") works in the `unsafeCoerce#` docs, so we ought to fix it!

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2209#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