Commit 86eb4bd7 by Kyrylo Tkachov Committed by Kyrylo Tkachov

arm.md (arm_cmpsi_insn): Split rI alternative.

2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
	Set type attribute correctly. Set predicable_short_it attribute.
	(cmpsi_shiftsi): Remove %? from output template.

From-SVN: r202560
parent 83a95546
2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
Set type attribute correctly. Set predicable_short_it attribute.
(cmpsi_shiftsi): Remove %? from output template.
2013-09-13 Richard Biener <rguenther@suse.de> 2013-09-13 Richard Biener <rguenther@suse.de>
* tree-loop-distribution.c (struct rdg_component, * tree-loop-distribution.c (struct rdg_component,
......
...@@ -8239,19 +8239,21 @@ ...@@ -8239,19 +8239,21 @@
(define_insn "*arm_cmpsi_insn" (define_insn "*arm_cmpsi_insn"
[(set (reg:CC CC_REGNUM) [(set (reg:CC CC_REGNUM)
(compare:CC (match_operand:SI 0 "s_register_operand" "l,r,r,r") (compare:CC (match_operand:SI 0 "s_register_operand" "l,r,r,r,r")
(match_operand:SI 1 "arm_add_operand" "Py,r,rI,L")))] (match_operand:SI 1 "arm_add_operand" "Py,r,r,I,L")))]
"TARGET_32BIT" "TARGET_32BIT"
"@ "@
cmp%?\\t%0, %1 cmp%?\\t%0, %1
cmp%?\\t%0, %1 cmp%?\\t%0, %1
cmp%?\\t%0, %1 cmp%?\\t%0, %1
cmp%?\\t%0, %1
cmn%?\\t%0, #%n1" cmn%?\\t%0, #%n1"
[(set_attr "conds" "set") [(set_attr "conds" "set")
(set_attr "arch" "t2,t2,any,any") (set_attr "arch" "t2,t2,any,any,any")
(set_attr "length" "2,2,4,4") (set_attr "length" "2,2,4,4,4")
(set_attr "predicable" "yes") (set_attr "predicable" "yes")
(set_attr "type" "alus_reg,alus_reg,alus_reg,alus_imm")] (set_attr "predicable_short_it" "yes,yes,yes,no,no")
(set_attr "type" "alus_imm,alus_reg,alus_reg,alus_imm,alus_imm")]
) )
(define_insn "*cmpsi_shiftsi" (define_insn "*cmpsi_shiftsi"
...@@ -8261,7 +8263,7 @@ ...@@ -8261,7 +8263,7 @@
[(match_operand:SI 1 "s_register_operand" "r,r,r") [(match_operand:SI 1 "s_register_operand" "r,r,r")
(match_operand:SI 2 "shift_amount_operand" "M,r,M")])))] (match_operand:SI 2 "shift_amount_operand" "M,r,M")])))]
"TARGET_32BIT" "TARGET_32BIT"
"cmp%?\\t%0, %1%S3" "cmp\\t%0, %1%S3"
[(set_attr "conds" "set") [(set_attr "conds" "set")
(set_attr "shift" "1") (set_attr "shift" "1")
(set_attr "arch" "32,a,a") (set_attr "arch" "32,a,a")
......
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