[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / ppc32-tls-le.s
blobe4790eb0e16ebc0113a863d14e4ba70d54caba5c
1 # REQUIRES: ppc
2 # RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.o
3 # RUN: ld.lld %t.o -o %t
4 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=LE %s
6 ## a@tprel = st_value(a)-0x7000 = -28664
7 ## b@tprel = st_value(b)-0x7000 = -28660
8 # LE: addis 9, 2, 0
9 # LE-NEXT: addi 9, 9, -28664
10 # LE-NEXT: addis 10, 2, 0
11 # LE-NEXT: lwz 9, -28660(10)
13 addis 9, 2, a@tprel@ha
14 addi 9, 9, a@tprel@l
16 addis 10, 2, b@tprel@ha
17 lwz 9,b@tprel@l(10)
19 .section .tbss
20 .globl a
21 .zero 8
23 .zero 4