Commit | Line | Data |
---|---|---|
0bbf2aa4 NC |
1 | .text |
2 | .global test_dot_req_and_unreq | |
3 | test_dot_req_and_unreq: | |
4 | ||
c19d1205 | 5 | # Check that builtin register alias 'r0' works. |
0bbf2aa4 NC |
6 | add r0, r0, r0 |
7 | ||
8 | # Create an alias for r0. | |
9 | foo .req r0 | |
10 | ||
11 | # Check that it works. | |
12 | add foo, foo, foo | |
13 | ||
14 | # Now remove the alias. | |
15 | .unreq foo | |
16 | ||
17 | # And make sure that it no longer works. | |
18 | add foo, foo, foo | |
19 | ||
c19d1205 | 20 | # Attempt to remove the builtin alias for r0. |
0bbf2aa4 NC |
21 | .unreq r0 |
22 | ||
c19d1205 | 23 | # That is ignored, so this should still work. |
0bbf2aa4 NC |
24 | add r0, r0, r0 |
25 |