diff options
-rw-r--r-- | gdb/testsuite/gdb.arch/amd64-disp-step-avx.S | 12 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp | 14 |
2 files changed, 6 insertions, 20 deletions
diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.S b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.S index 0e07ab4..496b37f 100644 --- a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.S +++ b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.S @@ -19,15 +19,7 @@ instructions. */ .text - - .global _start,main -_start: - # The area at _start is used as the displaced stepping buffer. Put - # more than enough nop instructions so that the instructions under test - # below don't conflict with it. - .rept 200 - nop - .endr + .global main main: nop @@ -66,7 +58,7 @@ ro_var: done: mov $0,%rdi - call _exit + call exit hlt /* RIP-relative data for VEX3 test above. */ diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp index ef44a24..fba9f64 100644 --- a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp +++ b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp @@ -22,9 +22,7 @@ require is_x86_64_m64_target have_avx standard_testfile .S -set options [list debug \ - additional_flags=-static \ - additional_flags=-nostartfiles] +set options [list debug nopie] if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $options] } { return -1 } @@ -103,14 +101,10 @@ proc disp_step_func { func } { # Test a VEX2-encoded RIP-relative instruction. with_test_prefix "vex2" { - # This test writes to the 'xmm0' register. As the test is - # statically linked, we know that the XMM registers should all - # have the default value of 0 at this point in time. We're about - # to run an AVX instruction that will modify $xmm0, but lets first - # confirm that all XMM registers are 0. + # Initialize all XMM registers to 0. for {set i 0 } { $i < 16 } { incr i } { - gdb_test "p /x \$xmm${i}.uint128" " = 0x0" \ - "xmm${i} has expected value before" + gdb_test_no_output "set \$xmm${i}.uint128 = 0" \ + "xmm${i} set to zero" } disp_step_func "test_rip_vex2" |