From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Henderson To: Cort Dougan Cc: gas2@sourceware.cygnus.com Subject: Re: ppc instructions in gas Date: Thu, 06 May 1999 15:35:00 -0000 Message-id: <19990506153554.B10994@cygnus.com> References: <19990504180843.A31050@attis.cs.nmt.edu> <19990505145806.H9469@cygnus.com> <19990505165232.A8594@attis.cs.nmt.edu> <19990506150724.A10994@cygnus.com> <19990506161159.A27229@attis.cs.nmt.edu> <19990506161159.A27229@attis.cs.nmt.edu> X-SW-Source: 1999/msg00096.html On Thu, May 06, 1999 at 04:11:59PM -0600, Cort Dougan wrote: > } Which instruction were you trying to fix? "liu" perhaps? > } As-is, it affects instructions like "addis", and you can't > } really add +50000, can you? > > You're right, addis takes a signed 16-bit number. Things like lis and oris > take an unsigned 16-bit number, though. They both use SISIGNOPT. Then the right thing to do is make those insns use UI instead. Not having a ppc manual handy, can you provide a complete list of the incorrect instructions? Or better yet, a patch? ;-) r~