Mercurial > projects > dstress
annotate nocompile/a/asm_frstor_02_H.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 | a62d2a1c5f14 |
children |
rev | line source |
---|---|
856 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
715 | 4 |
1591
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
5 // __DSTRESS_ELINE__ 22 |
715 | 6 |
7 module dstress.nocompile.a.asm_frstor_02_H; | |
8 | |
1591
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
9 version(D_InlineAsm_X86){ |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
10 version = test; |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
11 }else version(D_Inline_Asm_X86_64){ |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
12 version = test; |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
13 }else{ |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
14 static assert(0, "DSTRESS{XFAIL}: no inline x86 asm support"); |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
15 } |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
16 |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
17 version(test){ |
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
18 void main(){ |
715 | 19 cfloat x; |
20 | |
21 asm{ | |
22 frstor x; | |
23 } | |
24 } | |
1591
a62d2a1c5f14
Add check for D_InlineAsm_X86 to nocompile tests that were missing it. If the
Christian Kamm <kamm incasoftware de>
parents:
1394
diff
changeset
|
25 } |