Mercurial > projects > ldc
view test/asm1.d @ 189:3aed08fb64f4 trunk
[svn r205] moved some local static variables used for memset and memcpy intrinsics to IrState
author | ChristianK |
---|---|
date | Sat, 10 May 2008 19:00:11 +0200 |
parents | 5825d48b27d1 |
children | 21f85bac0b1a |
line wrap: on
line source
module asm1; void main() { version(LLVM_InlineAsm_X86_64) { long x; asm { mov RAX, 42L; mov x, RAX; } printf("x = %ld\n", x); } else { static assert(0, "no llvm inline asm for this platform yet"); } }