Mercurial > projects > dstress
annotate compile/a/asm_rdtsc_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 | 90fb42f640a4 |
children |
rev | line source |
---|---|
1047 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.compile.a.asm_rdtsc_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 main(){ | |
15 asm{ | |
16 rdtsc; | |
17 } | |
18 } | |
19 }else{ | |
20 pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); | |
21 static assert(0); | |
22 } |