RISC-V: Fixed the wrong expansion for pseudo vmsge[u].vx instructions.
authorNelson Chu <nelson@rivosinc.com>
Fri, 1 Sep 2023 07:21:35 +0000 (15:21 +0800)
committerNelson Chu <nelson@rivosinc.com>
Fri, 1 Sep 2023 07:37:59 +0000 (15:37 +0800)
commit12e70a6d0c3550e8eec9f9a0a7abb8bae49fc097
tree0df35a750c4673933164ea9b827c71379cddc09e
parent8ba212f8933df0560d600d14c032be251aa21a71
RISC-V: Fixed the wrong expansion for pseudo vmsge[u].vx instructions.

The original report was from Kiva Oyama <libkernelpanic@gmail.com>,
https://sourceware.org/pipermail/binutils/2023-August/129255.html

The vmsge[u].vx pseudo should be expanded to masked vmslt[u].vx only when
vd != v0.  Otherwise, it should be expanded to unmasked one.

gas/
* config/tc-riscv.c (vector_macro): Fixed the wrong expansion for
pseudo vmsge[u].vx instructions.
* testsuite/gas/riscv/vector-insns-vmsgtvx.d: Updated.
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/vector-insns-vmsgtvx.d