2
# Free Software Foundation, Inc.
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.
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.
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.
18
# Some generic SPARC and SPARC64 tests
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.
25
# Find out if these binutils are either sparc64*-*-* or
26
# sparc*-*-* with --enable-targets=sparc64-*-*
27
proc gas_64_check { } {
31
set status [gas_host_run "$NM $NMFLAGS --help" ""]
32
return [regexp "elf64\[_-\]sparc" [lindex $status 1]]
35
proc sparc_elf_setup { } {
36
setup_xfail "sparc*-*-*aout*" "sparc*-*-sunos4*"
37
setup_xfail "sparc*-fujitsu-none" "sparc*-*-*n*bsd*"
38
setup_xfail "sparc*-*-coff" "sparc*-*-lynxos*"
39
clear_xfail "sparc64*-*-*n*bsd*"
40
clear_xfail "sparc*-*-netbsdelf*"
43
if [istarget sparc*-*-*] {
45
# The next four tests are ELF only.
47
run_dump_test "unalign"
53
run_dump_test "gotop32"
56
run_dump_test "membar"
57
run_dump_test "prefetch"
59
run_dump_test "synth64"
64
run_dump_test "window"
65
run_dump_test "reloc64"
66
run_dump_test "pcrel64"
68
run_dump_test "gotop64"
70
run_dump_test "imm-plus-rreg"
71
run_dump_test "ticc-imm-reg"
72
run_dump_test "v8-movwr-imm"
73
run_dump_test "save-args"
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"
79
run_dump_test "pc2210"
80
run_dump_test "hpcvis3"
82
run_dump_test "crypto"
83
run_dump_test "cbcond"
86
run_dump_test "ldtw_sttw"
87
run_dump_test "ldd_std"
91
run_list_test "pr4587" ""
94
if [istarget sparc-*-vxworks*] {
95
run_dump_test "vxworks-pic"
98
if [istarget sparclet*-*-*] {
100
run_dump_test "splet-2"