I think i've found a bug, should / how do i report it.

Chris Warwick sp at m.me.not
Sun Mar 11 16:46:56 PDT 2007


MMX assembler doesnt like const.

-------------------
const int foo = 1;
asm mov EAX,foo;

compiles ok.

----------------------
ulong foo = 1;
asm movd MM0,foo;

compiles ok.

-----------------------
const ulong foo = 1;
asm movd MM0,foo;

complains "bad type/size of operands 'movd'"

So simply changing the variable to const, breaks mmx's ability to use it. 
but the same thing is not true when using normal int registers.

cw 




More information about the Digitalmars-d-learn mailing list