* lib/ld-lib.exp: Comment cleanups.
[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 15 catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help
c0b22597 16 return [regexp "elf64\[_-\]sparc" $nm_help]
b3fb1136 17}
252b5132 18
96e97d9b
AM
19proc sparc_elf_setup { } {
20 setup_xfail "sparc*-*-*aout*" "sparc*-*-sunos4*" "sparc*-*-vxworks*"
21 setup_xfail "sparc*-fujitsu-none" "sparc*-*-*n*bsd*"
22 setup_xfail "sparc*-*-coff" "sparc*-*-lynxos*"
23 clear_xfail "sparc64*-*-*n*bsd*"
3dbe594b 24 clear_xfail "sparc*-*-netbsdelf*"
96e97d9b
AM
25}
26
b3fb1136
RH
27if [istarget sparc*-*-*] {
28 run_dump_test "synth"
96e97d9b
AM
29 # The next three tests are ELF only.
30 sparc_elf_setup
0f2712ed 31 run_dump_test "unalign"
96e97d9b 32 sparc_elf_setup
bd5e6e7e 33 run_dump_test "pcrel"
96e97d9b 34 sparc_elf_setup
bd5e6e7e 35 run_dump_test "plt"
b3fb1136
RH
36 if [gas_64_check] {
37 run_dump_test "asi"
38 run_dump_test "membar"
39 run_dump_test "prefetch"
40 run_dump_test "set64"
41 run_dump_test "synth64"
42 run_dump_test "rdpr"
83d634e3 43 run_dump_test "rdhpr"
b3fb1136 44 run_dump_test "wrpr"
83d634e3
DM
45 run_dump_test "wrhpr"
46 run_dump_test "window"
b3fb1136 47 run_dump_test "reloc64"
bd5e6e7e
JJ
48 run_dump_test "pcrel64"
49 run_dump_test "plt64"
b3fb1136 50 }
252b5132
RH
51}
52
53if [istarget sparclet*-*-*] {
54 run_dump_test "splet"
55 run_dump_test "splet-2"
56}
This page took 0.305682 seconds and 4 git commands to generate.