On Mon, May 28, 2007 at 04:58:35PM +0300, Sergei Trofimovich wrote:
>         .intel_syntax noprefix
> 
>         .text
>         .globl main
>                 .type main, @function
>         main:
>                 movzx rax, eax
>                 movzx rax, dword ptr [eip]
> compiling...$ cc    -c -o main.o main.S
> 
> main.S: Assembler messages:
> main.S:7: Error: suffix or operands invalid for `movzx'
> main.S:8: Error: suffix or operands invalid for `movzx'
> 
> Is it known bug/feature?

movzx only zero extends 8-bit and 16-bit registers/memory.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to