summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mmix/greg2.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/mmix/greg2.s')
-rw-r--r--gas/testsuite/gas/mmix/greg2.s21
1 files changed, 21 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mmix/greg2.s b/gas/testsuite/gas/mmix/greg2.s
new file mode 100644
index 0000000000..15c91baa4f
--- /dev/null
+++ b/gas/testsuite/gas/mmix/greg2.s
@@ -0,0 +1,21 @@
+# Use of .greg; non-mmixal syntax though somewhat corresponding to greg1.
+# Note that use-before-definition is allowed.
+ .text
+
+ .greg A0,0
+ .greg B1,1
+ .greg C3,D4
+ .greg D5,
+ .greg ,E6+24 % Somewhat unusable, but hey...
+ .greg F7,.+8
+ .greg ,.+8
+ .greg G8,0xf7
+ .greg H9,.+8
+
+D4:
+ set $123,456
+E6:
+ set $234,7899
+ swym 2,3,4
+Main:
+ swym 1,2,3