[GHC] #13442: Add a coercion/cast operator to CMM

GHC ghc-devs at haskell.org
Sun Mar 19 05:06:40 UTC 2017


#13442: Add a coercion/cast operator to CMM
-------------------------------------+-------------------------------------
        Reporter:  erikd             |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Compiler          |              Version:  8.0.1
      Resolution:  invalid           |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by erikd):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Ok, this works:
 {{{
 stg_wordToFloatzh(W_ w)
 {
     D_ d;
     STK_CHK_P_LL(WDS(1), stg_wordToFloatzh, w);
     Sp(-1) = w;
     d = D_ [Sp(-1)];
     return (d);
 }
 }}}
 Closing this ticket.

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


More information about the ghc-tickets mailing list