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