Support R_PPC64_ADDR64_LOCAL
[deliverable/binutils-gdb.git] / gas / testsuite / gas / sparc / sparc.exp
CommitLineData
5bf135a7
NC
1# Copyright 2012
2# Free Software Foundation, Inc.
3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17
252b5132
RH
18# Some generic SPARC and SPARC64 tests
19
20# FIXME: The tests here aren't really bullet proof. A mistake in the opcode
21# table can slip through since we use the same table for assembly and
22# disassembly. The way to fix this is to include a hex dump of the insns
23# and test that as well. Later.
24
b3fb1136
RH
25# Find out if these binutils are either sparc64*-*-* or
26# sparc*-*-* with --enable-targets=sparc64-*-*
27proc gas_64_check { } {
28 global NM
29 global NMFLAGS
252b5132 30
7f6a71ff
JM
31 set status [gas_host_run "$NM $NMFLAGS --help" ""]
32 return [regexp "elf64\[_-\]sparc" [lindex $status 1]]
b3fb1136 33}
252b5132 34
96e97d9b 35proc sparc_elf_setup { } {
910600e9 36 setup_xfail "sparc*-*-*aout*" "sparc*-*-sunos4*"
96e97d9b
AM
37 setup_xfail "sparc*-fujitsu-none" "sparc*-*-*n*bsd*"
38 setup_xfail "sparc*-*-coff" "sparc*-*-lynxos*"
39 clear_xfail "sparc64*-*-*n*bsd*"
3dbe594b 40 clear_xfail "sparc*-*-netbsdelf*"
96e97d9b
AM
41}
42
b3fb1136
RH
43if [istarget sparc*-*-*] {
44 run_dump_test "synth"
739f7f82 45 # The next four tests are ELF only.
96e97d9b 46 sparc_elf_setup
0f2712ed 47 run_dump_test "unalign"
96e97d9b 48 sparc_elf_setup
bd5e6e7e 49 run_dump_test "pcrel"
96e97d9b 50 sparc_elf_setup
bd5e6e7e 51 run_dump_test "plt"
739f7f82
DM
52 sparc_elf_setup
53 run_dump_test "gotop32"
b3fb1136
RH
54 if [gas_64_check] {
55 run_dump_test "asi"
56 run_dump_test "membar"
57 run_dump_test "prefetch"
58 run_dump_test "set64"
59 run_dump_test "synth64"
60 run_dump_test "rdpr"
83d634e3 61 run_dump_test "rdhpr"
b3fb1136 62 run_dump_test "wrpr"
83d634e3
DM
63 run_dump_test "wrhpr"
64 run_dump_test "window"
b3fb1136 65 run_dump_test "reloc64"
bd5e6e7e
JJ
66 run_dump_test "pcrel64"
67 run_dump_test "plt64"
739f7f82 68 run_dump_test "gotop64"
b3fb1136 69 }
f124dd4f 70 run_dump_test "imm-plus-rreg"
9bf29d72
DM
71 run_dump_test "ticc-imm-reg"
72 run_dump_test "v8-movwr-imm"
8dbb9eb3 73 run_dump_test "save-args"
c699f087
JJ
74 run_dump_test "v9branch1"
75 run_dump_test "v9branch2"
76 run_dump_test "v9branch3"
77 run_dump_test "v9branch4"
78 run_dump_test "v9branch5"
1a6b486f 79 run_dump_test "pc2210"
ea783ef3 80 run_dump_test "hpcvis3"
e91d1076 81 run_dump_test "ima"
6cda1326 82 run_dump_test "crypto"
698544e1 83 run_dump_test "cbcond"
58004e23 84 run_dump_test "pause"
2e52845b 85 run_dump_test "cfr"
0afd1215
DM
86 run_dump_test "ldtw_sttw"
87 run_dump_test "ldd_std"
88 run_dump_test "edge"
89 run_dump_test "flush"
dfeb0666
NC
90
91 run_list_test "pr4587" ""
252b5132
RH
92}
93
910600e9
RS
94if [istarget sparc-*-vxworks*] {
95 run_dump_test "vxworks-pic"
96}
97
252b5132
RH
98if [istarget sparclet*-*-*] {
99 run_dump_test "splet"
100 run_dump_test "splet-2"
101}
This page took 0.6716 seconds and 4 git commands to generate.