Debian Codegraph @

src/range_step/range_step.S

raw
1 // Copyright (c) 2020 Arm Limited
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 .syntax unified
16 .text
17 .thumb
18 .align 3
19 .cfi_sections .debug_frame
20
21 .thumb_func
22 .type range_step_test,%function
23 .global range_step_test
24 .fnstart
25 .cfi_startproc
26 range_step_test:
27
28 // Ridiculously simple (and random) instruction sequence.
29 // Importantly, there are no branches.
30 adds r0, #1
31 mvns r1, r0
32 adds r1, #1
33 movs r2, r0, lsl #4
34 movs r3, r2
35 eors r3, r1
36 adds r0, r1
37 adds r0, r2
38 subs r0, r3
39 bkpt #0
40
41 .cfi_endproc
42 .cantunwind
43 .fnend
44 .size range_step_test, . - range_step_test
45
46