Error: bad type/size of operands for the cmov instruction

Joseph Cassman jc7919 at outlook.com
Wed Oct 2 12:35:52 PDT 2013


I cannot figure out why I get this error

   b.d(6): Error: bad type/size of operands 'cmovz'
   Failed: 'dmd' '-v' '-o-' 'b.d' '-I.'

from the following code.

   void main() {
     asm {
       mov    CL,1;
       mov    AL,1;
       cmp    AL,0;
       cmovz  BL,CL;
     }
   }

I get the same error when I use a memory source for the cmov 
instruction, when the other variants of cmov are used, and when 
other register sizes are used (i.e. AX, EAX, and RAX).

Any ideas?


More information about the Digitalmars-d-learn mailing list