1 # Some generic SPARC and SPARC64 tests
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.
8 # Find out if these binutils are either sparc64*-*-* or
9 # sparc*-*-* with --enable-targets=sparc64-*-*
10 proc gas_64_check { } {
15 catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help
16 return [regexp "elf64\[_-\]sparc" $nm_help]
19 proc 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*"
24 clear_xfail "sparc*-*-netbsdelf*"
27 if [istarget sparc*-*-*] {
29 # The next three tests are ELF only.
31 run_dump_test "unalign"
38 run_dump_test "membar"
39 run_dump_test "prefetch"
41 run_dump_test "synth64"
44 run_dump_test "reloc64"
45 run_dump_test "pcrel64"
50 if [istarget sparclet*-*-*] {
52 run_dump_test "splet-2"