[GHC] #9125: int-to-float conversion broken on ARM

GHC ghc-devs at haskell.org
Tue Jul 29 05:58:19 UTC 2014


#9125: int-to-float conversion broken on ARM
-------------------------------------+-------------------------------------
              Reporter:  Ansible     |            Owner:
                  Type:  bug         |           Status:  infoneeded
              Priority:  highest     |        Milestone:  7.8.4
             Component:  Compiler    |          Version:  7.8.3
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  arm
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:  Incorrect   |       Blocked By:
  result at runtime                  |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
Changes (by rwbarton):

 * status:  new => infoneeded


Comment:

 I think that something is reordering the assignment to R1 with the call to
 `__decodeFloat_Int`. After all, R1 is supposed to receive the value that
 ends up at `Sp[-4]`, which is set to F1 at the top of the function. Not
 sure whether GHC or LLVM is doing this incorrect reordering.

 It would be informative to

 * build the broken GHC
 * `rm rts/dist/build/PrimOps.o`
 * run `make` again and copy the command used to build
 `rts/dist/build/PrimOps.o`
 * rerun the command with `-v -keep-tmp-files -ddump-cmm -ddump-to-file`
 * find the files `rts/PrimOps.dump-cmm` and `/tmp/ghc*/ghc*.ll` and attach
 them to this ticket

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9125#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list