[PATCH v2 5/7] RISC-V: relax post-relocation-operator separator expectation
Jan Beulich
jbeulich@suse.com
Thu May 11 11:27:54 GMT 2023
On 25.04.2023 10:37, Andreas Schwab wrote:
> On Mär 10 2023, Jan Beulich via Binutils wrote:
>
>> With a blank being okay as a separator, constructs like
>>
>> lui t0, %hi sym
>> lui t0, %hi 0x1000
>>
>> are accepted. But then it makes little sense to not also accept e.g.
>>
>> lui t0, %hi +sym
>> lui t0, %hi -0x1000
>
> https://github.com/riscv-non-isa/riscv-asm-manual/blob/master/riscv-asm.md
> always includes the parens around the expression, and I don't think it
> should be accepted without them.
Just to mention it: Someone (validly) said that much of this code (and
the underlying syntax) was derived from MIPS. Just now it happened that
I had to look at the MIPS testsuite for a different reason, when it
caught my eye that they're actually testing cases like the earlier two
above (and I'm pretty sure they would similarly fail on the latter two).
Jan
More information about the Binutils
mailing list