]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/testsuite/binutils-all/hppa/objdump.exp
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / binutils / testsuite / binutils-all / hppa / objdump.exp
CommitLineData
973f38b6
JL
1# Copyright (C) 1993, 1994 Free Software Foundation, Inc.
2
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 2 of the License, or
6# (at your option) any later version.
7#
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.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program; if not, write to the Free Software
943fbd5b 15# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
973f38b6
JL
16
17# Please email any bugs, comments, and/or additions to this file to:
18# bug-dejagnu@prep.ai.mit.edu
19
20# This file was written by Rob Savoye <rob@cygnus.com>
21# and rewritten by Ian Lance Taylor <ian@cygnus.com>
22
943fbd5b 23if ![istarget hppa*-*-*] then {
973f38b6
JL
24 return
25}
26
27if {[which $OBJDUMP] == 0} then {
28 perror "$OBJDUMP does not exist"
29 return
30}
31
32send_user "Version [binutil_version $OBJDUMP]"
33
34if {![binutils_assemble $AS $srcdir$subdir/addendbug.s tmpdir/addendbug.o]} then {
35 return
36}
37
38# Make sure the SOM BFD code sign extends constants in R_DATA_OVERRIDE fixups.
39
40set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -r tmpdir/addendbug.o"]
41
943fbd5b
KR
42if [istarget hppa*-*-*elf*] then {
43 set want "00000000 R_PARISC_DPREL21L\[ \]+is_idchar\\+0xffffffe0.*"
44} else {
45 set want "00000000 R_DP_RELATIVE\[ \]+is_idchar\\+0xffffffe0.*"
46}
47
973f38b6
JL
48
49if [regexp $want $got] then {
50 pass "addendbug test"
51} else {
52 fail "addendbug test"
53}