在 2022/7/9 上午10:56, Xi Ruoyao 写道:
v3: Relax scan-assembler pattern in test case mulw_d_w.c.  It's because
multiplication is Abelian and the compiler may switch the order of
operands in the future.
-- >8 --

(mult (sign_extend:DI rj:SI) (sign_extend:DI rk:SI)) should be
"mulw.d.w", not "mul.d".

gcc/ChangeLog:

        * config/loongarch/loongarch.md (mulsidi3_64bit): Use mulw.d.w
        instead of mul.d.

gcc/testsuite/ChangeLog:

        * gcc.target/loongarch/mulw_d_w.c: New test.
        * gcc.c-torture/execute/mul-sext.c: New test.
---

I think there is no problem with this modification.

Thankes!


Reply via email to