Skip to content

Bad assembler generated

Compiling SHA1.hs from darcs with -fasm on x86_64 results in a bunch of bad "addq" instructions. I suspect they come from the fact that Int (and thus ImmInt) is 64-bit, while the addq immediate is 32-bit.

While you're at it, maybe you can look into those "movl %esi, %esi" instructions too.

Trac metadata
Trac field Value
Version 6.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (NCG)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information