Ticket #5233 (closed feature request: fixed)
Support specifying the assembly that should be generated
| Reported by: | tibbe | Owned by: | simonmar |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.8.1 |
| Component: | Test Suite | Version: | 7.0.3 |
| Keywords: | Cc: | johan.tibell@…, ikke+ghc@…, axman6@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

