[AArch64][SME2] Add multi-vector saturating doubling multiply high intrinsics
[llvm-project.git] / lld / test / ELF / arm-v5-reloc-error.s
blob6b69e3b2d8fd921843672cb92901a9fbd2a0e81c
1 // REQUIRES: arm
2 // RUN: llvm-mc -filetype=obj -triple=armv7a-linux-gnueabi %s -o %t
3 // RUN: echo "SECTIONS { \
4 // RUN: . = SIZEOF_HEADERS; \
5 // RUN: .text_low : { *(.text_low) *(.text_low2) } \
6 // RUN: .text_high 0x2000000 : { *(.text_high) *(.text_high2) } \
7 // RUN: } " > %t.script
8 // RUN: not ld.lld --script %t.script %t -o /dev/null 2>&1 | FileCheck %s
10 // CHECK: error: relocation R_ARM_THM_JUMP24 to far not supported for Armv5 or Armv6 targets
12 // Lie about our build attributes. Our triple is armv7a-linux-gnueabi but
13 // we are claiming to be Armv5. This can also happen with llvm-mc when we
14 // don't have any .eabi_attribute directives in the file or the
15 // --arm-add-build-attributes command line isn't used to add them from the
16 // triple.
17 .eabi_attribute 6, 5 // Tag_cpu_arch 5 = v5TEJ
18 .thumb
19 .syntax unified
20 .section .text_low, "ax", %progbits
21 .thumb
22 .globl _start
23 .type _start, %function
24 _start:
25 b.w far // Will produce relocation not supported in Armv5.
27 .section .text_high, "ax", %progbits
28 .globl far
29 .type far, %function
30 far:
31 bx lr