File: arm-thumb-thunk-empty-pass.s

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (30 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// REQUIRES: arm
// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t.o
// RUN: ld.lld %t.o -o %t
// RUN: llvm-objdump -d %t --triple=thumbv7a | FileCheck %s
 .syntax unified
 .global _start, foo
 .type _start, %function
 .section .text.start,"ax",%progbits
_start:
 bl _start
 .section .text.dummy1,"ax",%progbits
 .space 0xfffffe
 .section .text.foo,"ax",%progbits
  .type foo, %function
foo:
 bl _start

// CHECK: Disassembly of section .text:
// CHECK-EMPTY:
// CHECK-NEXT: <_start>:
// CHECK-NEXT:    200b4:       ff f7 fe ff     bl      #-4
// CHECK: <__Thumbv7ABSLongThunk__start>:
// CHECK-NEXT:    200b8:       ff f7 fc bf     b.w     #-8 <_start>

// CHECK: <__Thumbv7ABSLongThunk__start>:
// CHECK:       10200bc:       40 f2 b5 0c     movw    r12, #181
// CHECK-NEXT:  10200c0:       c0 f2 02 0c     movt    r12, #2
// CHECK-NEXT:  10200c4:       60 47   bx      r12
// CHECK: <foo>:
// CHECK-NEXT:  10200c6:       ff f7 f9 ff     bl      #-14