2001-06-02 H.J. Lu <hjl@gnu.org>
[deliverable/binutils-gdb.git] / gas / testsuite / gas / sparc / sparc.exp
CommitLineData
252b5132
RH
1# Some generic SPARC and SPARC64 tests
2
3# FIXME: The tests here aren't really bullet proof. A mistake in the opcode
4# table can slip through since we use the same table for assembly and
5# disassembly. The way to fix this is to include a hex dump of the insns
6# and test that as well. Later.
7
b3fb1136
RH
8# Find out if these binutils are either sparc64*-*-* or
9# sparc*-*-* with --enable-targets=sparc64-*-*
10proc gas_64_check { } {
11 global NM
12 global NMFLAGS
13 global srcdir
252b5132 14
b3fb1136
RH
15 catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help
16 return [regexp "elf64\[_-\]sparc" $nm_help];
17}
252b5132 18
b3fb1136
RH
19if [istarget sparc*-*-*] {
20 run_dump_test "synth"
0f2712ed 21 run_dump_test "unalign"
b3fb1136
RH
22 if [gas_64_check] {
23 run_dump_test "asi"
24 run_dump_test "membar"
25 run_dump_test "prefetch"
26 run_dump_test "set64"
27 run_dump_test "synth64"
28 run_dump_test "rdpr"
29 run_dump_test "wrpr"
30 run_dump_test "reloc64"
31 }
252b5132
RH
32}
33
34if [istarget sparclet*-*-*] {
35 run_dump_test "splet"
36 run_dump_test "splet-2"
37}
This page took 0.077357 seconds and 4 git commands to generate.