RISC-V: Make XVentanaCondOps RV64 only
authorTsukasa OI <research_trasio@irq.a4lg.com>
Wed, 30 Aug 2023 01:04:42 +0000 (01:04 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Wed, 30 Aug 2023 04:00:40 +0000 (04:00 +0000)
commitfe0f44a0caf59db09ad4bc16a46926aba96ce60d
tree745bdcb298f35b3441dfc52ea3455fb225e15b49
parentaa1e22eb8d685d456469f3da7933f9215b4d79ef
RISC-V: Make XVentanaCondOps RV64 only

Although XVentanaCondOps instructions are XLEN-agonistic, Ventana's manual
only defines them only for RV64 (because all Ventana's processors implement
RV64).

This commit limits XVentanaCondOps instructions RV64-only to match the
behavior of the manual and LLVM.

Note that this commit alone will not make XVentanaCondOps extension with
RV32 invalid (it just makes XVentanaCondOps on RV32 empty).

opcodes/ChangeLog:

* riscv-opc.c (riscv_opcodes): Restrict "vt.maskc" and "vt.maskcn"
to XLEN=64.

gas/ChangeLog:

* testsuite/gas/riscv/x-ventana-condops-32.d: New failure test.
* testsuite/gas/riscv/x-ventana-condops-32.l: Likewise.
gas/testsuite/gas/riscv/x-ventana-condops-32.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-ventana-condops-32.l [new file with mode: 0644]
opcodes/riscv-opc.c