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.
This commit is contained in:
parent
04ff1e612e
commit
af9fd6f863
3 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2015-04-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2015-04-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
2015-04-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* gdb.go/handcall.exp: Remove all logic related to the first
|
* gdb.go/handcall.exp: Remove all logic related to the first
|
||||||
|
|
|
@ -56,8 +56,8 @@ change_vrs:
|
||||||
.cfi_startproc
|
.cfi_startproc
|
||||||
lghi %r1,16
|
lghi %r1,16
|
||||||
lghi %r3,0xff
|
lghi %r3,0xff
|
||||||
1: exrl %r3,2f
|
1: .insn ril,0xc60000000000,%r3,2f /* exrl */
|
||||||
exrl %r3,1f
|
.insn ril,0xc60000000000,%r3,1f /* exrl */
|
||||||
aghi %r3,-0x11
|
aghi %r3,-0x11
|
||||||
brctg %r1,1b
|
brctg %r1,1b
|
||||||
br %r14
|
br %r14
|
||||||
|
|
|
@ -29,7 +29,8 @@ if [isnative] {
|
||||||
remote_exec build "mkdir $coredir"
|
remote_exec build "mkdir $coredir"
|
||||||
}
|
}
|
||||||
|
|
||||||
if { [prepare_for_testing ${testfile}.exp $testfile $srcfile] } {
|
if { [prepare_for_testing ${testfile}.exp $testfile $srcfile \
|
||||||
|
[list "additional_flags=-mzarch"]] } {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue