Mercurial > projects > ldc
view test/asm1.d @ 232:092468448d25 trunk
[svn r248] Fixed: labels in inline asm block now work for the normal case.
Fixed: inline asm blocks are now emitted as a single asm entity.
author | lindquist |
---|---|
date | Sun, 08 Jun 2008 06:15:51 +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"); } }