]> git.ipfire.org Git - thirdparty/gcc.git/commit
arc: Fix (u)maddhisi patterns
authorClaudiu Zissulescu <claziss@synopsys.com>
Wed, 9 Jun 2021 09:12:57 +0000 (12:12 +0300)
committerClaudiu Zissulescu <claziss@synopsys.com>
Wed, 9 Jun 2021 09:34:13 +0000 (12:34 +0300)
commit4186b7e93be73f8d68dc0fcc00a4cc8cc83e99a8
tree7c6fcc5617148da9efb80c472a2725ce75025ab9
parent0061fabeb9393c362601486105202cfe837a5a68
arc: Fix (u)maddhisi patterns

Rework the (u)maddhisi4 patterns and use VMAC2H(U) instruction instead
of the 64bit MAC(U) instruction.
This fixes the next execute.exp failures:
     arith-rand-ll.c   -O2  execution test
     arith-rand-ll.c   -O3  execution test
     pr78726.c   -O2  execution test
     pr78726.c   -O3  execution test

gcc/
2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
(machi): New pattern.
(umaddhisi4): Use VMAC2HU instruction.
(umachi): New pattern.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
(cherry picked from commit dd4778a59b4693777c732075021375e19eee6a76)
gcc/config/arc/arc.md