aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/ia64/dependency-1.d20
-rw-r--r--gas/testsuite/gas/ia64/dependency-1.s7
-rw-r--r--gas/testsuite/gas/ia64/ia64.exp2
4 files changed, 35 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index c73f6c6..dc696c4 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2003-04-08 Nick Clifton <nickc@redhat.com>
+
+ * gas/ia64/dependency-1.s: New file: Test read before write dependency.
+ * gas/ia64/dependency-1.d: New file: Expected assembly results.
+ * gas/ia64/ia64.exp: Run the new test.
+
2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
* gas/m68hc11/bug-1825.d (_table): Update.
diff --git a/gas/testsuite/gas/ia64/dependency-1.d b/gas/testsuite/gas/ia64/dependency-1.d
new file mode 100644
index 0000000..3381282
--- /dev/null
+++ b/gas/testsuite/gas/ia64/dependency-1.d
@@ -0,0 +1,20 @@
+# as: -xexplicit
+# objdump: -d
+# name: IA64 read-before-write dependency
+
+# Note - this test is based on a bug reported here:
+# http://sources.redhat.com/ml/bug-gnu-utils/2003-03/msg00270.html
+# With follows up on the binutils mailing list here:
+# http://sources.redhat.com/ml/binutils/2003-04/msg00162.html
+
+.*: +file format .*
+
+Disassembly of section \.text:
+
+0000000000000000 <foo>:
+ 0:.*0b 40 00 40 10 18.*\[MMI\].*ldfs f8=\[r32\];;
+ 6:.*00 40 84 30 33 00.*stfd \[r33\]=f8
+ c:.*00 00 04 00.*nop\.i 0x0;;
+ 10:.*0c 00 00 00 01 00.*\[MFI\].*nop.m 0x0
+ 16:.*00 00 00 02 00 00.*nop\.f 0x0
+ 1c:.*00 00 04 00.*nop\.i 0x0
diff --git a/gas/testsuite/gas/ia64/dependency-1.s b/gas/testsuite/gas/ia64/dependency-1.s
new file mode 100644
index 0000000..7ffa081
--- /dev/null
+++ b/gas/testsuite/gas/ia64/dependency-1.s
@@ -0,0 +1,7 @@
+ .text
+ .auto
+ .align 32
+
+foo:
+ ldfs f8=[r32]
+ stfd [r33]=f8
diff --git a/gas/testsuite/gas/ia64/ia64.exp b/gas/testsuite/gas/ia64/ia64.exp
index 3a672a7..88ed2cf 100644
--- a/gas/testsuite/gas/ia64/ia64.exp
+++ b/gas/testsuite/gas/ia64/ia64.exp
@@ -39,4 +39,6 @@ if [istarget "ia64-*"] then {
run_dump_test "ldxmov-1"
run_list_test "ldxmov-2" ""
run_dump_test "ltoff22x-1"
+
+ run_dump_test "dependency-1"
}