blob: 39bf0f9395001d80abb6e60c82adea3cfb48ebd8 [file] [log] [blame]
# Some generic SPARC and SPARC64 tests
# FIXME: The tests here aren't really bullet proof. A mistake in the opcode
# table can slip through since we use the same table for assembly and
# disassembly. The way to fix this is to include a hex dump of the insns
# and test that as well. Later.
# Find out if these binutils are either sparc64*-*-* or
# sparc*-*-* with --enable-targets=sparc64-*-*
proc gas_64_check { } {
global NM
global NMFLAGS
global srcdir
catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help
return [regexp "elf64\[_-\]sparc" $nm_help];
}
if [istarget sparc*-*-*] {
run_dump_test "synth"
run_dump_test "unalign"
if [gas_64_check] {
run_dump_test "asi"
run_dump_test "membar"
run_dump_test "prefetch"
run_dump_test "set64"
run_dump_test "synth64"
run_dump_test "rdpr"
run_dump_test "wrpr"
run_dump_test "reloc64"
}
}
if [istarget sparclet*-*-*] {
run_dump_test "splet"
run_dump_test "splet-2"
}