diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2008-10-15 22:34:48 +0200 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2008-10-15 22:34:48 +0200 |
commit | 73463c5db72362704484c4649234e41928dbb072 (patch) | |
tree | a20f62e3c9d118e62e24d2cb42e4e21fef43e8fd | |
parent | 22202ca531ed2549502aa20a1fa953d7aa9fcc95 (diff) | |
download | gmp-73463c5db72362704484c4649234e41928dbb072.tar.gz |
Support Intel Atom processor.
-rwxr-xr-x | config.guess | 3 | ||||
-rwxr-xr-x | config.sub | 2 | ||||
-rw-r--r-- | configure.in | 13 |
3 files changed, 12 insertions, 6 deletions
diff --git a/config.guess b/config.guess index c4087c6c3..da4f7ba9e 100755 --- a/config.guess +++ b/config.guess @@ -725,7 +725,8 @@ main () else if (model <= 9) modelstr = "pentiumm"; else if (model <= 12) modelstr = "pentium3"; else if (model <= 14) modelstr = "pentiumm"; - else modelstr = "core2"; + else if (model <= 27) modelstr = "core2"; + else modelstr = "atom"; break; case 15: modelstr = "pentium4"; diff --git a/config.sub b/config.sub index 702ee2321..1686176ab 100755 --- a/config.sub +++ b/config.sub @@ -91,7 +91,7 @@ itanium | itanium2) test_cpu=ia64 ;; pentium | pentiummmx | pentiumpro | pentium[234m] | k[56] | k6[23] | geode | athlon | viac3*) test_cpu=i386 ;; -athlon64 | core2 | opteron) +athlon64 | atom | core2 | opteron) test_cpu=x86_64 ;; power[2-9] | power2sc) test_cpu=power ;; diff --git a/configure.in b/configure.in index 21a820fc2..7f0af9ea0 100644 --- a/configure.in +++ b/configure.in @@ -1281,7 +1281,7 @@ case $host in # mode, in case -m32 has failed not because it's an old gcc, but because # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever. # - X86_PATTERN | athlon64-*-* | core2-*-* | x86_64-*-*) + X86_PATTERN | athlon64-*-* | atom-*-* | core2-*-* | x86_64-*-*) abilist="32" cclist="gcc icc cc" gcc_cflags="$gcc_cflags $fomit_frame_pointer" @@ -1459,7 +1459,7 @@ case $host in fi case $host_cpu in - athlon64 | core2 | pentium4 | x86_64) + athlon64 | atom | core2 | pentium4 | x86_64) cclist_64="gcc" gcc_64_cflags="$gcc_64_cflags -m64" gcc_64_cflags_optlist="cpu" @@ -1481,6 +1481,11 @@ case $host in abilist="64 32" path_64="x86_64/core2 x86_64" ;; + atom) + # The AMD K8/K9/K10 code seems best for Intel Atom + abilist="64 32" + path_64="x86_64" + ;; esac ;; esac @@ -2025,7 +2030,7 @@ done # enough assembler. # case $host in - X86_PATTERN | athlon64-*-* | core2-*-* | x86_64-*-*) + X86_PATTERN | athlon64-*-* | atom-*-* | core2-*-* | x86_64-*-*) if test "$ABI" = 32; then case "$path $fat_path" in *mmx*) GMP_ASM_X86_MMX( , [GMP_STRIP_PATH(*mmx*)]) ;; @@ -2996,7 +3001,7 @@ if test "$gmp_asm_syntax_testing" != no; then ;; esac ;; - X86_PATTERN | athlon64-*-* | core2-*-* | x86_64-*-*) + X86_PATTERN | athlon64-*-* | atom-*-* | core2-*-* | x86_64-*-*) GMP_ASM_ALIGN_FILL_0x90 case $ABI in 32) |