* config/i386/i386.opt (mprefer-avx128): New flag.
* config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit mode
when the flag -mprefer-avx128 is on.
From-SVN: r170681
+2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
+
+ * config/i386/i386.opt (mprefer-avx128): New flag.
+ * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit mode
+ when the flag -mprefer-avx128 is on.
+
2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
* dwarf2out.c (compare_loc_operands): Fix address handling.
switch (mode)
{
case SFmode:
- return TARGET_AVX ? V8SFmode : V4SFmode;
+ return (TARGET_AVX && !flag_prefer_avx128) ? V8SFmode : V4SFmode;
case DFmode:
- return TARGET_AVX ? V4DFmode : V2DFmode;
+ return (TARGET_AVX && !flag_prefer_avx128) ? V4DFmode : V2DFmode;
case DImode:
return V2DImode;
case SImode:
Do dispatch scheduling if processor is bdver1 and Haifa scheduling
is selected.
+mprefer-avx128
+Target Report Var(flag_prefer_avx128) Init(0)
+Use 128-bit AVX instructions instead of 256-bit AVX instructions in the auto-vectorizer.
+
;; ISA support
m32