X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.arch%2Fi386-avx.exp;h=93e86eeb23ebb721a4b665650501bbe924f3a666;hb=a6e40b53ef7b4b6f73b97e3fcbe158d07dbb9a63;hp=06a5ef0118aa12f40b2ed0e2add966c407d7a7ef;hpb=76c001c234c335b4836c41b35007b167e183f7f8;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.arch/i386-avx.exp b/gdb/testsuite/gdb.arch/i386-avx.exp index 06a5ef0118..93e86eeb23 100644 --- a/gdb/testsuite/gdb.arch/i386-avx.exp +++ b/gdb/testsuite/gdb.arch/i386-avx.exp @@ -24,6 +24,11 @@ if { ![istarget i?86-*-*] && ![istarget x86_64-*-* ] } { return } +if { ![have_avx] } { + verbose "Skipping x86 AVX tests." + return +} + standard_testfile .c if [get_compiler_info] { @@ -47,23 +52,6 @@ if ![runto_main] then { return 0 } -send_gdb "print have_avx ()\r" -gdb_expect { - -re ".. = 1\r\n$gdb_prompt " { - pass "check whether processor supports AVX" - } - -re ".. = 0\r\n$gdb_prompt " { - verbose "processor does not support AVX; skipping AVX tests" - return - } - -re ".*$gdb_prompt $" { - fail "check whether processor supports AVX" - } - timeout { - fail "check whether processor supports AVX (timeout)" - } -} - gdb_test "break [gdb_get_line_number "first breakpoint here"]" \ "Breakpoint .* at .*i386-avx.c.*" \ "set first breakpoint in main"