[Bug 171] New: 'wrong number of operands' for invlpg inline asm instruction
Thomas Kuehne
thomas-dloop at kuehne.cn
Thu Jun 1 10:57:23 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-05-31:
> 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
Added to DStress as
http://dstress.kuehne.cn/compile/a/asm_invlpg_01_A.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEfss43w+/yD4P9tIRAlr6AKDNylrwjKgvZ8Con+ia/tCdy3YCLACfRDpH
aCPzUSP6UczrYfi0xGCtQek=
=RkUI
-----END PGP SIGNATURE-----
More information about the D.gnu
mailing list