PATCH: Add access restriction check for application registers (was Re: Is this a gas bug?)

Jie Zhang jiez@citiz.net
Mon May 24 15:38:00 GMT 2004


On Mon, 2004-05-24 at 02:08, Andreas Schwab wrote:
> Jie Zhang <jiez@citiz.net> writes:
> 
> > Gas puts these two alloc instruction into M-unit type slot without
> > noting that ar.pfs can only be accessed by I-unit. I have no time to fix
> > this now. I will try to fix it if nobody submit patch for it in about
> > two weeks.
> 
> alloc surely is an M-unit insn.  The access restrictions about application
> registers apply only to the mov insn.
> 
> Andreas.

Oh, my mistake! Here is the modified patch for this issue. Since the
access restriction about application registers apply only to the mov
insn, I move the check from emit_one_bundle () to md_assemble () and
make it only check the first two operands of mov.i and mov.m. Now make
check is OK. No need for another patch now:-)


Jie Zhang

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas-ia64-ar-unit-2.patch
Type: text/x-patch
Size: 1693 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20040524/8fa0fecd/attachment.bin>


More information about the Binutils mailing list