41ba02
--- /dev/null	2018-03-23 18:42:35.237667431 +0100
41ba02
+++ gdb-7.6.1/gdb/testsuite/gdb.arch/s390x-arch12.S	2018-03-22 19:12:59.000000000 +0100
41ba02
@@ -0,0 +1,4 @@
41ba02
+.text
41ba02
+.globl load_guarded
41ba02
+load_guarded:
41ba02
+.byte 0xeb,0xbf,0xf0,0x58,0x00,0x24,0xe3,0xf0,0xff,0x50,0xff,0x71,0xb9,0x04,0x00,0xbf,0xe3,0x20,0xb0,0xa0,0x00,0x24,0xe3,0x10,0xb0,0xa0,0x00,0x04,0xe3,0x10,0x10,0x00,0x00,0x4c,0xe3,0x10,0xb0,0xa8,0x00,0x24,0xe3,0x10,0xb0,0xa8,0x00,0x04,0xb9,0x04,0x00,0x21,0xe3,0x40,0xb1,0x20,0x00,0x04,0xeb,0xbf,0xb1,0x08,0x00,0x04,0x07,0xf4
41ba02
--- /dev/null	2018-03-23 18:42:35.237667431 +0100
41ba02
+++ gdb-7.6.1/gdb/testsuite/gdb.arch/s390x-arch12.exp	2018-03-23 20:21:41.719888818 +0100
41ba02
@@ -0,0 +1,34 @@
41ba02
+# Copyright 2018 Free Software Foundation, Inc.
41ba02
+
41ba02
+# This program is free software; you can redistribute it and/or modify
41ba02
+# it under the terms of the GNU General Public License as published by
41ba02
+# the Free Software Foundation; either version 3 of the License, or
41ba02
+# (at your option) any later version.
41ba02
+#
41ba02
+# This program is distributed in the hope that it will be useful,
41ba02
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
41ba02
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41ba02
+# GNU General Public License for more details.
41ba02
+#
41ba02
+# You should have received a copy of the GNU General Public License
41ba02
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
41ba02
+
41ba02
+#if { ![istarget s390x-*linux-*] || ![is_lp64_target] } {
41ba02
+#    verbose "Skipping s390x-prologue-skip.exp"
41ba02
+#    return
41ba02
+#}
41ba02
+
41ba02
+set testfile "s390x-arch12"
41ba02
+set uufile "${srcdir}/${subdir}/${testfile}.o.uu"
41ba02
+set ofile "${srcdir}/${subdir}/${testfile}.o"
41ba02
+
41ba02
+if { [catch "system \"uudecode -o ${ofile} ${uufile}\"" ] != 0 } {
41ba02
+    untested "failed uudecode"
41ba02
+    return -1
41ba02
+}
41ba02
+
41ba02
+gdb_exit
41ba02
+gdb_start
41ba02
+gdb_load $ofile
41ba02
+
41ba02
+gdb_test "disas load_guarded" " <\\+28>:\tlgg\t%r1,0\\(%r1\\)\r\n\[^\r\n\]* <\\+34>:\tstg\t%r1,168\\(%r11\\)\r\n.*"
41ba02
--- /dev/null	2018-03-23 18:42:35.237667431 +0100
41ba02
+++ gdb-7.6.1/gdb/testsuite/gdb.arch/s390x-arch12.o.uu	2018-03-23 20:16:13.218543154 +0100
41ba02
@@ -0,0 +1,20 @@
41ba02
+begin 644 s390x-arch12.o
41ba02
+M?T5,1@("`0`````````````!`!8````!````````````````````````````
41ba02
+M``$X``````!```````!```<`!.N_\%@`)./P_U#_<;D$`+_C(+"@`"3C$+"@
41ba02
+M``3C$!```$SC$+"H`"3C$+"H``2Y!``AXT"Q(``$Z[^Q"``$!_0`+G-Y;71A
41ba02
+M8@`N
41ba02
+M`````````````````````````````````P```0``````````````````````
41ba02
+M`````P```@```````````````````````````P```P``````````````````
41ba02
+M```````!$````0``````````````````````;&]A9%]G=6%R9&5D````````
41ba02
+M````````````````````````````````````````````````````````````
41ba02
+M`````````````````````````!L````!``````````8`````````````````
41ba02
+M``!``````````$`````````````````````$```````````````A`````0``
41ba02
+M```````#````````````````````@```````````````````````````````
41ba02
+M!```````````````)P````@``````````P```````````````````(``````
41ba02
+M``````````````````````````0``````````````!$````#````````````
41ba02
+M``````````````````"``````````"P````````````````````!````````
41ba02
+M```````!`````@``````````````````````````````L`````````!X````
41ba02
+M!@````0`````````"``````````8````"0````,`````````````````````
41ba02
+H`````````2@`````````#@````````````````````$`````````````
41ba02
+`
41ba02
+end