comparison configure @ 10896:2ca86c3248b3

patch by Andrew A. Gill <superluser@frontiernet.net>: "patch for ev4, ev5, and ev56 with GCC-3: there's no MVI in DEC Alpha processors prior to the pca56"
author pl
date Sun, 21 Sep 2003 01:29:40 +0000
parents 5977670f744e
children fbd70b450d32
comparison
equal deleted inserted replaced
10895:2da8559e5f33 10896:2ca86c3248b3
888 return 0; 888 return 0;
889 } 889 }
890 EOF 890 EOF
891 $_cc -o "$TMPO" "$TMPC" 891 $_cc -o "$TMPO" "$TMPC"
892 case `"$TMPO"` in 892 case `"$TMPO"` in
893 0-0) proc="ev4" ;; 893
894 1-0) proc="ev5" ;; 894 0-0) proc="ev4"; cpu_understands_mvi="0";;
895 1-1) proc="ev56" ;; 895 1-0) proc="ev5"; cpu_understands_mvi="0";;
896 1-101) proc="pca56" ;; 896 1-1) proc="ev56"; cpu_understands_mvi="1";;
897 2-303) proc="ev6" ;; 897 1-101) proc="pca56"; cpu_understands_mvi="1";;
898 2-307) proc="ev67" ;; 898 2-303) proc="ev6"; cpu_understands_mvi="1";;
899 2-1307) proc="ev68" ;; 899 2-307) proc="ev67"; cpu_understands_mvi="1";;
900 2-1307) proc="ev68"; cpu_understands_mvi="1";;
900 esac 901 esac
901 echores "$proc" 902 echores "$proc"
902 903
903 echocheck "GCC & CPU optimization abilities" 904 echocheck "GCC & CPU optimization abilities"
904 if test "$proc" = "ev68" ; then 905 if test "$proc" = "ev68" ; then
911 echores "$proc" 912 echores "$proc"
912 913
913 _optimizing="$proc" 914 _optimizing="$proc"
914 915
915 echocheck "MVI instruction support in GCC" 916 echocheck "MVI instruction support in GCC"
916 if test "$_cc_major" -ge "3"; then 917 if test "$_cc_major" -ge "3" && test "$cpu_understands_mvi" = "1" ; then
917 _def_gcc_mvi_support="#define CAN_COMPILE_ALPHA_MVI 1" 918 _def_gcc_mvi_support="#define CAN_COMPILE_ALPHA_MVI 1"
918 echores "yes" 919 echores "yes"
919 else 920 else
920 _def_gcc_mvi_support="#undef CAN_COMPILE_ALPHA_MVI" 921 _def_gcc_mvi_support="#undef CAN_COMPILE_ALPHA_MVI"
921 echores "no" 922 echores "no, GCC = `( $_cc -dumpversion ) 2>&1` (must be >= 3), CPU = $proc (must be pca56 or later)"
922 fi 923 fi
923 ;; 924 ;;
924 925
925 mips) 926 mips)
926 _def_arch='#define ARCH_SGI_MIPS 1' 927 _def_arch='#define ARCH_SGI_MIPS 1'