annotate compile/a/asm_01_D.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1066
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
1 // $HeadURL$
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
2 // $Date$
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
3 // $Author$
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
4
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
5 // @author@ <fvbommel@wxs.nl>
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
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
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
8
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
9 module dstress.compile.a.asm_01_D;
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
10
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
11 version(D_InlineAsm_X86){
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
12 version = runTest;
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
13 }else version(D_InlineAsm_X86_64){
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
14 version = runTest;
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
15 }
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
16
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
17 version(runTest){
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
18 void foo(){
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
19 }
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
20
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
21 void test(){
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
22 do{
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
23 asm {
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
24 nop;
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
25 }
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
26 foo();
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
27 }while(1)
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
28 }
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
29 }else{
1396
35d813a29e8f div. inline asm fixes
thomask
parents: 1320
diff changeset
30 pragma(msg, "DSTRESS{XFAIL}: no inline ASM support");
1066
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
31 static assert(0);
c6b463bf409d <fvbommel@wxs.nl>
thomask
parents:
diff changeset
32 }