]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/COFF/arm64-branch-range.test
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / COFF / arm64-branch-range.test
1 // REQUIRES: aarch64
2
3 // RUN: echo -e '.globl _start\n _start:\n bl too_far26\n' > %t.main26.s
4 // RUN: echo -e '.globl _start\n _start:\n b.ne too_far19\n' > %t.main19.s
5 // RUN: echo -e '.globl _start\n _start:\n tbz x0, #0, too_far14\n' > %t.main14.s
6
7 // RUN: llvm-mc -filetype=obj -triple=aarch64-windows %t.main26.s -o %t.main26.obj
8 // RUN: llvm-mc -filetype=obj -triple=aarch64-windows %t.main19.s -o %t.main19.obj
9 // RUN: llvm-mc -filetype=obj -triple=aarch64-windows %t.main14.s -o %t.main14.obj
10 // RUN: llvm-mc -filetype=obj -triple=aarch64-windows %S/Inputs/far-arm64-abs.s -o %t.far.obj
11
12 // RUN: not lld-link -base:0x10000 -entry:_start -subsystem:console %t.main26.obj %t.far.obj -out:%t.exe 2>&1 | FileCheck %s
13 // RUN: not lld-link -base:0x10000 -entry:_start -subsystem:console %t.main19.obj %t.far.obj -out:%t.exe 2>&1 | FileCheck %s
14 // RUN: not lld-link -base:0x10000 -entry:_start -subsystem:console %t.main14.obj %t.far.obj -out:%t.exe 2>&1 | FileCheck %s
15
16 // CHECK: relocation out of range