Home | History | Annotate | Download | only in ARM
      1 @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -s -sd \
      2 @ RUN:   | FileCheck %s
      3 
      4 	.syntax unified
      5 	.thumb
      6 
      7 	.section .duplicate
      8 
      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
     18 
     19 @ CHECK: Section {
     20 @ CHECK:   Name: .ARM.exidx.duplicate
     21 @ CHECK:   SectionData (
     22 @ CHECK:     0000: 00000000 B09B9B80
     23 @ CHECK:   )
     24 @ CHECK: }
     25 
     26 
     27 	.section .squash
     28 
     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
     38 
     39 @ CHECK: Section {
     40 @ CHECK:   Name: .ARM.exidx.squash
     41 @ CHECK:   SectionData (
     42 @ CHECK:     0000: 00000000 9C808580
     43 @ CHECK:   )
     44 @ CHECK: }
     45