Hello,

 

Following assembly language source targeting SPARC processor is accepted although %g9 register name (neither %ia or %oa) is not a legal one.

 

Tool used sparc-elf-as

Version 2.16.91-20050827

 

Source :

        .text

        mov     %g9,%ia

        mov     %g9,%ia

        or      %g3,%g9,%g2

        or      %g3,%o1,%g2

        or      %g3,%oa,%g2

        ret

        nop

 

 

 

Source code to modify :

I think there is a mistake in the isoctal definition in the “gas/config/tc-sparc.c” file :

 

#define isoctal(c)  ((unsigned) ((c) - '0') < '8')

 

There are simple quotes around the 8 while I think they should not be there

 

Regards

 

 

Jean-Jacques

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

Reply via email to