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

GHC ghc-devs at haskell.org
Sat Mar 18 09:10:45 UTC 2017


#13442: Add a coercion/cast operator to CMM
-------------------------------------+-------------------------------------
        Reporter:  erikd             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             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:                    |
-------------------------------------+-------------------------------------

Comment (by erikd):

 For the time being, I'm going with the following syntax:
 {{{
 _c2::F64 = <F64> I64[Sp + -1 * 8];
 }}}
 where the `<F64>` is the cast destination type.

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


More information about the ghc-tickets mailing list