This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / gas / testsuite / gas / sparc / sparc.exp
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
8 # Find out if these binutils are either sparc64*-*-* or
9 # sparc*-*-* with --enable-targets=sparc64-*-*
10 proc gas_64_check { } {
11 global NM
12 global NMFLAGS
13 global srcdir
14
15 catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help
16 return [regexp "elf64\[_-\]sparc" $nm_help];
17 }
18
19 if [istarget sparc*-*-*] {
20 run_dump_test "synth"
21 run_dump_test "unalign"
22 run_dump_test "pcrel"
23 run_dump_test "plt"
24 if [gas_64_check] {
25 run_dump_test "asi"
26 run_dump_test "membar"
27 run_dump_test "prefetch"
28 run_dump_test "set64"
29 run_dump_test "synth64"
30 run_dump_test "rdpr"
31 run_dump_test "wrpr"
32 run_dump_test "reloc64"
33 run_dump_test "pcrel64"
34 run_dump_test "plt64"
35 }
36 }
37
38 if [istarget sparclet*-*-*] {
39 run_dump_test "splet"
40 run_dump_test "splet-2"
41 }
This page took 0.031762 seconds and 5 git commands to generate.