2009-10-28 Paolo Bonzini <bonzini@gnu.org>
commit923ffadb74eeb24e64f8b0a7be69a7ee799b0a6c
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Oct 2009 10:17:29 +0000 (28 10:17 +0000)
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Oct 2009 10:17:29 +0000 (28 10:17 +0000)
tree32ba5a71c0fa89fc4ecee255b75f7dee23b2b5cf
parent0958f2243324358c2658f74a8a870c55c20d3f10
2009-10-28  Paolo Bonzini  <bonzini@gnu.org>

PR rtl-optimization/40741
* config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
a small constant is cheap.
* config/arm/arm.md (andsi3, iorsi3): Try to place the result of
force_reg on the LHS.
(xorsi3): Likewise, and split the XOR if the constant is complex
and not in Thumb mode.

2009-10-28  Paolo Bonzini  <bonzini@gnu.org>

PR rtl-optimization/40741
* gcc.target/arm/thumb-branch1.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153650 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/arm.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/thumb-branch1.c [new file with mode: 0644]