Use strict_low_part for loading a constant only if it is cheaper
authorAndreas Schwab <schwab@suse.de>
Wed, 18 Jun 2014 10:37:14 +0000 (10:37 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Wed, 18 Jun 2014 10:37:14 +0000 (10:37 +0000)
commita0f37b26c5b459cc601ad226a6e4a13b45f5e454
tree7d9cbd498f3d157c295b5573cf648b71a8134c51
parent9fdb837f67dfa03da55cc5a9e51fa492c2a72f3b
Use strict_low_part for loading a constant only if it is cheaper

PR rtl-optimization/54555
* postreload.c (move2add_use_add2_insn): Substitute
STRICT_LOW_PART only if it is cheaper.

testsuite/:
PR rtl-optimization/54555
* gcc.target/m68k/pr54555.c: New test.

From-SVN: r211777
gcc/ChangeLog
gcc/postreload.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/m68k/pr54555.c [new file with mode: 0644]