Mercurial > projects > dstress
annotate compile/a/asm_01_H.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 |
---|---|
1066 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <fvbommel@wxs.nl> | |
6 // @date@ 2006-07-01 | |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1066
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=233 |
1066 | 8 |
9 module dstress.compile.a.asm_01_H; | |
10 | |
11 version(D_InlineAsm_X86){ | |
12 version = runTest; | |
13 }else version(D_InlineAsm_X86_64){ | |
14 version = runTest; | |
15 } | |
16 | |
17 version(runTest){ | |
18 void test(){ | |
19 const bool b = true; | |
20 | |
21 while(b){ | |
22 asm { | |
23 nop; | |
24 } | |
25 } | |
26 } | |
27 }else{ | |
1396 | 28 pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); |
1066 | 29 static assert(0); |
30 } |