Commit 11c2aa39 by Uros Bizjak

driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow, sse, sse2, sse3, ssse3…

driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow, sse, sse2, sse3, ssse3 and sse4a flags to options.

	* config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
	sse, sse2, sse3, ssse3 and sse4a flags to options.

From-SVN: r199034
parent abecc8c6
2013-05-17 Uros Bizjak <ubizjak@gmail.com>
* config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
sse, sse2, sse3, ssse3 and sse4a flags to options.
2013-05-17 David Malcolm <dmalcolm@redhat.com> 2013-05-17 David Malcolm <dmalcolm@redhat.com>
* gengtype-state.c: (s_expr_writer): New class, to handle * gengtype-state.c: (s_expr_writer): New class, to handle
...@@ -107,9 +112,8 @@ ...@@ -107,9 +112,8 @@
2013-05-17 Marek Polacek <polacek@redhat.com> 2013-05-17 Marek Polacek <polacek@redhat.com>
* tree-ssa-strlen.c (handle_char_store): Don't invalidate * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
cached length when doing non-zero store of storing '\0' to length when doing non-zero store of storing '\0' to '\0'.
'\0'.
2013-05-17 Jakub Jelinek <jakub@redhat.com> 2013-05-17 Jakub Jelinek <jakub@redhat.com>
......
...@@ -786,10 +786,17 @@ const char *host_detect_local_cpu (int argc, const char **argv) ...@@ -786,10 +786,17 @@ const char *host_detect_local_cpu (int argc, const char **argv)
if (arch) if (arch)
{ {
const char *mmx = has_mmx ? " -mmmx" : " -mno-mmx";
const char *mmx3dnow = has_3dnow ? " -m3dnow" : " -mno-3dnow";
const char *sse = has_sse ? " -msse" : " -mno-sse";
const char *sse2 = has_sse2 ? " -msse2" : " -mno-sse2";
const char *sse3 = has_sse3 ? " -msse3" : " -mno-sse3";
const char *ssse3 = has_ssse3 ? " -mssse3" : " -mno-ssse3";
const char *sse4a = has_sse4a ? " -msse4a" : " -mno-sse4a";
const char *cx16 = has_cmpxchg16b ? " -mcx16" : " -mno-cx16"; const char *cx16 = has_cmpxchg16b ? " -mcx16" : " -mno-cx16";
const char *sahf = has_lahf_lm ? " -msahf" : " -mno-sahf"; const char *sahf = has_lahf_lm ? " -msahf" : " -mno-sahf";
const char *movbe = has_movbe ? " -mmovbe" : " -mno-movbe"; const char *movbe = has_movbe ? " -mmovbe" : " -mno-movbe";
const char *ase = has_aes ? " -maes" : " -mno-aes"; const char *aes = has_aes ? " -maes" : " -mno-aes";
const char *pclmul = has_pclmul ? " -mpclmul" : " -mno-pclmul"; const char *pclmul = has_pclmul ? " -mpclmul" : " -mno-pclmul";
const char *popcnt = has_popcnt ? " -mpopcnt" : " -mno-popcnt"; const char *popcnt = has_popcnt ? " -mpopcnt" : " -mno-popcnt";
const char *abm = has_abm ? " -mabm" : " -mno-abm"; const char *abm = has_abm ? " -mabm" : " -mno-abm";
...@@ -817,7 +824,8 @@ const char *host_detect_local_cpu (int argc, const char **argv) ...@@ -817,7 +824,8 @@ const char *host_detect_local_cpu (int argc, const char **argv)
const char *xsave = has_xsave ? " -mxsave" : " -mno-xsave"; const char *xsave = has_xsave ? " -mxsave" : " -mno-xsave";
const char *xsaveopt = has_xsaveopt ? " -mxsaveopt" : " -mno-xsaveopt"; const char *xsaveopt = has_xsaveopt ? " -mxsaveopt" : " -mno-xsaveopt";
options = concat (options, cx16, sahf, movbe, ase, pclmul, options = concat (options, mmx, mmx3dnow, sse, sse2, sse3, ssse3,
sse4a, cx16, sahf, movbe, aes, pclmul,
popcnt, abm, lwp, fma, fma4, xop, bmi, bmi2, popcnt, abm, lwp, fma, fma4, xop, bmi, bmi2,
tbm, avx, avx2, sse4_2, sse4_1, lzcnt, rtm, tbm, avx, avx2, sse4_2, sse4_1, lzcnt, rtm,
hle, rdrnd, f16c, fsgsbase, rdseed, prfchw, adx, hle, rdrnd, f16c, fsgsbase, rdseed, prfchw, adx,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment