[GHC] #16258: PowerPC Big-Endian: ArithInt16, ArithInt8, ArithWord16, and ArithWord8 fail
GHC
ghc-devs at haskell.org
Thu Jan 31 08:08:30 UTC 2019
#16258: PowerPC Big-Endian: ArithInt16, ArithInt8, ArithWord16, and ArithWord8 fail
-------------------------------------+-------------------------------------
Reporter: trommler | Owner: trommler
Type: bug | Status: new
Priority: normal | Milestone: 8.10.1
Component: Compiler | Version: 8.7
Resolution: | Keywords: Big-endian
Operating System: Unknown/Multiple | Architecture: powerpc64
Type of failure: Incorrect result | Test Case:
at runtime | primops/should_run/ArithInt16,
| primops/should_run/ArithWord16,
| primops/should_run/ArithWord8,
| primops/should_run/ArithInt8
Blocked By: | Blocking:
Related Tickets: #16222 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by trommler):
In Cmm I find the following 16 bit store to the stack:
{{{
R1 = _s1MY::P64; // CmmAssign
I64[Sp] = stg_ap_n_info; // CmmStore
I16[Sp + 8] = _s1N6::I16; // CmmStore
call stg_ap_n_fast(R2, R1) args: 24, res: 8, upd: 8; //
CmmCall
}}}
This is most likely wrong, it should probably be a 64 bit store.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16258#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list