[ThinLTO] Add code comment. NFC
[llvm-complete.git] / test / MC / ARM / eh-directive-movsp.s
blobbbb9e2cfeb2ccfdf390498cbf775e1549c104d6c
1 @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -S --sd \
2 @ RUN: | FileCheck %s
4 .syntax unified
5 .thumb
7 .section .duplicate
9 .global duplicate
10 .type duplicate,%function
11 duplicate:
12 .fnstart
13 .setfp sp, sp, #8
14 add sp, sp, #8
15 .movsp r11
16 mov r11, sp
17 .fnend
19 @ CHECK: Section {
20 @ CHECK: Name: .ARM.exidx.duplicate
21 @ CHECK: SectionData (
22 @ CHECK: 0000: 00000000 B09B9B80
23 @ CHECK: )
24 @ CHECK: }
27 .section .squash
29 .global squash
30 .type squash,%function
31 squash:
32 .fnstart
33 .movsp ip
34 mov ip, sp
35 .save {fp, ip, lr}
36 stmfd sp!, {fp, ip, lr}
37 .fnend
39 @ CHECK: Section {
40 @ CHECK: Name: .ARM.exidx.squash
41 @ CHECK: SectionData (
42 @ CHECK: 0000: 00000000 9C808580
43 @ CHECK: )
44 @ CHECK: }