re PR target/70123 (Miscompilation of cfitsio testcase on s390x-linux starting with...
authorBernd Schmidt <bernds@redhat.com>
Fri, 11 Mar 2016 22:38:41 +0000 (15:38 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 11 Mar 2016 22:38:41 +0000 (15:38 -0700)
commit92348f098dd10358538932275a1196bd5c9caaac
tree5c2021263c63fea09f73bc34d5d8853f0d87d0d3
parentcebde9e9ebb9b9a29f2b6cd07b14fd88089f088f
re PR target/70123 (Miscompilation of cfitsio testcase on s390x-linux starting with r222144)

PR target/70123
* lra-remat.c (operand_to_remat): Disallow hard regs in the value t
be rematerialized.
(reg_overlap_for_remat_p): Renamed from input_regno_present_p.
Arguments swapped.  All callers changed.  Take reg_renumber into
account, and Calculate and compare register ranges for hard regs.

PR target/70123
* gcc.dg/torture/pr70123.c: New test.

From-SVN: r234152
gcc/ChangeLog
gcc/lra-remat.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr70123.c [new file with mode: 0644]