s390-vregs.exp: Avoid compile errors with older GCCs and on 31-bit targets
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 16 Apr 2015 11:03:48 +0000 (13:03 +0200)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 16 Apr 2015 11:03:48 +0000 (13:03 +0200)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/s390-vregs.S
gdb/testsuite/gdb.arch/s390-vregs.exp

index 55a593a58dca581788349726675394fce9fd4be7..0f2d552b9160e9ac5c84515ab693c74fc6419a89 100644 (file)
@@ -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>
 
        * gdb.go/handcall.exp: Remove all logic related to the first
index 4b48a836780bd644cfda147fb77c3025a4db70a9..7388e7d3610a9319ae0d5b0236d4429235f5d7d8 100644 (file)
@@ -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
index 8333c320794c742496d725414e2122fa2b6ee731..7d3c9bb7d03a03b85e20ff152e2e494df97938a9 100644 (file)
@@ -29,7 +29,8 @@ if [isnative] {
     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
 }
 
This page took 0.033704 seconds and 4 git commands to generate.