2005-09-08 Paul Brook <paul@codesourcery.com>
[binutils.git] / gas / testsuite / gas / arm / req.s
blob341f66d1bf4b9032bf849f69fcac882f07306ac3
1 .text
2 .global test_dot_req_and_unreq
3 test_dot_req_and_unreq:
5 # Check that builtin register alias 'r0' works.
6 add r0, r0, r0
8 # Create an alias for r0.
9 foo .req r0
11 # Check that it works.
12 add foo, foo, foo
14 # Now remove the alias.
15 .unreq foo
17 # And make sure that it no longer works.
18 add foo, foo, foo
20 # Attempt to remove the builtin alias for r0.
21 .unreq r0
23 # That is ignored, so this should still work.
24 add r0, r0, r0