1 # Copyright (C) 2012-2015 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
21 # These tests are currently ELF specific, only because nobody has
22 # converted them to look for XCOFF relocations.
24 if { [istarget powerpc64*-*-*] || [istarget *-*-elf64*]} then {
25 # FIXME: Pass -x to objdump as well as -Dr for astest64 and astest2_64.
26 run_dump_test "astest64"
27 run_dump_test "astest2_64"
28 run_dump_test "test1elf64"
29 run_dump_test "power4"
30 run_list_test "range64" "-a64"
31 } elseif { [istarget powerpc*-*aix*] } then {
32 run_dump_test "test1xcoff32"
33 run_dump_test "test2xcoff32"
34 } elseif { [istarget powerpc*-*-*bsd*] \
35 || [istarget powerpc*-*-elf*] \
36 || [istarget powerpc*-*-eabi*] \
37 || [istarget powerpc*-*-sysv4*] \
38 || [istarget powerpc*-*-linux*] \
39 || [istarget powerpc*-*-solaris*] \
40 || [istarget powerpc*-*-rtems*] } then {
41 run_dump_test "astest"
42 run_dump_test "astest2"
43 run_dump_test "test1elf32"
46 if { [istarget powerpc*-*-*] } then {
47 run_dump_test "regnames"
48 if { [is_elf_format] } then {
49 run_dump_test "machine"
50 run_dump_test "common"
53 if { ![istarget powerpc*le-*-*] } then {
55 run_dump_test "vle-reloc"
56 run_dump_test "vle-simple-1"
57 run_dump_test "vle-simple-2"
58 run_dump_test "vle-simple-3"
59 run_dump_test "vle-simple-4"
60 run_dump_test "vle-simple-5"
61 run_dump_test "vle-simple-6"
65 if { [istarget powerpc-*-*aix*] } then {
66 run_dump_test "altivec_xcoff"
67 run_dump_test "altivec_xcoff64"
69 run_dump_test "simpshft"
70 run_dump_test "altivec"
71 run_dump_test "altivec2"
72 run_dump_test "altivec3"
73 run_dump_test "altivec_and_spe"
76 run_list_test "e500-ill" "-me500"
77 run_list_test "range" "-a32"
78 run_dump_test "ppc750ps"
79 run_dump_test "e500mc"
81 run_dump_test "e500mc64_nop"
82 run_dump_test "e5500_nop"
83 run_dump_test "e6500_nop"
85 run_dump_test "power4_32"
86 run_dump_test "power6"
87 run_dump_test "power7"
88 run_dump_test "power8"
89 run_dump_test "power9"