Mercurial > projects > dstress
annotate compile/a/asm_sti_01_A.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | 35d813a29e8f |
children |
rev | line source |
---|---|
1046 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.compile.a.asm_sti_01_A; | |
6 | |
7 version(D_InlineAsm_X86){ | |
8 version = runTest; | |
9 }else version(D_InlineAsm_X86_64){ | |
10 version = runTest; | |
11 } | |
12 | |
13 version(runTest){ | |
14 void foo(){ | |
15 asm{ | |
16 sti; | |
17 nop; | |
18 } | |
19 } | |
20 }else{ | |
1396 | 21 pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); |
1046 | 22 static assert(0); |
23 } |