include/
[external/binutils.git] / gas / testsuite / gas / mmix / err-builtin.s
1 % { dg-do assemble { target mmix-*-* } }
2 % { dg-options "-no-predefined-syms" }
3 % When disallowing built-in names, we have to treat GET and PUT
4 % specially, so when parsing the special register operand we do
5 % not use the symbol table.  Make sure an error is emitted for
6 % invalid registers despite there being a valid user label and
7 % the construct being valid without the -no-builtin-syms option.
8 % FIXME: Another option?  Or is this just the consequence?
9 RJ IS 4
10 other IS 20
11 Main GET $5,RJ % { dg-error "invalid operands" "" }
12  PUT other,$7 % { dg-error "invalid operands" "" }
13  GET garbage % { dg-error "invalid operands" "" }
14  PUT garbage % { dg-error "invalid operands" "" }