[Issue 16964] New: Wrong label alignment in asm statement
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Dec 10 22:44:24 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16964
Issue ID: 16964
Summary: Wrong label alignment in asm statement
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: rumbu at rumbu.ro
int foo()
{
asm
{
naked;
lea EAX, data;
ret;
align 32; //this will be aligned to 16, not to 32 byte boundary
data:
db 0;
}
}
assert(foo() % 32 == 0);
--
More information about the Digitalmars-d-bugs
mailing list