#5233: Support specifying the assembly that should be generated
---------------------------------+------------------------------------------
    Reporter:  tibbe             |       Owner:              
        Type:  feature request   |      Status:  new         
    Priority:  normal            |   Component:  Test Suite  
     Version:  7.0.3             |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
 We want to make sure that native code generator optimizations, like primop
 unrolling, always fire. We can do this by allowing the programmer to
 specify what assembly should be generated for a particular snippet of Cmm.
 The programmer gives a snippet of Cmm:

 {{{
 #include "Cmm.h"

 // Large memcpy's should lower to calls.
 callMemcpy
 {
   W_ dst, src;
   prim %memcpy(dst "ptr", src "ptr", 1024, 4) [];
 }
 }}}

 and the expected assembly output:

 {{{
 callMemcpy:
 movq  ; Move arguments into place
 movq
 movl
 movl
 call memcpy
 }}}

 The expected output shouldn't mention specific register names as these are
 likely to change.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5233>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to