aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2013-06-14 13:30:28 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2013-06-14 13:30:28 +0000
commite410add4157311809c0b580cf2303bd07c55ea1e (patch)
tree0c7d805e894dd462976744ceeb1c9fbad0eb55e0 /gas/testsuite
parent6a50d470b71ce26110ef91d2679d4565d3a3192e (diff)
downloadgdb-e410add4157311809c0b580cf2303bd07c55ea1e.zip
gdb-e410add4157311809c0b580cf2303bd07c55ea1e.tar.gz
gdb-e410add4157311809c0b580cf2303bd07c55ea1e.tar.bz2
gas/
* dwarf2dbg.h (dwarf2_move_insn): Declare. * dwarf2dbg.c (line_subseg): Add pmove_tail. (get_line_subseg): Add create_p argument. Initialize pmove_tail. (dwarf2_gen_line_info_1): Update call accordingly. (dwarf2_move_insn): New function. * config/tc-mips.c (append_insn): Use dwarf2_move_insn. gas/testsuite/ * gas/mips/loc-swap-3.d, gas/mips/loc-swap-3.s: New test. * gas/mips/mips.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/loc-swap-3.d16
-rw-r--r--gas/testsuite/gas/mips/loc-swap-3.s6
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
4 files changed, 28 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 9a11bb16..aa57f27 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
+
+ * gas/mips/loc-swap-3.d, gas/mips/loc-swap-3.s: New test.
+ * gas/mips/mips.exp: Run it.
+
2013-06-13 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
* gas/mips/micromips@virt.d: New file.
diff --git a/gas/testsuite/gas/mips/loc-swap-3.d b/gas/testsuite/gas/mips/loc-swap-3.d
new file mode 100644
index 0000000..9fc5e56
--- /dev/null
+++ b/gas/testsuite/gas/mips/loc-swap-3.d
@@ -0,0 +1,16 @@
+#PROG: readelf
+#readelf: -wl
+#name: MIPS DWARF-2 location information with branch swapping (3)
+#...
+ Line Number Statements:
+.* Set prologue_end to true
+.* Extended opcode 2: set Address to 0x[01]
+.* Copy
+#------------------------------------------------------------------------
+# There used to be a bogus:
+# Set prologue_end to true
+# here
+#------------------------------------------------------------------------
+.* Special opcode 6: advance Address by 0 to 0x[01] and Line by 1 to 2
+.* Advance PC by .*
+.* Extended opcode 1: End of Sequence
diff --git a/gas/testsuite/gas/mips/loc-swap-3.s b/gas/testsuite/gas/mips/loc-swap-3.s
new file mode 100644
index 0000000..1e4eb9a
--- /dev/null
+++ b/gas/testsuite/gas/mips/loc-swap-3.s
@@ -0,0 +1,6 @@
+ .file 1 "test.cpp"
+
+ .text
+ .loc 1 1 0 prologue_end
+ .loc 1 2 0
+ nop
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index a0ba481..e00b3f2 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -999,6 +999,7 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test_arches "loc-swap-dis" \
[mips_arch_list_all]
run_dump_test_arches "loc-swap-2" [mips_arch_list_all]
+ run_dump_test_arches "loc-swap-3" [mips_arch_list_all]
}
if $has_newabi {