bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/14129] New: andq and orq instructions give 'invalid operan


From: anitha.boyapati at amd dot com
Subject: [Bug binutils/14129] New: andq and orq instructions give 'invalid operand' error when MSB of 32-bit immediate is set
Date: Tue, 22 May 2012 07:09:48 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14129

             Bug #: 14129
           Summary: andq and orq instructions give 'invalid operand' error
                    when MSB of 32-bit immediate is set
           Product: binutils
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


The following instruction gives error for x86-64 target:

>>>>
orq $0xFFFFFF00, %rax

<<<<

$as t.s

t.s: Assembler messages:
t.s:1: Error: suffix or operands invalid for `or'

The error appears whenever MSB of 32-bit immediate operand is set.

According to the instruction manuals (AMD 64 Architecture: Programmers Manual
Vol 3), an 'or' instruction can take signed-values.

"OR reg/mem64, imm32"   OR the contents of a 64-bit register or memory operand
and sign-extended immediate 32-bit value

Ditto for 'andq' case too.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]