Cascade detection of SSE3 support and up
If SSE2 isn't supported, then SSE3 can't be either. Onwards and upwards for SSSE3, SSE4.1, SSE4.2 and AVX. The test for AVX2 was already there. Task-number: QTBUG-24773 Change-Id: I005258db52d8abcd407a99b8ebcc23cdea8e3d9f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
6d8b84e8d5
commit
a071ba629b
15
configure
vendored
15
configure
vendored
@ -4224,6 +4224,9 @@ if [ "${CFG_SSE2}" = "auto" ]; then
|
||||
fi
|
||||
|
||||
# detect sse3 support
|
||||
if [ "${CFG_SSE2}" = "no" ]; then
|
||||
CFG_SSE3=no
|
||||
fi
|
||||
if [ "${CFG_SSE3}" = "auto" ]; then
|
||||
if compileTest common/sse3 "sse3"; then
|
||||
CFG_SSE3=yes
|
||||
@ -4233,6 +4236,9 @@ if [ "${CFG_SSE3}" = "auto" ]; then
|
||||
fi
|
||||
|
||||
# detect ssse3 support
|
||||
if [ "${CFG_SSE3}" = "no" ]; then
|
||||
CFG_SSSE3=no
|
||||
fi
|
||||
if [ "${CFG_SSSE3}" = "auto" ]; then
|
||||
if compileTest common/ssse3 "ssse3"; then
|
||||
CFG_SSSE3=yes
|
||||
@ -4242,6 +4248,9 @@ if [ "${CFG_SSSE3}" = "auto" ]; then
|
||||
fi
|
||||
|
||||
# detect sse4.1 support
|
||||
if [ "${CFG_SSSE3}" = "no" ]; then
|
||||
CFG_SSE4_1=no
|
||||
fi
|
||||
if [ "${CFG_SSE4_1}" = "auto" ]; then
|
||||
if compileTest common/sse4_1 "sse4_1"; then
|
||||
CFG_SSE4_1=yes
|
||||
@ -4251,6 +4260,9 @@ if [ "${CFG_SSE4_1}" = "auto" ]; then
|
||||
fi
|
||||
|
||||
# detect sse4.2 support
|
||||
if [ "${CFG_SSE4_1}" = "no" ]; then
|
||||
CFG_SSE4_2=no
|
||||
fi
|
||||
if [ "${CFG_SSE4_2}" = "auto" ]; then
|
||||
if compileTest common/sse4_2 "sse4_2"; then
|
||||
CFG_SSE4_2=yes
|
||||
@ -4260,6 +4272,9 @@ if [ "${CFG_SSE4_2}" = "auto" ]; then
|
||||
fi
|
||||
|
||||
# detect avx support
|
||||
if [ "${CFG_SSE4_2}" = "no" ]; then
|
||||
CFG_AVX=no
|
||||
fi
|
||||
if [ "${CFG_AVX}" = "auto" ]; then
|
||||
if compileTest common/avx "avx"; then
|
||||
case "$XQMAKESPEC" in
|
||||
|
Loading…
x
Reference in New Issue
Block a user