Revision a88fc5c0 configure
configure | ||
---|---|---|
1223 | 1223 |
} |
1224 | 1224 |
EOF |
1225 | 1225 |
|
1226 |
# test gcc version to see if vector builtins can be used |
|
1227 |
# currently only used on i386 for MMX builtins |
|
1228 |
check_cc -msse <<EOF && builtin_vector=yes || builtin_vector=no |
|
1229 |
#include <xmmintrin.h> |
|
1230 |
int main(void) { |
|
1231 |
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2) |
|
1232 |
return 0; |
|
1233 |
#else |
|
1234 |
#error no vector builtins |
|
1235 |
#endif |
|
1236 |
} |
|
1237 |
EOF |
|
1238 |
|
|
1239 |
# test for mm3dnow.h |
|
1240 |
test "$cpu" = "x86_64" && march=k8 || march=athlon |
|
1241 |
check_cc -march=$march <<EOF && mm3dnow=yes || mm3dnow=no |
|
1242 |
#include <mm3dnow.h> |
|
1243 |
int main(void) { |
|
1244 |
__m64 b1; |
|
1245 |
b1 = _m_pswapd(b1); |
|
1246 |
_m_femms(); |
|
1247 |
return 0; |
|
1248 |
} |
|
1249 |
EOF |
|
1250 |
|
|
1251 | 1226 |
# --- |
1252 | 1227 |
# big/little-endian test |
1253 | 1228 |
if test "$cross_compile" = "no"; then |
... | ... | |
1575 | 1550 |
echo "broken inttypes.h $emu_fast_int" |
1576 | 1551 |
if test $cpu = "x86" -o $cpu = "x86_64"; then |
1577 | 1552 |
echo "MMX enabled $mmx" |
1578 |
echo "Vector Builtins $builtin_vector" |
|
1579 |
echo "3DNow! Builtins $mm3dnow" |
|
1580 | 1553 |
fi |
1581 | 1554 |
if test $cpu = "armv4l"; then |
1582 | 1555 |
echo "ARMv5TE enabled $armv5te" |
... | ... | |
1759 | 1732 |
echo "#define HAVE_MMX 1" >> $TMPH |
1760 | 1733 |
echo "#define __CPU__ 586" >> $TMPH |
1761 | 1734 |
fi |
1762 |
if test "$builtin_vector" = "yes" ; then |
|
1763 |
echo "TARGET_BUILTIN_VECTOR=yes" >> config.mak |
|
1764 |
echo "#define HAVE_BUILTIN_VECTOR 1" >> $TMPH |
|
1765 |
fi |
|
1766 |
if test "$mm3dnow" = "yes" ; then |
|
1767 |
echo "TARGET_BUILTIN_3DNOW=yes" >> config.mak |
|
1768 |
echo "#define HAVE_MM3DNOW 1" >> $TMPH |
|
1769 |
fi |
|
1770 | 1735 |
if test "$armv5te" = "yes" ; then |
1771 | 1736 |
echo "TARGET_ARMV5TE=yes" >> config.mak |
1772 | 1737 |
echo "#define HAVE_ARMV5TE 1" >> $TMPH |
Also available in: Unified diff