]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.arch/powerpc-power8.exp
Update copyright year range in all GDB files
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.arch / powerpc-power8.exp
CommitLineData
e2882c85 1# Copyright 2014-2018 Free Software Foundation, Inc.
65b48a81
PB
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, see <http://www.gnu.org/licenses/>.
15
16# This file is part of the gdb testsuite.
17
18# Test PowerPC instructions disassembly.
19
20standard_testfile .s
21set objfile [standard_output_file ${testfile}.o]
22
23if {![istarget "powerpc*-*-*"]} then {
24 verbose "Skipping PowerPC instructions disassembly."
25 return
26}
27
28if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
29 untested "PowerPC instructions disassembly"
30 return -1
31}
32
33clean_restart ${objfile}
34
35# Disassemble the function.
36set func ""
37
38gdb_test "set disassembler-options power8"
39set test "disass func"
40gdb_test_multiple $test $test {
41 -re "\r\nDump of assembler code for function func:(\r\n.*\r\n)End of assembler dump.\r\n$gdb_prompt $" {
42 set func $expect_out(1,string)
43 pass $test
44 }
45}
46
47proc instr_to_patt {instr} {
48 global decimal hex
49 # 0x0000000000000018 <+24>: stxvd2x vs43,r4,r5
50 return "\[ \t\]*$hex <\\+$decimal>:\[ \t\]*[string_to_regexp $instr]"
51}
52
53proc func_check {instr} {
54 global func
55
56 set test "found: $instr"
57 if [regexp -nocase -line [instr_to_patt $instr] $func] {
58 pass $test
59 } else {
60 fail $test
61 }
62}
63
64func_check "tabort. r5"
65func_check "tabortwc. 7,r8,r16"
66func_check "tabortdc. 20,r11,r10"
67func_check "tabortwci. 17,r10,-13"
68func_check "tabortdci. 29,r3,-5"
69func_check "tbegin. "
70func_check "tcheck cr7"
71func_check "tend. "
72func_check "tend. "
73func_check "tendall."
74func_check "tendall."
75func_check "treclaim. r24"
76func_check "trechkpt."
77func_check "tsuspend."
78func_check "tsuspend."
79func_check "tresume."
80func_check "tresume."
81func_check "ori r2,r2,0"
82func_check "nop"
83func_check "ori r2,r2,0"
84func_check "rfebb 0"
85func_check "rfebb "
86func_check "rfebb "
87func_check "bctar- 12,4*cr5+gt"
88func_check "bctarl- 4,4*cr1+so"
89func_check "bctar+ 12,4*cr3+lt"
90func_check "bctarl+ 4,eq"
91func_check "bctar 4,4*cr2+lt,1"
92func_check "bctarl 4,4*cr1+so,2"
93func_check "waitasec"
94func_check "msgsndp r8"
95func_check "mtsle 1"
96func_check "msgclrp r27"
97func_check "stqcx. r10,r10,r12"
98func_check "stqcx. r28,0,r7"
99func_check "lqarx r24,r19,r11"
100func_check "lqarx r22,0,r11"
101func_check "mfbhrbe r20,6"
102func_check "pbt. r29,r17,r16"
103func_check "pbt. r14,0,r7"
104func_check "clrbhrb"
105func_check "vpermxor v11,v10,v0,v23"
106func_check "vaddeuqm v24,v2,v7,v4"
107func_check "vaddecuq v10,v10,v8,v2"
108func_check "vsubeuqm v5,v15,v8,v19"
109func_check "vsubecuq v12,v31,v16,v29"
110func_check "vmulouw v20,v29,v13"
111func_check "vmuluwm v29,v0,v26"
112func_check "vaddudm v8,v21,v28"
113func_check "vmaxud v1,v26,v1"
114func_check "vrld v20,v3,v1"
115func_check "vcmpequd v4,v19,v11"
116func_check "vadduqm v23,v14,v30"
117func_check "vaddcuq v8,v8,v13"
118func_check "vmulosw v28,v27,v4"
119func_check "vmaxsd v3,v4,v4"
120func_check "vmuleuw v0,v19,v21"
121func_check "vminud v24,v20,v19"
122func_check "vcmpgtud v0,v28,v15"
123func_check "vmulesw v21,v0,v2"
124func_check "vminsd v9,v26,v9"
125func_check "vsrad v25,v29,v11"
126func_check "vcmpgtsd v11,v28,v11"
127func_check "bcdadd. v5,v8,v26,1"
128func_check "vpmsumb v4,v3,v12"
129func_check "bcdsub. v26,v31,v21,1"
130func_check "vpmsumh v5,v17,v16"
131func_check "vpkudum v23,v17,v20"
132func_check "vpmsumw v24,v21,v29"
133func_check "vpmsumd v9,v22,v13"
134func_check "vpkudus v18,v19,v18"
135func_check "vsubuqm v30,v16,v22"
136func_check "vcipher v14,v11,v7"
137func_check "vcipherlast v10,v2,v22"
138func_check "vgbbd v23,v13"
139func_check "vsubcuq v16,v25,v16"
140func_check "vorc v31,v1,v5"
141func_check "vncipher v4,v17,v31"
142func_check "vncipherlast v24,v2,v27"
143func_check "vbpermq v23,v21,v23"
144func_check "vpksdus v27,v18,v9"
145func_check "vnand v27,v29,v27"
146func_check "vsld v19,v19,v24"
147func_check "vsbox v5,v13"
148func_check "vpksdss v25,v3,v7"
149func_check "vcmpequd. v28,v8,v0"
150func_check "vupkhsw v26,v26"
151func_check "vshasigmaw v5,v7,0,6"
152func_check "veqv v28,v21,v14"
153func_check "vmrgow v1,v8,v19"
154func_check "vshasigmad v0,v10,0,10"
155func_check "vsrd v5,v27,v14"
156func_check "vupklsw v11,v13"
157func_check "vclzb v14,v16"
158func_check "vpopcntb v20,v27"
159func_check "vclzh v28,v11"
160func_check "vpopcnth v24,v9"
161func_check "vclzw v27,v31"
162func_check "vpopcntw v17,v19"
163func_check "vclzd v12,v29"
164func_check "vpopcntd v23,v22"
165func_check "vcmpgtud. v24,v20,v29"
166func_check "vcmpgtsd. v9,v6,v27"
167func_check "lxsiwzx vs62,r14,r26"
168func_check "lxsiwzx vs40,0,r25"
169func_check "lxsiwax vs25,0,r26"
170func_check "lxsiwax vs3,0,r3"
171func_check "mfvsrd r12,vs62"
172func_check "mffprwz r20,f12"
173func_check "stxsiwx vs14,r9,r14"
174func_check "stxsiwx vs21,0,r8"
175func_check "mtvsrd vs48,r11"
176func_check "mtvrwa v31,r23"
177func_check "mtfprwz f16,r26"
178func_check "lxsspx vs13,r19,r13"
179func_check "lxsspx vs18,0,r13"
180func_check "stxsspx vs43,r2,r4"
181func_check "stxsspx vs55,0,r11"
182func_check "xsaddsp vs54,vs48,vs25"
183func_check "xsmaddasp vs14,vs50,vs1"
184func_check "xssubsp vs26,vs22,vs42"
185func_check "xsmaddmsp vs27,vs53,vs52"
186func_check "xsrsqrtesp vs8,vs59"
187func_check "xssqrtsp vs12,vs41"
188func_check "xsmulsp vs57,vs11,vs32"
189func_check "xsmsubasp vs38,vs20,vs26"
190func_check "xsdivsp vs26,vs19,vs6"
191func_check "xsmsubmsp vs35,vs37,vs55"
192func_check "xsresp vs59,vs8"
193func_check "xsnmaddasp vs44,vs33,vs33"
194func_check "xsnmaddmsp vs17,vs62,vs30"
195func_check "xsnmsubasp vs54,vs52,vs31"
196func_check "xsnmsubmsp vs37,vs5,vs58"
197func_check "xxlorc vs30,vs54,vs44"
198func_check "xxlnand vs49,vs14,vs29"
199func_check "xxleqv vs62,vs22,vs30"
200func_check "xscvdpspn vs60,vs54"
201func_check "xsrsp vs22,vs45"
202func_check "xscvuxdsp vs26,vs59"
203func_check "xscvsxdsp vs38,vs49"
204func_check "xscvspdpn vs59,vs26"
205func_check "fmrgow f24,f14,f2"
206func_check "fmrgew f22,f7,f5"
207func_check "msgsnd r14"
208func_check "msgclr r23"
209func_check "lxvd2x vs40,0,r5"
210func_check "lxvd2x vs40,0,r5"
211func_check "lxvd2x vs10,r20,r6"
212func_check "lxvd2x vs10,r20,r6"
213func_check "stxvd2x vs41,0,r7"
214func_check "stxvd2x vs41,0,r7"
215func_check "stxvd2x vs11,r21,r8"
216func_check "stxvd2x vs11,r21,r8"
217func_check "lbarx r20,0,r7"
218func_check "lbarx r20,0,r7"
219func_check "lbarx r20,0,r7,1"
220func_check "lbarx r20,r1,r7"
221func_check "lbarx r20,r1,r7"
222func_check "lbarx r20,r1,r7,1"
223func_check "ldarx r21,0,r8"
224func_check "ldarx r21,0,r8"
225func_check "ldarx r21,0,r8,1"
226func_check "ldarx r21,r1,r8"
227func_check "ldarx r21,r1,r8"
228func_check "ldarx r21,r1,r8,1"
229func_check "lharx r22,0,r9"
230func_check "lharx r22,0,r9"
231func_check "lharx r22,0,r9,1"
232func_check "lharx r22,r1,r9"
233func_check "lharx r22,r1,r9"
234func_check "lharx r22,r1,r9,1"
235func_check "lwarx r23,0,r10"
236func_check "lwarx r23,0,r10"
237func_check "lwarx r23,0,r10,1"
238func_check "lwarx r23,r1,r10"
239func_check "lwarx r23,r1,r10"
240func_check "lwarx r23,r1,r10,1"
241func_check "stbcx. r10,0,r7"
242func_check "stbcx. r10,r1,r7"
243func_check "sthcx. r11,0,r8"
244func_check "sthcx. r11,r1,r8"
245func_check "stwcx. r12,0,r9"
246func_check "stwcx. r12,r1,r9"
247func_check "stdcx. r13,0,r10"
248func_check "stdcx. r13,r1,r10"