Commit 9cd9d33b by Kyrylo Tkachov Committed by Kyrylo Tkachov

re PR target/55642 (Invalid thumb code generated ("thumb conditional instruction…

re PR target/55642 (Invalid thumb code generated ("thumb conditional instruction should be in IT block"))

gcc/ChangeLog

2012-12-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	PR target/55642
	* config/arm/thumb2.md (*thumb2_abssi2):
	Set ce_count attribute to 2.
	(*thumb2_neg_abssi2): Likewise.


gcc/testsuite/ChangeLog

2012-12-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
	PR target/55642
	* gcc.target/arm/pr55642.c: New testcase.

From-SVN: r194398
parent a8a6fd74
2012-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/55642
* config/arm/thumb2.md (*thumb2_abssi2):
Set ce_count attribute to 2.
(*thumb2_neg_abssi2): Likewise.
2012-12-11 Jakub Jelinek <jakub@redhat.com>
* varasm.c (get_variable_section): Don't return lcomm_section
......@@ -142,6 +142,7 @@
[(set_attr "conds" "clob,*")
(set_attr "shift" "1")
(set_attr "predicable" "no, yes")
(set_attr "ce_count" "2")
(set_attr "length" "10,8")]
)
......@@ -156,6 +157,7 @@
[(set_attr "conds" "clob,*")
(set_attr "shift" "1")
(set_attr "predicable" "no, yes")
(set_attr "ce_count" "2")
(set_attr "length" "10,8")]
)
......
2012-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/55642
* gcc.target/arm/pr55642.c: New testcase.
2012-12-11 Jakub Jelinek <jakub@redhat.com>
PR middle-end/43631
......
/* { dg-options "-mthumb -O2" } */
/* { dg-do compile } */
/* { dg-require-effective-target arm_thumb2_ok } */
int
foo (int v)
{
register int i asm ("r0");
register int j asm ("r1");
if (v > 1)
i = abs (j);
return i;
}
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