Commit 77827557 by Chung-Ju Wu Committed by Chung-Ju Wu

[NDS32] Fine-tune predicator for alu-shift patterns.

gcc/
	* config/nds32/nds32.md (*sub_srli, *and_slli): Fine-tune predicator.

From-SVN: r259115
parent 9c1a4c0f
2018-04-05 Chung-Ju Wu <jasonwucj@gmail.com> 2018-04-05 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.md (*sub_srli, *and_slli): Fine-tune predicator.
2018-04-05 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.md: Adjust indention. * config/nds32/nds32.md: Adjust indention.
2018-04-05 Kito Cheng <kito.cheng@gmail.com> 2018-04-05 Kito Cheng <kito.cheng@gmail.com>
......
...@@ -434,10 +434,10 @@ ...@@ -434,10 +434,10 @@
(set_attr "length" "4")]) (set_attr "length" "4")])
(define_insn "*sub_srli" (define_insn "*sub_srli"
[(set (match_operand:SI 0 "register_operand" "= r") [(set (match_operand:SI 0 "register_operand" "= r")
(minus:SI (match_operand:SI 1 "register_operand" " r") (minus:SI (match_operand:SI 1 "register_operand" " r")
(lshiftrt:SI (match_operand:SI 2 "register_operand" " r") (lshiftrt:SI (match_operand:SI 2 "register_operand" " r")
(match_operand:SI 3 "immediate_operand" " Iu05"))))] (match_operand:SI 3 "nds32_imm5u_operand" " Iu05"))))]
"TARGET_ISA_V3" "TARGET_ISA_V3"
"sub_srli\t%0, %1, %2, %3" "sub_srli\t%0, %1, %2, %3"
[(set_attr "type" "alu_shift") [(set_attr "type" "alu_shift")
...@@ -626,20 +626,20 @@ ...@@ -626,20 +626,20 @@
(set_attr "feature" "v3m, v1, v1, v1, v1, v1,v3m,v3m, v1, v1, v1, v3,pe1")]) (set_attr "feature" "v3m, v1, v1, v1, v1, v1,v3m,v3m, v1, v1, v1, v3,pe1")])
(define_insn "*and_slli" (define_insn "*and_slli"
[(set (match_operand:SI 0 "register_operand" "= r") [(set (match_operand:SI 0 "register_operand" "= r")
(and:SI (ashift:SI (match_operand:SI 1 "register_operand" " r") (and:SI (ashift:SI (match_operand:SI 1 "register_operand" " r")
(match_operand:SI 2 "immediate_operand" " Iu05")) (match_operand:SI 2 "nds32_imm5u_operand" " Iu05"))
(match_operand:SI 3 "register_operand" " r")))] (match_operand:SI 3 "register_operand" " r")))]
"TARGET_ISA_V3" "TARGET_ISA_V3"
"and_slli\t%0, %3, %1, %2" "and_slli\t%0, %3, %1, %2"
[(set_attr "type" "alu_shift") [(set_attr "type" "alu_shift")
(set_attr "length" "4")]) (set_attr "length" "4")])
(define_insn "*and_srli" (define_insn "*and_srli"
[(set (match_operand:SI 0 "register_operand" "= r") [(set (match_operand:SI 0 "register_operand" "= r")
(and:SI (lshiftrt:SI (match_operand:SI 1 "register_operand" " r") (and:SI (lshiftrt:SI (match_operand:SI 1 "register_operand" " r")
(match_operand:SI 2 "immediate_operand" " Iu05")) (match_operand:SI 2 "nds32_imm5u_operand" " Iu05"))
(match_operand:SI 3 "register_operand" " r")))] (match_operand:SI 3 "register_operand" " r")))]
"TARGET_ISA_V3" "TARGET_ISA_V3"
"and_srli\t%0, %3, %1, %2" "and_srli\t%0, %3, %1, %2"
[(set_attr "type" "alu_shift") [(set_attr "type" "alu_shift")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment