File: aarch64-jump26-thunk.s

package info (click to toggle)
llvm-toolchain-6.0 1%3A6.0.1-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 598,080 kB
  • sloc: cpp: 3,046,253; ansic: 595,057; asm: 271,965; python: 128,926; objc: 106,554; sh: 21,906; lisp: 10,191; pascal: 6,094; ml: 5,544; perl: 5,265; makefile: 2,227; cs: 2,027; xml: 686; php: 212; csh: 117
file content (20 lines) | stat: -rw-r--r-- 746 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %S/Inputs/abs.s -o %tabs
// RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %s -o %t
// RUN: ld.lld %t %tabs -o %t2 2>&1
// RUN: llvm-objdump -d -triple=aarch64-pc-freebsd %t2 | FileCheck %s
// REQUIRES: aarch64

.text
.globl _start
_start:
    b big

// CHECK: Disassembly of section .text:
// CHECK-NEXT: _start:
// CHECK-NEXT:    20000:        02 00 00 14     b       #8
// CHECK: __AArch64AbsLongThunk_big:
// CHECK-NEXT:    20008:        50 00 00 58     ldr     x16, #8
// CHECK-NEXT:    2000c:        00 02 1f d6     br      x16
// CHECK: $d:
// CHECK-NEXT:    20010:        00 00 00 00     .word   0x00000000
// CHECK-NEXT:    20014:        10 00 00 00     .word   0x00000010