annotate run/a/asm_enter_01_B.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 a468938b0160
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
989
a468938b0160 inline ASM review
thomask
parents:
diff changeset
1 // $HeadURL$
a468938b0160 inline ASM review
thomask
parents:
diff changeset
2 // $Date$
a468938b0160 inline ASM review
thomask
parents:
diff changeset
3 // $Author$
a468938b0160 inline ASM review
thomask
parents:
diff changeset
4
a468938b0160 inline ASM review
thomask
parents:
diff changeset
5 module dstress.run.a.asm_enter_01_B;
a468938b0160 inline ASM review
thomask
parents:
diff changeset
6
a468938b0160 inline ASM review
thomask
parents:
diff changeset
7 version(D_InlineAsm_X86){
a468938b0160 inline ASM review
thomask
parents:
diff changeset
8 version = runTest;
a468938b0160 inline ASM review
thomask
parents:
diff changeset
9 }else version(D_InlineAsm_X86_64){
a468938b0160 inline ASM review
thomask
parents:
diff changeset
10 version = runTest;
a468938b0160 inline ASM review
thomask
parents:
diff changeset
11 }
a468938b0160 inline ASM review
thomask
parents:
diff changeset
12
a468938b0160 inline ASM review
thomask
parents:
diff changeset
13 int main(){
a468938b0160 inline ASM review
thomask
parents:
diff changeset
14 version(runTest){
a468938b0160 inline ASM review
thomask
parents:
diff changeset
15 asm{
a468938b0160 inline ASM review
thomask
parents:
diff changeset
16 enter 2048, 1;
a468938b0160 inline ASM review
thomask
parents:
diff changeset
17 leave;
a468938b0160 inline ASM review
thomask
parents:
diff changeset
18 }
a468938b0160 inline ASM review
thomask
parents:
diff changeset
19 return 0;
a468938b0160 inline ASM review
thomask
parents:
diff changeset
20 }else{
a468938b0160 inline ASM review
thomask
parents:
diff changeset
21 pragma(msg, "DSTRESS{XFAIL}: no inline ASM support");
a468938b0160 inline ASM review
thomask
parents:
diff changeset
22 static assert(0);
a468938b0160 inline ASM review
thomask
parents:
diff changeset
23 }
a468938b0160 inline ASM review
thomask
parents:
diff changeset
24 }