This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/69941] bogus zero_extend transformation in postreload on aarch64
- From: "bernds at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Mar 2016 03:11:04 +0000
- Subject: [Bug rtl-optimization/69941] bogus zero_extend transformation in postreload on aarch64
- Auto-submitted: auto-generated
- References: <bug-69941-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69941
--- Comment #6 from Bernd Schmidt <bernds at gcc dot gnu.org> ---
Author: bernds
Date: Tue Mar 15 03:10:31 2016
New Revision: 234209
URL: https://gcc.gnu.org/viewcvs?rev=234209&root=gcc&view=rev
Log:
Backport PR69941 patch from mainline.
PR rtl-optimization/69941
* postreload.c (reload_combine_recognize_pattern): Ensure all uses of
the reg share its mode.
PR rtl-optimization/69941
* gcc.dg/torture/pr69941.c: New test.
Added:
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr69941.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/postreload.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog