diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2015-04-16 13:03:48 +0200 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2015-04-16 13:03:48 +0200 |
commit | af9fd6f863c9f184e2c84d8a4707b3ec7b8ca67b (patch) | |
tree | 9ab31bbccab10ecf201169ba0b6f568436d10008 /gdb/testsuite/gdb.arch/s390-vregs.S | |
parent | 04ff1e612ece7915c5c0f94c84f90f55e4c50059 (diff) | |
download | gdb-af9fd6f863c9f184e2c84d8a4707b3ec7b8ca67b.zip gdb-af9fd6f863c9f184e2c84d8a4707b3ec7b8ca67b.tar.gz gdb-af9fd6f863c9f184e2c84d8a4707b3ec7b8ca67b.tar.bz2 |
s390-vregs.exp: Avoid compile errors with older GCCs and on 31-bit targets
The test case s390-vregs.exp yields compile errors on 31-bit targets
as well as when using a GCC that defaults to an older "-march=". This
patch fixes these issues.
gdb/testsuite/ChangeLog:
* gdb.arch/s390-vregs.S (change_vrs): Replace exrl by an
appropriate .insn, such that an older assembler can be used.
* gdb.arch/s390-vregs.exp: Add the compile flag -mzarch, to enable
the z/Architecture instruction set on 31-bit targets as well.
Diffstat (limited to 'gdb/testsuite/gdb.arch/s390-vregs.S')
-rw-r--r-- | gdb/testsuite/gdb.arch/s390-vregs.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.arch/s390-vregs.S b/gdb/testsuite/gdb.arch/s390-vregs.S index 4b48a83..7388e7d 100644 --- a/gdb/testsuite/gdb.arch/s390-vregs.S +++ b/gdb/testsuite/gdb.arch/s390-vregs.S @@ -56,8 +56,8 @@ change_vrs: .cfi_startproc lghi %r1,16 lghi %r3,0xff -1: exrl %r3,2f - exrl %r3,1f +1: .insn ril,0xc60000000000,%r3,2f /* exrl */ + .insn ril,0xc60000000000,%r3,1f /* exrl */ aghi %r3,-0x11 brctg %r1,1b br %r14 |