mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
17 lines
364 B
D
17 lines
364 B
D
// REQUIRES: target_X86
|
|
|
|
// RUN: %ldc -output-s -x86-asm-syntax=intel -mtriple=x86_64-linux-gnu -of=%t.s %s
|
|
// RUN: FileCheck %s < %t.s
|
|
|
|
// CHECK: _D17dmd_inline_asm_ip3fooFZm
|
|
ulong foo()
|
|
{
|
|
asm
|
|
{
|
|
// CHECK: mov eax, dword ptr [eip]
|
|
mov EAX, [EIP];
|
|
// CHECK-NEXT: mov rax, qword ptr [rip]
|
|
mov RAX, [RIP];
|
|
ret;
|
|
}
|
|
}
|