Mercurial > projects > dstress
annotate run/a/asm_lar_01.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 | 2a1a6610f7ad |
children |
rev | line source |
---|---|
974 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.a.asm_lar_01; | |
6 | |
1151 | 7 version(D_InlineAsm_X86){ |
8 version = runTest; | |
9 }else version(D_InlineAsm_X86_64){ | |
10 version = runTest; | |
11 } | |
12 | |
13 version(runTest){ | |
14 int main(){ | |
974 | 15 asm{ |
16 mov AX, 0x0; | |
1151 | 17 lar CX, AX; |
974 | 18 } |
19 | |
20 return 0; | |
21 } | |
1151 | 22 }else{ |
23 pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); | |
24 static assert(0); | |
974 | 25 } |