summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mri/for.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/mri/for.s')
-rw-r--r--gas/testsuite/gas/mri/for.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mri/for.s b/gas/testsuite/gas/mri/for.s
new file mode 100644
index 00000000000..7524725a4b7
--- /dev/null
+++ b/gas/testsuite/gas/mri/for.s
@@ -0,0 +1,22 @@
+; Test MRI structured for pseudo-op.
+
+ xdef foo
+foo
+ clr d1
+ for d0 = #1 to #10 by #2 do
+ add d0,d1 arbitrary text 'in comment field
+ if <vs> then
+ break
+ endi
+ endf
+
+ clr d1
+ for d0 = #10 downto #1 do
+ if d1 <ge> #100 then
+ next
+ endi
+ add d0,d1
+ endf
+
+ nop
+ nop