[Bug 171] New: 'wrong number of operands' for invlpg inline asm instruction
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 31 15:03:43 PDT 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=171
Summary: 'wrong number of operands' for invlpg inline asm
instruction
Product: GDC
Version: 0.18
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: glue layer
AssignedTo: braddr at puremagic.com
ReportedBy: fvbommel at wxs.nl
I thought the inline assembler syntax was the same for GDC and DMD?
For this file:
private void invalidatePage(void* p)
{
asm
{
mov EAX, [p];
invlpg [EAX]; // line 6
}
}
GDC gives the following error:
test.d:6: wrong number of operands
I use GDC 0.18 (the binary for MinGW GCC 3.4.2 from
http://gdcwin.sourceforge.net/)
This error does not occur when using DMD 0.157 (tried because it's the base for
this GDC version) or 0.159 (the latest).
The command line was
gdc -c test.d -o test.o -I ..\d\gdc\include\d\3.4.2
--
More information about the D.gnu
mailing list