summaryrefslogtreecommitdiffstats
path: root/gas/testsuite/gas/iq2000/hazard2.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/iq2000/hazard2.s')
-rw-r--r--gas/testsuite/gas/iq2000/hazard2.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/gas/testsuite/gas/iq2000/hazard2.s b/gas/testsuite/gas/iq2000/hazard2.s
new file mode 100644
index 0000000000..cb45a5bef2
--- /dev/null
+++ b/gas/testsuite/gas/iq2000/hazard2.s
@@ -0,0 +1,11 @@
+# This test case includes a single case of a load hazard, whereby an
+# instruction references a register which is the target of a load.
+# The assembler must warn about this!
+
+.data
+foodata:
+ .word 42
+
+.text
+ lw %2, foodata(%1)
+ add %0, %1, %2
OpenPOWER on IntegriCloud