]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Make T-Head testing pattern more generic
authorTsukasa OI <research_trasio@irq.a4lg.com>
Tue, 27 Dec 2022 03:14:02 +0000 (03:14 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Tue, 15 Aug 2023 06:46:18 +0000 (06:46 +0000)
commitf9280e396f171759018b0537e3ceeddce204f2bd
treed5ddcb77f3af0b193f62e2d4f6c77e4318aa2fbe
parent239af8cbd15cd9ef11e333f9889834665066e4b3
RISC-V: Make T-Head testing pattern more generic

On some T-Head vendor extensions, we test against the constant
18446744073709551615 (2**64-1) to detect invalid immediate errors on -1.
However, it heavily depends on the fact that the value used to print
immediate value is a 64-bit unsigned type and this constant is not (and
should not be) important (we just want to know that -1 is not valid).

This commit replaces all such occurrences of 18446744073709551615 with
a more generic regular expression.

gas/ChangeLog:

* testsuite/gas/riscv/x-thead-ba-fail.l: Replace
18446744073709551615 with generic regular expression.
* testsuite/gas/riscv/x-thead-bb-fail.l: Likewise.
* testsuite/gas/riscv/x-thead-bs-fail.l: Likewise.
* testsuite/gas/riscv/x-thead-fmemidx-fail.l: Likewise.
* testsuite/gas/riscv/x-thead-memidx-fail.l: Likewise.
* testsuite/gas/riscv/x-thead-mempair-fail.l: Likewise.
gas/testsuite/gas/riscv/x-thead-ba-fail.l
gas/testsuite/gas/riscv/x-thead-bb-fail.l
gas/testsuite/gas/riscv/x-thead-bs-fail.l
gas/testsuite/gas/riscv/x-thead-fmemidx-fail.l
gas/testsuite/gas/riscv/x-thead-memidx-fail.l
gas/testsuite/gas/riscv/x-thead-mempair-fail.l