2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
[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
252b5132 13
7f6a71ff
JM
14 set status [gas_host_run "$NM $NMFLAGS --help" ""]
15 return [regexp "elf64\[_-\]sparc" [lindex $status 1]]
b3fb1136 16}
252b5132 17
96e97d9b 18proc sparc_elf_setup { } {
910600e9 19 setup_xfail "sparc*-*-*aout*" "sparc*-*-sunos4*"
96e97d9b
AM
20 setup_xfail "sparc*-fujitsu-none" "sparc*-*-*n*bsd*"
21 setup_xfail "sparc*-*-coff" "sparc*-*-lynxos*"
22 clear_xfail "sparc64*-*-*n*bsd*"
3dbe594b 23 clear_xfail "sparc*-*-netbsdelf*"
96e97d9b
AM
24}
25
b3fb1136
RH
26if [istarget sparc*-*-*] {
27 run_dump_test "synth"
739f7f82 28 # The next four tests are ELF only.
96e97d9b 29 sparc_elf_setup
0f2712ed 30 run_dump_test "unalign"
96e97d9b 31 sparc_elf_setup
bd5e6e7e 32 run_dump_test "pcrel"
96e97d9b 33 sparc_elf_setup
bd5e6e7e 34 run_dump_test "plt"
739f7f82
DM
35 sparc_elf_setup
36 run_dump_test "gotop32"
b3fb1136
RH
37 if [gas_64_check] {
38 run_dump_test "asi"
39 run_dump_test "membar"
40 run_dump_test "prefetch"
41 run_dump_test "set64"
42 run_dump_test "synth64"
43 run_dump_test "rdpr"
83d634e3 44 run_dump_test "rdhpr"
b3fb1136 45 run_dump_test "wrpr"
83d634e3
DM
46 run_dump_test "wrhpr"
47 run_dump_test "window"
b3fb1136 48 run_dump_test "reloc64"
bd5e6e7e
JJ
49 run_dump_test "pcrel64"
50 run_dump_test "plt64"
739f7f82 51 run_dump_test "gotop64"
b3fb1136 52 }
f124dd4f 53 run_dump_test "imm-plus-rreg"
9bf29d72
DM
54 run_dump_test "ticc-imm-reg"
55 run_dump_test "v8-movwr-imm"
8dbb9eb3 56 run_dump_test "save-args"
c699f087
JJ
57 run_dump_test "v9branch1"
58 run_dump_test "v9branch2"
59 run_dump_test "v9branch3"
60 run_dump_test "v9branch4"
61 run_dump_test "v9branch5"
1a6b486f 62 run_dump_test "pc2210"
ea783ef3 63 run_dump_test "hpcvis3"
e91d1076 64 run_dump_test "ima"
6cda1326 65 run_dump_test "crypto"
698544e1 66 run_dump_test "cbcond"
58004e23 67 run_dump_test "pause"
dfeb0666
NC
68
69 run_list_test "pr4587" ""
252b5132
RH
70}
71
910600e9
RS
72if [istarget sparc-*-vxworks*] {
73 run_dump_test "vxworks-pic"
74}
75
252b5132
RH
76if [istarget sparclet*-*-*] {
77 run_dump_test "splet"
78 run_dump_test "splet-2"
79}
This page took 0.519274 seconds and 4 git commands to generate.