[llvm-commits] patch: use movd for 32-bits and movq for 64-bits consistently

Nick Lewycky nlewycky at google.com
Thu Jun 16 15:35:30 PDT 2011


On 16 June 2011 15:29, Eli Friedman <eli.friedman at gmail.com> wrote:

> On Thu, Jun 16, 2011 at 2:33 PM, Anton Korobeynikov <asl at math.spbu.ru>
> wrote:
> >> IIRC, we do things the way we do (outside of parsing asm) because the
> >> old Darwin assembler wouldn't accept "movq %rax, %xmm0", and required
> >> "movd %rax, %xmm0" instead.  I don't recall all the details of that,
> >> though.
> > Yeah. Probably it's safe nowadays to get rid of this workaround?
>
> Note that even if we do decide to get rid of that workaround, we still
> need to do the right thing with "movd %rax, %xmm0".
>

Reject it? Or accept it and assemble as "movq %rax, %xmm0" like GNU as
does? We've been pretty aggressive about rejecting bad assembly, regardless
of what as does.

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110616/f47a6e2a/attachment.html>


More information about the llvm-commits mailing list