movq must be used with REX.W prefix (W bit set)
I implemented this using this code in AsmJit:
if (w || r || x || b)
{
_emitByte(0x40 | (w << 3) | (r << 2) | (x << 1) | b);
}
- Petr
2009/5/22 <[email protected]>:
>
>
> http://codereview.chromium.org/115571/diff/1005/14
> File src/x64/assembler-x64.cc (right):
>
> http://codereview.chromium.org/115571/diff/1005/14#newcode279
> Line 279: emit_rex_64(dst, src);
> Will all mov instructions need the emit_rex_64 prefix? How are you going
> to distinguish movl and movq instructions?
>
> Can you also please upload the -inl.h files?
>
> http://codereview.chromium.org/115571
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---