This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/63408] [4.9/5/6 regression] GCC emits incorrect fixed->fp conversion instruction on Cortex-M4 target
- From: "ramana at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 25 Jun 2015 08:36:35 +0000
- Subject: [Bug target/63408] [4.9/5/6 regression] GCC emits incorrect fixed->fp conversion instruction on Cortex-M4 target
- Auto-submitted: auto-generated
- References: <bug-63408-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63408
--- Comment #14 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
Author: ramana
Date: Thu Jun 25 08:36:03 2015
New Revision: 224933
URL: https://gcc.gnu.org/viewcvs?rev=224933&root=gcc&view=rev
Log:
Fix PR target/63408
Backport fix for PR target/63408 from mainline
The attached patch fixes PR target/63408 and adds a regression test
for the same. The problem is essentially that
vfp3_const_double_for_fract_bits() needs to be aware that negative
values cannot be used in this context.
Tested with a bootstrap and regression test run on armhf. Applied.
2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Backport from mainline.
2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
PR target/63408
* config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
for negative numbers.
2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Backport from mainline.
2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
PR target/63408
* gcc.target/arm/pr63408.c: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/pr63408.c
- copied unchanged from r224879,
trunk/gcc/testsuite/gcc.target/arm/pr63408.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/config/arm/arm.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog