summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mmix/basep-9.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/mmix/basep-9.s')
-rw-r--r--gas/testsuite/gas/mmix/basep-9.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mmix/basep-9.s b/gas/testsuite/gas/mmix/basep-9.s
new file mode 100644
index 000000000000..d36326e994e5
--- /dev/null
+++ b/gas/testsuite/gas/mmix/basep-9.s
@@ -0,0 +1,9 @@
+# Test that we handle COMM-type symbols with base-plus-offset relocs.
+ .comm comm_symbol1,4,4
+ .lcomm comm_symbol3,4
+ GREG comm_symbol1
+ GREG comm_symbol3
+ LDA $42,comm_symbol1
+ LDA $44,comm_symbol3
+ LDA $45,comm_symbol4
+ .lcomm comm_symbol4,4