Re: [GHC] #8437: pprCallishMachOp_for_C: MO_Prefetch_Data 0 not supported

#8437: pprCallishMachOp_for_C: MO_Prefetch_Data 0 not supported -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Build | Version: 7.7 System | Keywords: Resolution: fixed | Architecture: powerpc64 Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: Building | Related Tickets: GHC failed | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * failure: None/Unknown => Building GHC failed * component: Compiler => Build System * resolution: => fixed Comment: Replying to [comment:2 rwbarton]:
Ideally, you would output a `__builtin_prefetch` call where `rw` is 0, `locality` is the argument of the `MO_Prefetch_Data` constructor, and `addr` comes from the `args` field of the `CmmUnsafeForeignCall`. That looks pretty easy to do, by adding another special case for `fn_addr` and sending `MO_Prefetch_Data _` to `__builtin_prefetch` in `pprCallishMachOp_for_C`.
Please open a new task ticket if that is still needed. Commit 896cee02e766c687a52cd75382bcfed64a623619 should have fixed the powerpc64 build, so I'm closing this ticket if you agree. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8437#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC