comparison tests/mini/asm5.d @ 741:4ac97ec7c18e

Applied easy part from wilsonk's x86-64 patch in #107
author Christian Kamm <kamm incasoftware de>
date Thu, 30 Oct 2008 11:08:34 +0100
parents 1bb99290e03a
children
comparison
equal deleted inserted replaced
740:96484f5bf5af 741:4ac97ec7c18e
9 assert(i == 42); 9 assert(i == 42);
10 } 10 }
11 11
12 int func() 12 int func()
13 { 13 {
14 asm 14 version (LLVM_InlineAsm_X86)
15 { 15 {
16 naked; 16 asm
17 mov EAX, 42; 17 {
18 ret; 18 naked;
19 mov EAX, 42;
20 ret;
21 }
22 }
23 else version(LLVM_InlineAsm_X86_64)
24 {
25 asm
26 {
27 movq RAX, 42;
28 }
19 } 29 }
20 } 30 }