[ELF] Make section member orders consistent
[llvm-project.git] / lld / test / ELF / hexagon-jump-error.s
blob53860b5daf2b16a19fb36e8b95d9297c38a17097
1 # REQUIRES: hexagon
2 # RUN: llvm-mc -filetype=obj -triple=hexagon-unknown-elf %s -o %t.o
3 ## Use --threads=1 to keep emitted warnings across sections sequential.
4 # RUN: not ld.lld %t.o -o /dev/null --threads=1 2>&1 | FileCheck --implicit-check-not "out of range" %s
6 .globl _start
7 .type _start, @function
8 _start:
10 # CHECK: relocation R_HEX_B9_PCREL out of range: 1028 is not in [-1024, 1023]
11 {r0 = #0; jump #1f}
12 .space (1<<10)
13 .section b9, "ax"
16 # CHECK: relocation R_HEX_B13_PCREL out of range: 16388 is not in [-16384, 16383]
17 if (r0==#0) jump:t #1f
18 .space (1<<14)
19 .section b13, "ax"
22 # CHECK: relocation R_HEX_B15_PCREL out of range: 65540 is not in [-65536, 65535]
23 if (p0) jump #1f
24 .space (1<<16)
25 .section b15, "ax"
28 # CHECK: relocation R_HEX_B22_PCREL out of range: 8388612 is not in [-8388608, 8388607]
29 jump #1f
30 .space (1<<23)
31 .section b22, "ax"