[Bug target/82989] [7/8 regression] Inexplicable use of NEON for 64-bit math

matthijsvanduin at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Feb 19 11:42:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82989

--- Comment #15 from Matthijs van Duin <matthijsvanduin at gmail dot com> ---
(In reply to Wilco from comment #14)
> Yes on older cores it can be a bad idea to allow accidental use of Neon
> instructions. The simplest workaround is to switch off Neon, just use
> -mfpu=vfp.

Sure, though that's not exactly ideal since it is very desirable for the Neon
unit to be used for single-precision floats. (9-10 cycles for add/sub in VFP,
10-12 cycles for mul in VFP, 1 cycle for two add/sub/mul ops in Neon)


More information about the Gcc-bugs mailing list