From: Rafael Espindola Date: Fri, 11 Mar 2016 14:34:44 +0000 (+0000) Subject: Run dos2unix. NFC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cdd7d5448e952542d34e410b0edc6fa7e4de4ba;p=platform%2Fupstream%2Fllvm.git Run dos2unix. NFC. llvm-svn: 263238 --- diff --git a/lld/test/ELF/Inputs/relocatable-ehframe.s b/lld/test/ELF/Inputs/relocatable-ehframe.s index 68211e1..384aac6 100644 --- a/lld/test/ELF/Inputs/relocatable-ehframe.s +++ b/lld/test/ELF/Inputs/relocatable-ehframe.s @@ -1,14 +1,14 @@ -.section foo1,"ax",@progbits -.cfi_startproc - nop -.cfi_endproc - -.section bar1,"ax",@progbits -.cfi_startproc - nop -.cfi_endproc - -.section dah1,"ax",@progbits -.cfi_startproc - nop -.cfi_endproc +.section foo1,"ax",@progbits +.cfi_startproc + nop +.cfi_endproc + +.section bar1,"ax",@progbits +.cfi_startproc + nop +.cfi_endproc + +.section dah1,"ax",@progbits +.cfi_startproc + nop +.cfi_endproc diff --git a/lld/test/ELF/aarch64-tls-gdle.s b/lld/test/ELF/aarch64-tls-gdle.s index e5f8515..f1c5983 100644 --- a/lld/test/ELF/aarch64-tls-gdle.s +++ b/lld/test/ELF/aarch64-tls-gdle.s @@ -1,26 +1,26 @@ -# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %p/Inputs/aarch64-tls-ie.s -o %ttlsie.o -# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %s -o %tmain.o -# RUN: ld.lld %tmain.o %ttlsie.o -o %tout -# RUN: llvm-objdump -d %tout | FileCheck %s -# RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s -# REQUIRES: aarch64 - -#Local-Dynamic to Initial-Exec relax creates no -#RELOC: Relocations [ -#RELOC-NEXT: ] - -# TCB size = 0x16 and foo is first element from TLS register. -#CHECK: Disassembly of section .text: -#CHECK: _start: -#CHECK: 11000: 00 00 a0 d2 movz x0, #0, lsl #16 -#CHECK: 11004: 00 02 80 f2 movk x0, #0x10 -#CHECK: 11008: 1f 20 03 d5 nop -#CHECK: 1100c: 1f 20 03 d5 nop - -.globl _start -_start: - adrp x0, :tlsdesc:foo - ldr x1, [x0, :tlsdesc_lo12:foo] - add x0, x0, :tlsdesc_lo12:foo - .tlsdesccall foo - blr x1 +# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %p/Inputs/aarch64-tls-ie.s -o %ttlsie.o +# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %s -o %tmain.o +# RUN: ld.lld %tmain.o %ttlsie.o -o %tout +# RUN: llvm-objdump -d %tout | FileCheck %s +# RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s +# REQUIRES: aarch64 + +#Local-Dynamic to Initial-Exec relax creates no +#RELOC: Relocations [ +#RELOC-NEXT: ] + +# TCB size = 0x16 and foo is first element from TLS register. +#CHECK: Disassembly of section .text: +#CHECK: _start: +#CHECK: 11000: 00 00 a0 d2 movz x0, #0, lsl #16 +#CHECK: 11004: 00 02 80 f2 movk x0, #0x10 +#CHECK: 11008: 1f 20 03 d5 nop +#CHECK: 1100c: 1f 20 03 d5 nop + +.globl _start +_start: + adrp x0, :tlsdesc:foo + ldr x1, [x0, :tlsdesc_lo12:foo] + add x0, x0, :tlsdesc_lo12:foo + .tlsdesccall foo + blr x1 diff --git a/lld/test/ELF/aarch64-tls-ie.s b/lld/test/ELF/aarch64-tls-ie.s index 477343c..0462add 100644 --- a/lld/test/ELF/aarch64-tls-ie.s +++ b/lld/test/ELF/aarch64-tls-ie.s @@ -1,49 +1,49 @@ -# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %p/Inputs/aarch64-tls-ie.s -o %tdso.o -# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %tmain.o -# RUN: ld.lld -shared %tdso.o -o %tdso.so -# RUN: ld.lld %tmain.o %tdso.so -o %tout -# RUN: llvm-objdump -d %tout | FileCheck %s -# RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s -# REQUIRES: aarch64 - -#RELOC: Section { -#RELOC: Index: -#RELOC: Name: .got -#RELOC-NEXT: Type: SHT_PROGBITS -#RELOC-NEXT: Flags [ -#RELOC-NEXT: SHF_ALLOC -#RELOC-NEXT: SHF_WRITE -#RELOC-NEXT: ] -#RELOC-NEXT: Address: 0x120B0 -#RELOC-NEXT: Offset: 0x20B0 -#RELOC-NEXT: Size: 16 -#RELOC-NEXT: Link: 0 -#RELOC-NEXT: Info: 0 -#RELOC-NEXT: AddressAlignment: 8 -#RELOC-NEXT: EntrySize: 0 -#RELOC-NEXT: } -#RELOC: Relocations [ -#RELOC-NEXT: Section ({{.*}}) .rela.dyn { -#RELOC-NEXT: 0x120B0 R_AARCH64_TLS_TPREL64 foo 0x0 -#RELOC-NEXT: 0x120B8 R_AARCH64_TLS_TPREL64 bar 0x0 -#RELOC-NEXT: } -#RELOC-NEXT:] - -# Page(0x120B0) - Page(0x11000) = 0x1000 = 4096 -# 0x120B0 & 0xff8 = 0xB0 = 176 -# Page(0x120B8) - Page(0x11000) = 0x1000 = 4096 -# 0x120B8 & 0xff8 = 0xB8 = 184 -#CHECK: Disassembly of section .text: -#CHECK: _start: -#CHECK: 11000: 00 00 00 b0 adrp x0, #4096 -#CHECK: 11004: 00 58 40 f9 ldr x0, [x0, #176] -#CHECK: 11008: 00 00 00 b0 adrp x0, #4096 -#CHECK: 1100c: 00 5c 40 f9 ldr x0, [x0, #184] - -.globl _start -_start: - adrp x0, :gottprel:foo - ldr x0, [x0, #:gottprel_lo12:foo] - - adrp x0, :gottprel:bar - ldr x0, [x0, #:gottprel_lo12:bar] +# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %p/Inputs/aarch64-tls-ie.s -o %tdso.o +# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %tmain.o +# RUN: ld.lld -shared %tdso.o -o %tdso.so +# RUN: ld.lld %tmain.o %tdso.so -o %tout +# RUN: llvm-objdump -d %tout | FileCheck %s +# RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s +# REQUIRES: aarch64 + +#RELOC: Section { +#RELOC: Index: +#RELOC: Name: .got +#RELOC-NEXT: Type: SHT_PROGBITS +#RELOC-NEXT: Flags [ +#RELOC-NEXT: SHF_ALLOC +#RELOC-NEXT: SHF_WRITE +#RELOC-NEXT: ] +#RELOC-NEXT: Address: 0x120B0 +#RELOC-NEXT: Offset: 0x20B0 +#RELOC-NEXT: Size: 16 +#RELOC-NEXT: Link: 0 +#RELOC-NEXT: Info: 0 +#RELOC-NEXT: AddressAlignment: 8 +#RELOC-NEXT: EntrySize: 0 +#RELOC-NEXT: } +#RELOC: Relocations [ +#RELOC-NEXT: Section ({{.*}}) .rela.dyn { +#RELOC-NEXT: 0x120B0 R_AARCH64_TLS_TPREL64 foo 0x0 +#RELOC-NEXT: 0x120B8 R_AARCH64_TLS_TPREL64 bar 0x0 +#RELOC-NEXT: } +#RELOC-NEXT:] + +# Page(0x120B0) - Page(0x11000) = 0x1000 = 4096 +# 0x120B0 & 0xff8 = 0xB0 = 176 +# Page(0x120B8) - Page(0x11000) = 0x1000 = 4096 +# 0x120B8 & 0xff8 = 0xB8 = 184 +#CHECK: Disassembly of section .text: +#CHECK: _start: +#CHECK: 11000: 00 00 00 b0 adrp x0, #4096 +#CHECK: 11004: 00 58 40 f9 ldr x0, [x0, #176] +#CHECK: 11008: 00 00 00 b0 adrp x0, #4096 +#CHECK: 1100c: 00 5c 40 f9 ldr x0, [x0, #184] + +.globl _start +_start: + adrp x0, :gottprel:foo + ldr x0, [x0, #:gottprel_lo12:foo] + + adrp x0, :gottprel:bar + ldr x0, [x0, #:gottprel_lo12:bar] diff --git a/lld/test/ELF/aarch64-tls-iele.s b/lld/test/ELF/aarch64-tls-iele.s index 42ee90a..f5636bc 100644 --- a/lld/test/ELF/aarch64-tls-iele.s +++ b/lld/test/ELF/aarch64-tls-iele.s @@ -1,21 +1,21 @@ -# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %p/Inputs/aarch64-tls-ie.s -o %ttlsie.o -# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %s -o %tmain.o -# RUN: ld.lld %tmain.o %ttlsie.o -o %tout -# RUN: llvm-objdump -d %tout | FileCheck %s -# RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s -# REQUIRES: aarch64 - -#Local-Dynamic to Initial-Exec relax creates no -#RELOC: Relocations [ -#RELOC-NEXT: ] - -# TCB size = 0x16 and foo is first element from TLS register. -#CHECK: Disassembly of section .text: -#CHECK: _start: -#CHECK: 11000: 00 00 a0 d2 movz x0, #0, lsl #16 -#CHECK: 11004: 00 02 80 f2 movk x0, #0x10 - -.globl _start -_start: - adrp x0, :gottprel:foo - ldr x0, [x0, :gottprel_lo12:foo] +# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %p/Inputs/aarch64-tls-ie.s -o %ttlsie.o +# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %s -o %tmain.o +# RUN: ld.lld %tmain.o %ttlsie.o -o %tout +# RUN: llvm-objdump -d %tout | FileCheck %s +# RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s +# REQUIRES: aarch64 + +#Local-Dynamic to Initial-Exec relax creates no +#RELOC: Relocations [ +#RELOC-NEXT: ] + +# TCB size = 0x16 and foo is first element from TLS register. +#CHECK: Disassembly of section .text: +#CHECK: _start: +#CHECK: 11000: 00 00 a0 d2 movz x0, #0, lsl #16 +#CHECK: 11004: 00 02 80 f2 movk x0, #0x10 + +.globl _start +_start: + adrp x0, :gottprel:foo + ldr x0, [x0, :gottprel_lo12:foo] diff --git a/lld/test/ELF/aarch64-tls-le.s b/lld/test/ELF/aarch64-tls-le.s index 53000b6..22bd0ef 100644 --- a/lld/test/ELF/aarch64-tls-le.s +++ b/lld/test/ELF/aarch64-tls-le.s @@ -1,31 +1,31 @@ -# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %tmain.o -# RUN: ld.lld %tmain.o -o %tout -# RUN: llvm-objdump -d %tout | FileCheck %s -# RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s -# REQUIRES: aarch64 - -#Local-Dynamic to Initial-Exec relax creates no -#RELOC: Relocations [ -#RELOC-NEXT: ] - -.globl _start -_start: - mrs x0, TPIDR_EL0 - add x0, x0, :tprel_hi12:v1 - add x0, x0, :tprel_lo12_nc:v1 - -# TCB size = 0x16 and foo is first element from TLS register. -#CHECK: Disassembly of section .text: -#CHECK: _start: -#CHECK: 11000: 40 d0 3b d5 mrs x0, TPIDR_EL0 -#CHECK: 11004: 00 00 00 91 add x0, x0, #0 -#CHECK: 11008: 00 40 00 91 add x0, x0, #16 - -.type v1,@object -.section .tbss,"awT",@nobits -.globl v1 -.p2align 2 -v1: -.word 0 -.size v1, 4 - +# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %tmain.o +# RUN: ld.lld %tmain.o -o %tout +# RUN: llvm-objdump -d %tout | FileCheck %s +# RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s +# REQUIRES: aarch64 + +#Local-Dynamic to Initial-Exec relax creates no +#RELOC: Relocations [ +#RELOC-NEXT: ] + +.globl _start +_start: + mrs x0, TPIDR_EL0 + add x0, x0, :tprel_hi12:v1 + add x0, x0, :tprel_lo12_nc:v1 + +# TCB size = 0x16 and foo is first element from TLS register. +#CHECK: Disassembly of section .text: +#CHECK: _start: +#CHECK: 11000: 40 d0 3b d5 mrs x0, TPIDR_EL0 +#CHECK: 11004: 00 00 00 91 add x0, x0, #0 +#CHECK: 11008: 00 40 00 91 add x0, x0, #16 + +.type v1,@object +.section .tbss,"awT",@nobits +.globl v1 +.p2align 2 +v1: +.word 0 +.size v1, 4 +