Increase the accuracy of sparc instruction aliases.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / sparc / sparc.exp
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
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
25 # Find out if these binutils are either sparc64*-*-* or
26 # sparc*-*-* with --enable-targets=sparc64-*-*
27 proc gas_64_check { } {
28 global NM
29 global NMFLAGS
30
31 set status [gas_host_run "$NM $NMFLAGS --help" ""]
32 return [regexp "elf64\[_-\]sparc" [lindex $status 1]]
33 }
34
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*"
41 }
42
43 if [istarget sparc*-*-*] {
44 run_dump_test "synth"
45 # The next four tests are ELF only.
46 sparc_elf_setup
47 run_dump_test "unalign"
48 sparc_elf_setup
49 run_dump_test "pcrel"
50 sparc_elf_setup
51 run_dump_test "plt"
52 sparc_elf_setup
53 run_dump_test "gotop32"
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"
61 run_dump_test "rdhpr"
62 run_dump_test "wrpr"
63 run_dump_test "wrhpr"
64 run_dump_test "window"
65 run_dump_test "reloc64"
66 run_dump_test "pcrel64"
67 run_dump_test "plt64"
68 run_dump_test "gotop64"
69 }
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"
81 run_dump_test "ima"
82 run_dump_test "crypto"
83 run_dump_test "cbcond"
84 run_dump_test "pause"
85 run_dump_test "cfr"
86 run_dump_test "ldtw_sttw"
87 run_dump_test "ldd_std"
88 run_dump_test "edge"
89 run_dump_test "flush"
90
91 run_list_test "pr4587" ""
92 }
93
94 if [istarget sparc-*-vxworks*] {
95 run_dump_test "vxworks-pic"
96 }
97
98 if [istarget sparclet*-*-*] {
99 run_dump_test "splet"
100 run_dump_test "splet-2"
101 }
This page took 0.033303 seconds and 5 git commands to generate.