150276Speter# Check that "naked" comments are accepted and ignored on all different
2176187Srafan# mnemonic types and pseudos.  The goal is to use all combinations of
350276Speter# operands where varying number of operands are allowed.  If any
450276Speter# combinations are missing, for simplicity, add them to another file.
550276SpeterMain TRAP 123 ignore; x y z
650276Speter TRAP 1,23 all; x y z
750276Speter TRAP 1,2,3 these; x y z
850276Speter FCMP $3,$2,$1 comments; x y z
950276Speter FLOT $5,6 and; x y z
1050276Speter FLOT $7,ROUND_UP,8 do; x y z
1150276Speter FIX $9,$10 nothing; x y z
1250276Speter FIX $11,ROUND_DOWN,$12 that; x y z
1350276Speter ADDU $15,$16,17 would make; x y z
1450276Speter LDA $18,$19 a; x y z
1550276Speter LDA $20,$21,22 difference; x y z
1650276Speter NEG $23,$24 in; x y z
1750276Speter NEG $25,26,$27 the; x y z
1850276Speter bn $28,target + 44 generated; x y z
1950276Speter SYNCD 29,$30,31 code; x y z
2050276Speter PUSHGO 32,$33,34 so; x y z
2150276Speter SET $35,$36 it; x y z
2250276Speter SETH $37,target2 + 48 is; x y z
2350276Speter JMP target3 + 56 as; x y z
2450276Speter POP 38,39 if; x y z
2550276Speter RESUME 40 it; x y z
2650276Speter PUSHJ $41,target3 had; x y z
2750276Speter SAVE $42,0 never; x y z
2850276Speter UNSAVE 0,$43 been; x y z
2950276Speter PUT rJ,$44 there; x y z
3050276Speter GET $45,rJ at all.; x y z
3150276Speter
32166124Srafan LOC @+4 likewise; x y z
3350276Speter PREFIX : with; x y z
3450276Speter BYTE 3,2,1,0+4 the; x y z
3550276Speter WYDE 7,4+8 different; x y z
3650276Speter TETRA 8+12 pseudo; x y z
3750276Speter OCTA 12+16 ops,; x y z
3850276Speter LOCAL 48 they; x y z
3950276Speter BSPEC 49 too; x y z
4050276Speter# Specifying an operand field (although ignored) is necessary for a comment
4150276Speter# with a ';' to be ignorable and not interpreted as eoln, both for GAS and
4250276Speter# mmixal.
4350276Speter ESPEC 0 ignore; x y z
44184989Srafan GREG 50 + 1 naked; x y z
4550276Speterz IS 9 + 8 + 7 comments; x y z
4650276Speterx SWYM 34,21,56
4750276Speter