aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2012-01-08 12:11:42 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2012-01-08 12:11:42 +0000
commit462427c4188dd69b535b4e5c4e058820bbb736d0 (patch)
tree3fb80b4fd2717e688f0ccbfc4c208a5000e3182c /gas/testsuite
parent49c57d84cdd203495286ff66f7ce485182ed166d (diff)
downloadgdb-462427c4188dd69b535b4e5c4e058820bbb736d0.zip
gdb-462427c4188dd69b535b4e5c4e058820bbb736d0.tar.gz
gdb-462427c4188dd69b535b4e5c4e058820bbb736d0.tar.bz2
gas/
2011-01-08 Andrew Pinski <andrew.pinski@caviumnetworks.com> Richard Sandiford <rdsandiford@googlemail.com> * config/tc-mips.c (mips_move_labels): Take the list of labels and textness as parameters. (mips_move_text_labels): New function. (append_insn): Use it instead of mips_move_labels. (mips_emit_delays, start_noreorder): Likewise. (mips_align): Take the labels rather than just one label. Move all labels to after the .align. (s_align): Change the last argument to mips_align. (s_cons): Likewise. (s_float_cons): Likewise. (s_gpword): Likewise. (s_gpdword): Likewise. gas/testsuite/ * gas/mips/align3.s, gas/mips/align3.d: New testcase. * gas/mips/mips.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/align3.d6
-rw-r--r--gas/testsuite/gas/mips/align3.s9
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
4 files changed, 21 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index cc2aa28..e8075e6 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * gas/mips/align3.s, gas/mips/align3.d: New testcase.
+ * gas/mips/mips.exp: Run it.
+
2012-01-04 Iain Sandoe <idsandoe@googlemail.com>
* gas/mach-o/zerofill-2.d: New.
diff --git a/gas/testsuite/gas/mips/align3.d b/gas/testsuite/gas/mips/align3.d
new file mode 100644
index 0000000..4636858
--- /dev/null
+++ b/gas/testsuite/gas/mips/align3.d
@@ -0,0 +1,6 @@
+# objdump: -sj.data
+
+.*
+
+Contents of section \.data:
+ 0000 00000000 (00000004|04000000) (00000004|04000000) 00000000 ................
diff --git a/gas/testsuite/gas/mips/align3.s b/gas/testsuite/gas/mips/align3.s
new file mode 100644
index 0000000..dc135ef
--- /dev/null
+++ b/gas/testsuite/gas/mips/align3.s
@@ -0,0 +1,9 @@
+ .data
+start:
+ .byte 0
+foo:
+bar:
+ .align 2
+ .word foo - start
+ .word bar - start
+ .word 0
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 4beb3e2..597c572 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -1049,6 +1049,7 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test "align"
run_dump_test "align2"
run_dump_test "align2-el"
+ run_dump_test "align3"
run_dump_test "odd-float"
run_list_test_arches "mips-macro-ill-sfp" "-32 -msingle-float" \