Generate fma3 instructions by default for 'march=native' in AMD processors that support both fma3 and fma4

From-SVN: r187794
This commit is contained in:
Ganesh Gopalasubramanian 2012-05-23 08:25:38 +00:00 committed by Venkataramanan Kumar
parent 67c0c151b6
commit 4fc14ef79b
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2012-05-23 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
Backport from 2012-05-03 mainline r187075
* config/i386/driver-i386.c (host_detect_local_cpu): Reset
has_fma4 for AMD processors with both fma3 and fma4 support.
2012-05-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/53408

View File

@ -476,6 +476,8 @@ const char *host_detect_local_cpu (int argc, const char **argv)
has_abm = ecx & bit_ABM;
has_lwp = ecx & bit_LWP;
has_fma4 = ecx & bit_FMA4;
if (vendor == SIG_AMD && has_fma4 && has_fma)
has_fma4 = 0;
has_xop = ecx & bit_XOP;
has_tbm = ecx & bit_TBM;
has_lzcnt = ecx & bit_LZCNT;