aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2006-08-08 19:09:34 +0000
committerBob Wilson <bob.wilson@acm.org>2006-08-08 19:09:34 +0000
commit1737851b2005af535e44e89a4e7f341eddddd0f0 (patch)
tree1850d29d718572eef76e443b68821f232ff3a36b /gas/testsuite
parentce928021ab9b37594f8caa625b84783793ee5095 (diff)
downloadbinutils-1737851b2005af535e44e89a4e7f341eddddd0f0.zip
binutils-1737851b2005af535e44e89a4e7f341eddddd0f0.tar.gz
binutils-1737851b2005af535e44e89a4e7f341eddddd0f0.tar.bz2
gas/ChangeLog:
* dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): New. (out_sleb128): New. (out_fixed_inc_line_addr): New. (process_entries): Use out_fixed_inc_line_addr when DWARF2_USE_FIXED_ADVANCE_PC is set. * config/tc-xtensa.h (DWARF2_USE_FIXED_ADVANCE_PC): Define. gas/testsuite/ChangeLog: * gas/lns/lns-common-1-alt.d: New file. * gas/lns/lns.exp: Use lns-common-1-alt.d for xtensa targets.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/lns/lns-common-1-alt.d39
-rw-r--r--gas/testsuite/gas/lns/lns.exp7
3 files changed, 50 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 5431c5a..63a4c0d 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-08 Bob Wilson <bob.wilson@acm.org>
+
+ * gas/lns/lns-common-1-alt.d: New file.
+ * gas/lns/lns.exp: Use lns-common-1-alt.d for xtensa targets.
+
2006-08-04 Pedro Alves <pedro_alves@portugalmail.pt>
* gas/arm/wince.s: New test.
diff --git a/gas/testsuite/gas/lns/lns-common-1-alt.d b/gas/testsuite/gas/lns/lns-common-1-alt.d
new file mode 100644
index 0000000..f76e852
--- /dev/null
+++ b/gas/testsuite/gas/lns/lns-common-1-alt.d
@@ -0,0 +1,39 @@
+#source: lns-common-1.s
+#readelf: -wl
+#name: lns-common-1
+Dump of debug contents of section \.debug_line:
+#...
+ Initial value of 'is_stmt': 1
+#...
+ Line Number Statements:
+ Extended opcode 2: set Address to .*
+ Copy
+ Set column to 3
+ Advance Line by 1 to 2
+ Advance PC by fixed size amount .* to .*
+ Copy
+ Set prologue_end to true
+ Advance Line by 1 to 3
+ Advance PC by fixed size amount .* to .*
+ Copy
+ Set column to 0
+ Set epilogue_begin to true
+ Advance Line by 1 to 4
+ Advance PC by fixed size amount .* to .*
+ Copy
+ Set ISA to 1
+ Set basic block
+ Advance Line by 1 to 5
+ Advance PC by fixed size amount .* to .*
+ Copy
+ Set is_stmt to 0
+ Advance Line by 1 to 6
+ Advance PC by fixed size amount .* to .*
+ Copy
+ Set is_stmt to 1
+ Advance Line by 1 to 7
+ Advance PC by fixed size amount .* to .*
+ Copy
+ Advance PC by fixed size amount .* to .*
+ Extended opcode 1: End of Sequence
+#...
diff --git a/gas/testsuite/gas/lns/lns.exp b/gas/testsuite/gas/lns/lns.exp
index 1bc9599..8a87914 100644
--- a/gas/testsuite/gas/lns/lns.exp
+++ b/gas/testsuite/gas/lns/lns.exp
@@ -23,5 +23,10 @@ run_list_test "lns-diag-1" ""
# defined a macro...
if { ![istarget ia64*-*-*] && ![istarget i370-*-*] && ![istarget i960-*-*]
&& ![istarget or32-*-*] && ![istarget s390*-*-*] } {
- run_dump_test "lns-common-1"
+ # Use alternate file for targets using DW_LNS_fixed_advance_pc opcodes.
+ if { [istarget xtensa-*-*] } {
+ run_dump_test "lns-common-1-alt"
+ } else {
+ run_dump_test "lns-common-1"
+ }
}