This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/63408] [4.9/5/6 regression] GCC emits incorrect fixed->fp conversion instruction on Cortex-M4 target


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]