Commit | Line | Data |
---|---|---|
b3adc24a | 1 | # Copyright (C) 2012-2020 Free Software Foundation, Inc. |
5bf135a7 NC |
2 | |
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. | |
7 | # | |
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. | |
12 | # | |
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. | |
16 | ||
252b5132 RH |
17 | # |
18 | # Some PowerPC tests | |
19 | # | |
20 | ||
52fe4420 AM |
21 | if { ![istarget "powerpc*-*-*"] && ![istarget "rs6000-*-*"] } then { |
22 | return | |
23 | } | |
24 | ||
5f63875b AM |
25 | proc supports_ppc64 { } { |
26 | global AS | |
27 | if { [catch "exec $AS -a64 < /dev/null"] } then { | |
28 | return 0 | |
29 | } else { | |
30 | return 1 | |
31 | } | |
32 | } | |
33 | ||
bec858ea AM |
34 | run_dump_test "bcyerr" |
35 | run_dump_test "bcy" | |
36 | run_dump_test "bcaterr" | |
37 | run_dump_test "bcat" | |
52fe4420 AM |
38 | run_dump_test "regnames" |
39 | run_dump_test "misalign" | |
40 | run_dump_test "misalign2" | |
41 | run_dump_test "machine" | |
42 | run_dump_test "simpshft" | |
43 | run_dump_test "altivec_and_spe" | |
44 | run_list_test "range" "-a32" | |
45 | run_dump_test "cell" | |
46 | ||
47 | if { [istarget "*-*-aix*"] | |
48 | || [istarget "*-*-macos*"] | |
49 | || [istarget "*-*-beos*"] } then { | |
50 | run_dump_test "test1xcoff32" | |
51 | run_dump_test "test2xcoff32" | |
52 | run_dump_test "altivec_xcoff" | |
53 | run_dump_test "altivec_xcoff64" | |
22f72c48 | 54 | run_dump_test "groupnop" |
52fe4420 AM |
55 | } |
56 | ||
252b5132 RH |
57 | # These tests are currently ELF specific, only because nobody has |
58 | # converted them to look for XCOFF relocations. | |
52fe4420 AM |
59 | if { ![is_elf_format] } then { |
60 | return | |
61 | } | |
252b5132 | 62 | |
e88b7c97 AM |
63 | if { [istarget powerpc64*-*-*] || [istarget *-*-elf64*]} then { |
64 | # FIXME: Pass -x to objdump as well as -Dr for astest64 and astest2_64. | |
65 | run_dump_test "astest64" | |
66 | run_dump_test "astest2_64" | |
67 | run_dump_test "test1elf64" | |
03417200 | 68 | run_dump_test "power4" |
c5c2803a | 69 | run_list_test "range64" "-a64" |
52fe4420 | 70 | } else { |
252b5132 RH |
71 | run_dump_test "astest" |
72 | run_dump_test "astest2" | |
e88b7c97 | 73 | run_dump_test "test1elf32" |
252b5132 RH |
74 | } |
75 | ||
52fe4420 AM |
76 | run_dump_test "common" |
77 | run_dump_test "476" | |
78 | run_dump_test "a2" | |
79 | run_dump_test "pr21303" | |
80 | run_dump_test "vle" | |
81 | run_dump_test "vle-reloc" | |
82 | run_dump_test "vle-simple-1" | |
83 | run_dump_test "vle-simple-2" | |
84 | run_dump_test "vle-simple-3" | |
85 | run_dump_test "vle-simple-4" | |
86 | run_dump_test "vle-simple-5" | |
87 | run_dump_test "vle-simple-6" | |
88 | run_dump_test "vle-mult-ld-st-insns" | |
e3c2f928 | 89 | |
52fe4420 AM |
90 | #fail expected until get_powerpc_dialect() patch not applied |
91 | setup_xfail "*-*-*" | |
92 | run_dump_test "lsp" | |
74081948 | 93 | |
52fe4420 AM |
94 | run_dump_test "lsp-checks" |
95 | run_dump_test "efs" | |
96 | run_dump_test "efs2" | |
97 | run_dump_test "spe2" | |
98 | run_dump_test "spe2-checks" | |
99 | run_dump_test "spe" | |
74a21df4 | 100 | |
52fe4420 AM |
101 | setup_xfail "*-*-*" |
102 | run_dump_test "spe_ambiguous" | |
103 | ||
104 | run_dump_test "altivec" | |
105 | run_dump_test "altivec2" | |
106 | run_dump_test "altivec3" | |
fa758a70 | 107 | run_dump_test "broadway" |
52fe4420 | 108 | run_dump_test "booke" |
22f72c48 | 109 | run_dump_test "groupnop" |
52fe4420 AM |
110 | run_dump_test "e500" |
111 | run_list_test "e500-ill" "-me500" | |
112 | run_dump_test "ppc750ps" | |
113 | run_dump_test "e500mc" | |
114 | run_dump_test "e6500" | |
115 | run_dump_test "e500mc64_nop" | |
116 | run_dump_test "e5500_nop" | |
117 | run_dump_test "e6500_nop" | |
118 | run_dump_test "power4_32" | |
119 | run_dump_test "power6" | |
120 | run_dump_test "power7" | |
121 | run_dump_test "power8" | |
122 | run_dump_test "power9" | |
1224c05d | 123 | run_dump_test "power10" |
52fe4420 AM |
124 | run_dump_test "vsx" |
125 | run_dump_test "vsx2" | |
126 | run_dump_test "vsx3" | |
127 | run_dump_test "htm" | |
128 | run_dump_test "titan" | |
dd7efa79 | 129 | run_dump_test "prefix-align" |
8acf1435 | 130 | run_dump_test "prefix-pcrel" |
5f63875b AM |
131 | if { [supports_ppc64] } then { |
132 | run_dump_test "prefix-reloc" | |
133 | } | |
3ff0a5ba | 134 | run_dump_test "byte_rev" |
f4791f1a | 135 | run_dump_test "vec_mul" |