[PATCH 5/57][Arm][GAS] Add support for MVE instructions: vmull{b,t}
[binutils-gdb.git] / gdb / testsuite / gdb.opt / clobbered-registers-O2.exp
blob74565c1ef65f2ce7a911ee69ca301c5a74ff70a3
1 # Copyright 2007-2019 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 # This file is part of the gdb testsuite.
18 # Test displaying call clobbered registers in optimized binaries.
19 # GDB should not show incorrect values.
21 standard_testfile
23 # What compiler are we using?
25 if [get_compiler_info] {
26     return -1
29 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
30          {debug optimize=-O2 nowarnings}]} {
31     return -1
34 if { ![runto start_sequence] } then {
35    fail "run to start_sequence"
36    return
39 gdb_test "frame 1" "#1.*in gen_movsd.*" "backtracing"
41 gdb_test_multiple "print operand0" "print operand0" {
42     -re "\\\$$decimal = <optimized out>\r\n$gdb_prompt $" { pass "print operand0"}
43     -re "$hex\r\n$gdb_prompt $" { gdb_test "print *operand0" "13" "print operand0" }
46 gdb_test_multiple "print operand1" "print operand1" {
47     -re "\\\$$decimal = <optimized out>\r\n$gdb_prompt $" { pass "print operand1"}
48     -re "$hex\r\n$gdb_prompt $" { gdb_test "print *operand1" "14" "print operand1" }