aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2011-07-04 22:48:42 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2011-07-04 22:48:42 +0000
commit97fd0b2f39d261242489a2a20a13286ff38b204a (patch)
treecb588c343ef68c65c1862ec6aaa7f345c7eebe7b /gas
parentfe35f09f47706967f1ccc7c29b6b07823b8d36c6 (diff)
downloadfsf-binutils-gdb-97fd0b2f39d261242489a2a20a13286ff38b204a.zip
fsf-binutils-gdb-97fd0b2f39d261242489a2a20a13286ff38b204a.tar.gz
fsf-binutils-gdb-97fd0b2f39d261242489a2a20a13286ff38b204a.tar.bz2
* gas/mips/loc-swap.s: Add file missing from a previous commit.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/mips/loc-swap.s48
1 files changed, 48 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mips/loc-swap.s b/gas/testsuite/gas/mips/loc-swap.s
new file mode 100644
index 0000000..a70acf2
--- /dev/null
+++ b/gas/testsuite/gas/mips/loc-swap.s
@@ -0,0 +1,48 @@
+# Source file to test DWARF-2 location information with branch swapping.
+
+ .file 1 "loc-swap.s"
+ .text
+foo:
+ .loc 1 7
+ move $4, $16
+ .loc 1 9
+ jr $4
+
+ .loc 1 12
+ move $31, $16
+ .loc 1 14
+ jr $4
+
+ .loc 1 17
+ move $4, $16
+ .loc 1 19
+ jr $31
+
+ .loc 1 22
+ move $31, $16
+ .loc 1 24
+ jr $31
+
+ .loc 1 27
+ move $4, $16
+ .loc 1 29
+ jalr $4
+
+ .loc 1 32
+ move $31, $16
+ .loc 1 34
+ jalr $4
+
+ .loc 1 37
+ move $4, $16
+ .loc 1 39
+ jal bar
+
+ .loc 1 42
+ move $31, $16
+ .loc 1 44
+ jal bar
+
+# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
+ .align 2
+ .space 16