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: "itay at phobotic dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Jun 2015 12:57:09 +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 #10 from Itay Perl <itay at phobotic dot com> ---
A few examples:
a=100, b=0x7fffffff -O0: 0.0 -O3: 200.0
a=0, b=0x7fffffff/100.0f -O0: -1.0 -O3: 1.0
a=0, b=-0x7fffffff/100.0f -O0: 1.0 -O3: -1.0
Replacing vfma with vfms sounds correct to me, and returns the correct result
for the above inputs.