Skip to content

Commit ea2849d

Browse files
Claudiu Zissulescuartemiy-volkov
authored andcommitted
arc64: Remove compare with zero for mpyl insns
1 parent 944ef49 commit ea2849d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

gcc/config/arc64/arith.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -591,34 +591,34 @@
591591
[(set_attr "length" "4,8")
592592
(set_attr "type" "mpy<sfxtab>")])
593593

594-
(define_insn "*mul<mode>3_cmp0"
594+
(define_insn "*mulsi3_cmp0"
595595
[(set (reg:CC_ZN CC_REGNUM)
596596
(compare:CC_ZN
597-
(mult:GPI
598-
(match_operand:GPI 1 "register_operand" "% 0, r, 0, 0, r")
599-
(match_operand:GPI 2 "nonmemory_operand" "rU06S0,rU06S0,S12S0,S32S0,S32S0"))
597+
(mult:SI
598+
(match_operand:SI 1 "register_operand" "% 0, r, 0, 0, r")
599+
(match_operand:SI 2 "nonmemory_operand" "rU06S0,rU06S0,S12S0,S32S0,S32S0"))
600600
(const_int 0)))
601-
(set (match_operand:GPI 0 "register_operand" "= r, r, r, r, r")
602-
(mult:GPI (match_dup 1) (match_dup 2)))]
601+
(set (match_operand:SI 0 "register_operand" "= r, r, r, r, r")
602+
(mult:SI (match_dup 1) (match_dup 2)))]
603603
""
604-
"mpy<sfxtab>%?.f\\t%0,%1,%2"
604+
"mpy%?.f\\t%0,%1,%2"
605605
[(set_attr "length" "4,4,4,8,8")
606606
(set_attr "iscompact" "no,no,no,no,no")
607-
(set_attr "type" "mpy<sfxtab>")
607+
(set_attr "type" "mpy")
608608
(set_attr "predicable" "yes,no,no,yes,no")])
609609

610-
(define_insn "*mul<mode>3_cmp0_noout"
610+
(define_insn "*mulsi3_cmp0_noout"
611611
[(set (reg:CC_ZN CC_REGNUM)
612612
(compare:CC_ZN
613-
(mult:GPI
614-
(match_operand:GPI 0 "register_operand" "% r, r, r")
615-
(match_operand:GPI 1 "nonmemory_operand" "rU06S0,S12S0,S32S0"))
613+
(mult:SI
614+
(match_operand:SI 0 "register_operand" "% r, r, r")
615+
(match_operand:SI 1 "nonmemory_operand" "rU06S0,S12S0,S32S0"))
616616
(const_int 0)))]
617617
""
618-
"mpy<sfxtab>%?.f\\t0,%0,%1"
618+
"mpy%?.f\\t0,%0,%1"
619619
[(set_attr "length" "4,4,8")
620620
(set_attr "iscompact" "no,no,no")
621-
(set_attr "type" "mpy<sfxtab>")
621+
(set_attr "type" "mpy")
622622
(set_attr "predicable" "no,no,no")])
623623

624624
(define_insn "<su>mulsi3_highpart"

0 commit comments

Comments
 (0)