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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1047
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
1 // $HeadURL$
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
2 // $Date$
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
3 // $Author$
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
4
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
5 module dstress.compile.a.asm_rdtsc_01_A;
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
6
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
7 version(D_InlineAsm_X86){
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
8 version = runTest;
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
9 }else version(D_InlineAsm_X86_64){
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
10 version = runTest;
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
11 }
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
12
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
13 version(runTest){
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
14 void main(){
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
15 asm{
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
16 rdtsc;
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
17 }
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
18 }
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
19 }else{
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
20 pragma(msg, "DSTRESS{XFAIL}: no inline ASM support");
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
21 static assert(0);
90fb42f640a4 partial DMD-0.160 review
thomask
parents:
diff changeset
22 }