This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: unexpected NOP encodings
- From: Alan Modra <amodra at gmail dot com>
- To: Jan Beulich <JBeulich at suse dot com>
- Cc: binutils at sourceware dot org, Peter Bergner <bergner at vnet dot ibm dot com>
- Date: Tue, 25 Jun 2019 00:35:38 +0930
- Subject: Re: unexpected NOP encodings
- References: <5D10D6A0020000780023AA94@prv1-mh.provo.novell.com>
On Mon, Jun 24, 2019 at 07:56:48AM -0600, Jan Beulich wrote:
> All,
>
> is it known (and intended) that
No, you've found a bug.
> .text
> .machine power8
> power8:
> nop
> # The NOP inserted here is controlled by the "power6" machine
> # setting below, not the one currently in effect.
> .p2align 3
> blr
>
> .machine power6
>
> doesn't produce the expected NOP encoding, because the encoding is
> chosen only at the end of the assembly process (i.e. when the final
> directive has already been seen and processed)?
>
> Jan
>
--
Alan Modra
Australia Development Lab, IBM