re PR target/63408 (GCC emits incorrect fixed->fp conversion instruction on Cortex...
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Wed, 24 Jun 2015 08:28:08 +0000 (08:28 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Wed, 24 Jun 2015 08:28:08 +0000 (08:28 +0000)
commitce72a3c995a9731307583933a01d2599654d1a36
treea9d4ab4f22bdb53d8684a942ea13d10fd39d15de
parent0bc64a6ca5b518419c91637f88635c95e3c3acb9
re PR target/63408 (GCC emits incorrect fixed->fp conversion instruction on Cortex-M4 target)

Fix PR target/63408

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-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-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

PR target/63408
* gcc.target/arm/pr63408.c: New test.

From-SVN: r224879
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pr63408.c [new file with mode: 0644]