Skip to content

Wrong constants in LL code for big endian targets

I'm trying to compile GHC for a big endian MIPS target (MIPS 24Kc, Atheros AR9330). The generated code for the negateFloat function has the following line:

%ln3uf = fsub float 0x0000000000000080, %ln3ue

But the constant should be 0x8000000000000000 instead.

See todays discussion in #ghc between wereHamster and rwbarton for more details and possible hints how/where to fix this.

Trac metadata
Trac field Value
Version 8.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (LLVM)
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