comparison tests/mini/asm3.d @ 1035:4c524d80e6e1

Move more tests to D_InlineAsm
author Christian Kamm <kamm incasoftware de>
date Tue, 03 Mar 2009 19:03:27 +0100
parents 03d7c4aac654
children
comparison
equal deleted inserted replaced
1034:12b423e17860 1035:4c524d80e6e1
4 4
5 void main() 5 void main()
6 { 6 {
7 char* fmt = "Hello D World\n"; 7 char* fmt = "Hello D World\n";
8 printf(fmt); 8 printf(fmt);
9 version (LLVM_InlineAsm_X86) 9 version (D_InlineAsm_X86)
10 { 10 {
11 asm 11 asm
12 { 12 {
13 push fmt; 13 push fmt;
14 call printf; 14 call printf;
15 pop EAX; 15 pop EAX;
16 } 16 }
17 } 17 }
18 else version(LLVM_InlineAsm_X86_64) 18 else version(D_InlineAsm_X86_64)
19 { 19 {
20 asm 20 asm
21 { 21 {
22 movq RDI, fmt; 22 movq RDI, fmt;
23 xor AL, AL; 23 xor AL, AL;