diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-12-06 14:41:41 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-12-06 06:41:41 -0800 |
commit | 35758e5b0108d43c495b94012a9a71a7eb879a76 (patch) | |
tree | 2ebf1e3c7ec6dc5daee92ff2bbe16d3b7783fe29 /gcc/config | |
parent | e7e9ce4617b5bb0705a663df1ad00a7d56d2631a (diff) | |
download | gcc-35758e5b0108d43c495b94012a9a71a7eb879a76.zip gcc-35758e5b0108d43c495b94012a9a71a7eb879a76.tar.gz gcc-35758e5b0108d43c495b94012a9a71a7eb879a76.tar.bz2 |
Add -march=/-mtune=corei7-avx.
2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
* config/i386/driver-i386.c (host_detect_local_cpu): Support
Sandy Bridge.
* config/i386/i386.c (override_options): Handle "corei7-avx".
* doc/invoke.texi: Document corei7-avx.
From-SVN: r167495
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/driver-i386.c | 4 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c index bf7ec0c..340283c 100644 --- a/gcc/config/i386/driver-i386.c +++ b/gcc/config/i386/driver-i386.c @@ -568,6 +568,10 @@ const char *host_detect_local_cpu (int argc, const char **argv) /* Westmere. */ cpu = "corei7"; break; + case 0x2a: + /* Sandy Bridge. */ + cpu = "corei7-avx"; + break; case 0x17: case 0x1d: /* Penryn. */ diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index fafa299..c80a479 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3237,6 +3237,10 @@ ix86_option_override_internal (bool main_args_p) {"corei7", PROCESSOR_COREI7_64, CPU_COREI7, PTA_64BIT | PTA_MMX | PTA_SSE | PTA_SSE2 | PTA_SSE3 | PTA_SSSE3 | PTA_SSE4_1 | PTA_SSE4_2 | PTA_CX16}, + {"corei7-avx", PROCESSOR_COREI7_64, CPU_COREI7, + PTA_64BIT | PTA_MMX | PTA_SSE | PTA_SSE2 | PTA_SSE3 + | PTA_SSSE3 | PTA_SSE4_1 | PTA_SSE4_2 | PTA_AVX + | PTA_CX16 | PTA_POPCNT | PTA_AES | PTA_PCLMUL}, {"atom", PROCESSOR_ATOM, CPU_ATOM, PTA_64BIT | PTA_MMX | PTA_SSE | PTA_SSE2 | PTA_SSE3 | PTA_SSSE3 | PTA_CX16 | PTA_MOVBE}, |