]> gcc.gnu.org Git - gcc.git/commit
LoongArch: Remove unused and incorrect "sge<u>_<X:mode><GPR:mode>" define_insn
authorXi Ruoyao <xry111@xry111.site>
Wed, 13 Mar 2024 12:44:38 +0000 (20:44 +0800)
committerXi Ruoyao <xry111@xry111.site>
Thu, 14 Mar 2024 15:22:05 +0000 (23:22 +0800)
commitf98b85b1ef74b7c5c0852b3d063262bce63df14e
treeeaf6ab52cc79ed10606a23281732a1db54b62d84
parent0adc8c5f146b108f99c4df09e43276e3a2419262
LoongArch: Remove unused and incorrect "sge<u>_<X:mode><GPR:mode>" define_insn

If this insn is really used, we'll have something like

    slti $r4,$r0,$r5

in the code.  The assembler will reject it because slti wants 2
register operands and 1 immediate operand.  But we've not got any bug
report for this, indicating this define_insn is unused at all.

Note that do_store_flag (in expr.cc) is already converting x >= 1 to
x > 0 unconditionally, so this define_insn is indeed unused and we can
just remove it.

gcc/ChangeLog:

* config/loongarch/loongarch.md (any_ge): Remove.
(sge<u>_<X:mode><GPR:mode>): Remove.
gcc/config/loongarch/loongarch.md
This page took 0.065772 seconds and 5 git commands to generate.