bug-binutils
[Top][All Lists]
Advanced

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

gas/ia64 mov r=imm problem


From: Belochapka, Konstantin
Subject: gas/ia64 mov r=imm problem
Date: Fri, 18 Jun 2004 15:51:22 -0700

Intel Itaniaum assembler manual states that mov r=imm pseudo instruction is 
actually addl r=imm22,r0, but GAS uses adds r=imm14,r0 instruction witch causes
certain problems especially when operand of the instruction is an descriptor 
offset ( for example mov address@hidden(a) ) .
I have made a crude fix for this problem:

file: \gas\config\tc-ia64.c

line 5475:

      if((0==strcmp (idesc->name,"mov"))
                  && (idesc->operands[0] == IA64_OPND_R1)
                  && (idesc->operands[1] == IA64_OPND_IMM14))
         return OPERAND_MISMATCH;      /*mov r = imm14 case, force mov r = 
imm22 template */

        ....

It might be someone more familiar with GAS sources will make more elegant fix.





reply via email to

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