[lld-macho][nfc] Convert tabs to spaces

This commit is contained in:
Jez Ng 2021-04-11 23:23:37 -04:00
parent bb346146a5
commit 74283fc853
15 changed files with 71 additions and 71 deletions

View File

@ -12,10 +12,10 @@
# RUN: llvm-objdump --macho -d --no-show-raw-insn --section-headers %t/main | FileCheck %s --check-prefix=DYLIB # RUN: llvm-objdump --macho -d --no-show-raw-insn --section-headers %t/main | FileCheck %s --check-prefix=DYLIB
# STATIC-LABEL: _main: # STATIC-LABEL: _main:
# STATIC-NEXT: adrp x8, [[#]] ; 0x[[#%x,PAGE:]] # STATIC-NEXT: adrp x8, [[#]] ; 0x[[#%x,PAGE:]]
# STATIC-NEXT: add x8, x8, #[[#%u,FOO_OFF:]] # STATIC-NEXT: add x8, x8, #[[#%u,FOO_OFF:]]
# STATIC-NEXT: adrp x8, [[#]] ; 0x[[#PAGE]] # STATIC-NEXT: adrp x8, [[#]] ; 0x[[#PAGE]]
# STATIC-NEXT: add x8, x8, #[[#%u,BAR_OFF:]] # STATIC-NEXT: add x8, x8, #[[#%u,BAR_OFF:]]
# STATIC-NEXT: ret # STATIC-NEXT: ret
# STATIC-LABEL: SYMBOL TABLE: # STATIC-LABEL: SYMBOL TABLE:
@ -23,10 +23,10 @@
# STATIC-DAG: {{0*}}[[#%x,PAGE+BAR_OFF]] g F __TEXT,__text _bar # STATIC-DAG: {{0*}}[[#%x,PAGE+BAR_OFF]] g F __TEXT,__text _bar
# DYLIB-LABEL: _main: # DYLIB-LABEL: _main:
# DYLIB-NEXT: adrp x8, [[#]] ; 0x[[#%x,GOT:]] # DYLIB-NEXT: adrp x8, [[#]] ; 0x[[#%x,GOT:]]
# DYLIB-NEXT: ldr x8, [x8, #8] ; literal pool symbol address: _foo # DYLIB-NEXT: ldr x8, [x8, #8] ; literal pool symbol address: _foo
# DYLIB-NEXT: adrp x8, [[#]] ; 0x[[#GOT]] # DYLIB-NEXT: adrp x8, [[#]] ; 0x[[#GOT]]
# DYLIB-NEXT: ldr x8, [x8] ; literal pool symbol address: _bar # DYLIB-NEXT: ldr x8, [x8] ; literal pool symbol address: _bar
# DYLIB-NEXT: ret # DYLIB-NEXT: ret
# DYLIB-NEXT: Sections: # DYLIB-NEXT: Sections:
# DYLIB-NEXT: Idx Name Size VMA Type # DYLIB-NEXT: Idx Name Size VMA Type
@ -36,10 +36,10 @@
.globl _main, _foo, _bar .globl _main, _foo, _bar
.p2align 2 .p2align 2
_main: _main:
adrp x8, _foo@GOTPAGE adrp x8, _foo@GOTPAGE
ldr x8, [x8, _foo@GOTPAGEOFF] ldr x8, [x8, _foo@GOTPAGEOFF]
adrp x8, _bar@GOTPAGE adrp x8, _bar@GOTPAGE
ldr x8, [x8, _bar@GOTPAGEOFF] ldr x8, [x8, _bar@GOTPAGEOFF]
ret ret
#--- foobar.s #--- foobar.s

View File

@ -8,9 +8,9 @@
## POINTER_TO_GOT, we should still be able to relax this GOT_LOAD reference to ## POINTER_TO_GOT, we should still be able to relax this GOT_LOAD reference to
## it. ## it.
# CHECK: _main: # CHECK: _main:
# CHECK-NEXT: adrp x8, [[#]] ; # CHECK-NEXT: adrp x8, [[#]] ;
# CHECK-NEXT: ldr x8, [x8] ; literal pool symbol address: _foo # CHECK-NEXT: ldr x8, [x8] ; literal pool symbol address: _foo
# CHECK-NEXT: ret # CHECK-NEXT: ret
# CHECK: Idx Name Size VMA Type # CHECK: Idx Name Size VMA Type
# CHECK: [[#]] __got 00000008 0000000100004000 DATA # CHECK: [[#]] __got 00000008 0000000100004000 DATA

View File

@ -13,17 +13,17 @@
# CHECK-LABEL: _foo: # CHECK-LABEL: _foo:
## BRANCH26 relocations are 4-byte aligned, so 123 is truncated to 120 ## BRANCH26 relocations are 4-byte aligned, so 123 is truncated to 120
# CHECK-NEXT: bl 0x[[#BAR+120]] # CHECK-NEXT: bl 0x[[#BAR+120]]
## PAGE21 relocations are aligned to 4096 bytes ## PAGE21 relocations are aligned to 4096 bytes
# CHECK-NEXT: adrp x2, [[#]] ; 0x[[#BAZ+4096-128]] # CHECK-NEXT: adrp x2, [[#]] ; 0x[[#BAZ+4096-128]]
# CHECK-NEXT: ldr x2, [x2, #128] # CHECK-NEXT: ldr x2, [x2, #128]
# CHECK-NEXT: adrp x3, 8 ; 0x8000 # CHECK-NEXT: adrp x3, 8 ; 0x8000
# CHECK-NEXT: ldr q0, [x3, #144] # CHECK-NEXT: ldr q0, [x3, #144]
# CHECK-NEXT: ret # CHECK-NEXT: ret
# CHECK-LABEL: Contents of (__DATA_CONST,__const) section # CHECK-LABEL: Contents of (__DATA_CONST,__const) section
# CHECK: [[#PTR_1]] {{0*}}[[#BAZ]] 00000000 00000000 00000000 # CHECK: [[#PTR_1]] {{0*}}[[#BAZ]] 00000000 00000000 00000000
# CHECK: [[#PTR_2]] {{0*}}[[#BAZ+123]] 00000000 00000000 00000000 # CHECK: [[#PTR_2]] {{0*}}[[#BAZ+123]] 00000000 00000000 00000000
.text .text
.globl _foo, _bar, _baz, _quux .globl _foo, _bar, _baz, _quux

View File

@ -8,12 +8,12 @@
# CHECK: (__TEXT,__text) section # CHECK: (__TEXT,__text) section
# CHECK-NEXT: _main: # CHECK-NEXT: _main:
# CHECK-NEXT: movq {{.*}}(%rip), %rax ## literal pool symbol address: _foo # CHECK-NEXT: movq {{.*}}(%rip), %rax ## literal pool symbol address: _foo
# CHECK-NEXT: movq {{.*}}(%rip), %rax ## literal pool symbol address: _bar # CHECK-NEXT: movq {{.*}}(%rip), %rax ## literal pool symbol address: _bar
# CHECK-NEXT: movq {{.*}}(%rip), %rax ## literal pool symbol address: _foo_tlv # CHECK-NEXT: movq {{.*}}(%rip), %rax ## literal pool symbol address: _foo_tlv
# CHECK-NEXT: movq {{.*}}(%rip), %rax ## literal pool symbol address: _bar_tlv # CHECK-NEXT: movq {{.*}}(%rip), %rax ## literal pool symbol address: _bar_tlv
# CHECK-NEXT: callq {{.*}} ## symbol stub for: _foo_fn # CHECK-NEXT: callq {{.*}} ## symbol stub for: _foo_fn
# CHECK-NEXT: callq {{.*}} ## symbol stub for: _bar_fn # CHECK-NEXT: callq {{.*}} ## symbol stub for: _bar_fn
# CHECK-NEXT: retq # CHECK-NEXT: retq
# CHECK: Indirect symbols for (__TEXT,__stubs) 2 entries # CHECK: Indirect symbols for (__TEXT,__stubs) 2 entries

View File

@ -11,7 +11,7 @@
# CHECK: error: GOT_LOAD relocation requires that variable not be thread-local for `_foo' in [[FILE]]:(__text) # CHECK: error: GOT_LOAD relocation requires that variable not be thread-local for `_foo' in [[FILE]]:(__text)
#--- libtlv.s #--- libtlv.s
.section __DATA,__thread_vars,thread_local_variables .section __DATA,__thread_vars,thread_local_variables
.globl _foo .globl _foo
_foo: _foo:

View File

@ -9,7 +9,7 @@
_main: _main:
ret ret
.section __DATA,__thread_vars,thread_local_variables .section __DATA,__thread_vars,thread_local_variables
.globl _foo, _bar .globl _foo, _bar
_foo: _foo:
movq _bar@GOTPCREL(%rip), %rax movq _bar@GOTPCREL(%rip), %rax

View File

@ -10,5 +10,5 @@ _main:
leaq _foo@TLVP(%rip), %rax leaq _foo@TLVP(%rip), %rax
ret ret
.section __DATA,__thread_vars,thread_local_variables .section __DATA,__thread_vars,thread_local_variables
_foo: _foo:

View File

@ -10,18 +10,18 @@
; RUN: llvm-objdump -d --section="__text" --no-leading-addr --no-show-raw-insn %t.dylib | FileCheck %s --check-prefix=NO-FMA ; RUN: llvm-objdump -d --section="__text" --no-leading-addr --no-show-raw-insn %t.dylib | FileCheck %s --check-prefix=NO-FMA
; FMA: <_foo>: ; FMA: <_foo>:
; FMA-NEXT: vrcpss %xmm0, %xmm0, %xmm1 ; FMA-NEXT: vrcpss %xmm0, %xmm0, %xmm1
; FMA-NEXT: vfmsub213ss 7(%rip), %xmm1, %xmm0 ; FMA-NEXT: vfmsub213ss 7(%rip), %xmm1, %xmm0
; FMA-NEXT: vfnmadd132ss %xmm1, %xmm1, %xmm0 ; FMA-NEXT: vfnmadd132ss %xmm1, %xmm1, %xmm0
; FMA-NEXT: retq ; FMA-NEXT: retq
; NO-FMA: <_foo>: ; NO-FMA: <_foo>:
; NO-FMA-NEXT: vrcpss %xmm0, %xmm0, %xmm1 ; NO-FMA-NEXT: vrcpss %xmm0, %xmm0, %xmm1
; NO-FMA-NEXT: vmulss %xmm1, %xmm0, %xmm0 ; NO-FMA-NEXT: vmulss %xmm1, %xmm0, %xmm0
; NO-FMA-NEXT: vmovss 16(%rip), %xmm2 ; NO-FMA-NEXT: vmovss 16(%rip), %xmm2
; NO-FMA-NEXT: vsubss %xmm0, %xmm2, %xmm0 ; NO-FMA-NEXT: vsubss %xmm0, %xmm2, %xmm0
; NO-FMA-NEXT: vmulss %xmm0, %xmm1, %xmm0 ; NO-FMA-NEXT: vmulss %xmm0, %xmm1, %xmm0
; NO-FMA-NEXT: vaddss %xmm0, %xmm1, %xmm0 ; NO-FMA-NEXT: vaddss %xmm0, %xmm1, %xmm0
; NO-FMA-NEXT: retq ; NO-FMA-NEXT: retq
target triple = "x86_64-apple-darwin" target triple = "x86_64-apple-darwin"

View File

@ -40,11 +40,11 @@
_OBJC_CLASS_$_MyObject: _OBJC_CLASS_$_MyObject:
#--- has-objc-category.s #--- has-objc-category.s
.section __DATA,__objc_catlist .section __DATA,__objc_catlist
.quad 0x1234 .quad 0x1234
#--- has-swift.s #--- has-swift.s
.section __TEXT,__swift .section __TEXT,__swift
.quad 0x1234 .quad 0x1234
#--- no-objc.s #--- no-objc.s

View File

@ -27,7 +27,7 @@
# CHECK-DAG: __DATA_CONST __got 0x{{0*}}[[#%x, BAZ]] pointer 0 libtlv _baz # CHECK-DAG: __DATA_CONST __got 0x{{0*}}[[#%x, BAZ]] pointer 0 libtlv _baz
#--- libtlv.s #--- libtlv.s
.section __DATA,__thread_vars,thread_local_variables .section __DATA,__thread_vars,thread_local_variables
.globl _foo, _bar, _baz .globl _foo, _bar, _baz
_foo: _foo:
_bar: _bar:

View File

@ -76,24 +76,24 @@ _main:
mov _bar@TLVP(%rip), %rax mov _bar@TLVP(%rip), %rax
ret ret
.section __DATA,__thread_data,thread_local_regular .section __DATA,__thread_data,thread_local_regular
_foo$tlv$init: _foo$tlv$init:
.quad 123 .quad 123
.section __DATA,more_thread_data,thread_local_regular .section __DATA,more_thread_data,thread_local_regular
_bar$tlv$init: _bar$tlv$init:
.quad 123 .quad 123
.section __DATA,__thread_vars,thread_local_variables .section __DATA,__thread_vars,thread_local_variables
.globl _foo, _bar .globl _foo, _bar
_foo: _foo:
.quad __tlv_bootstrap .quad __tlv_bootstrap
.quad 0 .quad 0
.quad _foo$tlv$init .quad _foo$tlv$init
_bar: _bar:
.quad __tlv_bootstrap .quad __tlv_bootstrap
.quad 0 .quad 0
.quad _bar$tlv$init .quad _bar$tlv$init
#--- tbss.s #--- tbss.s
@ -106,12 +106,12 @@ _f:
.tbss _baz$tlv$init, 8, 3 .tbss _baz$tlv$init, 8, 3
.tbss _qux$tlv$init, 8, 3 .tbss _qux$tlv$init, 8, 3
.section __DATA,__thread_vars,thread_local_variables .section __DATA,__thread_vars,thread_local_variables
_baz: _baz:
.quad __tlv_bootstrap .quad __tlv_bootstrap
.quad 0 .quad 0
.quad _baz$tlv$init .quad _baz$tlv$init
_qux: _qux:
.quad __tlv_bootstrap .quad __tlv_bootstrap
.quad 0 .quad 0
.quad _qux$tlv$init .quad _qux$tlv$init

View File

@ -19,12 +19,12 @@
# CHECK-NEXT: {{[0-9a-f]+}} {{[0-9a-f ]*[1-9a-f]+[0-9a-f ]*}} # CHECK-NEXT: {{[0-9a-f]+}} {{[0-9a-f ]*[1-9a-f]+[0-9a-f ]*}}
# CHECK: <_main>: # CHECK: <_main>:
# CHECK-NEXT: movq [[#]](%rip), %rax # [[#%X,WEAK_DY_GOT_ADDR:]] # CHECK-NEXT: movq [[#]](%rip), %rax # [[#%X,WEAK_DY_GOT_ADDR:]]
# CHECK-NEXT: movq [[#]](%rip), %rax # [[#%X,WEAK_EXT_GOT_ADDR:]] # CHECK-NEXT: movq [[#]](%rip), %rax # [[#%X,WEAK_EXT_GOT_ADDR:]]
# CHECK-NEXT: leaq [[#]](%rip), %rax # [[#%X,WEAK_INT_GOT_ADDR:]] # CHECK-NEXT: leaq [[#]](%rip), %rax # [[#%X,WEAK_INT_GOT_ADDR:]]
# CHECK-NEXT: movq [[#]](%rip), %rax # [[#%X,WEAK_TLV_ADDR:]] # CHECK-NEXT: movq [[#]](%rip), %rax # [[#%X,WEAK_TLV_ADDR:]]
# CHECK-NEXT: movq [[#]](%rip), %rax # [[#%X,WEAK_DY_TLV_ADDR:]] # CHECK-NEXT: movq [[#]](%rip), %rax # [[#%X,WEAK_DY_TLV_ADDR:]]
# CHECK-NEXT: leaq [[#]](%rip), %rax # [[#%X,WEAK_INT_TLV_ADDR:]] # CHECK-NEXT: leaq [[#]](%rip), %rax # [[#%X,WEAK_INT_TLV_ADDR:]]
# CHECK-NEXT: callq 0x{{[0-9a-f]*}} # CHECK-NEXT: callq 0x{{[0-9a-f]*}}
# CHECK-NEXT: callq 0x{{[0-9a-f]*}} # CHECK-NEXT: callq 0x{{[0-9a-f]*}}
# CHECK-NEXT: callq 0x{{[0-9a-f]*}} # CHECK-NEXT: callq 0x{{[0-9a-f]*}}

View File

@ -101,7 +101,7 @@ _foo_fn:
_weak_foo: _weak_foo:
_weak_foo_fn: _weak_foo_fn:
.section __DATA,__thread_vars,thread_local_variables .section __DATA,__thread_vars,thread_local_variables
.globl _foo_tlv .globl _foo_tlv
_foo_tlv: _foo_tlv:

View File

@ -61,7 +61,7 @@
# WHYOBJCALLFORCE-DAG: -force_load forced load of lib.a(objc.o) # WHYOBJCALLFORCE-DAG: -force_load forced load of lib.a(objc.o)
#--- objc.s #--- objc.s
.section __DATA,__objc_catlist .section __DATA,__objc_catlist
.quad 0x1234 .quad 0x1234
#--- foo.s #--- foo.s

View File

@ -6,7 +6,7 @@
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
# RUN: %lld -o %t %t.o # RUN: %lld -o %t %t.o
# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
# CHECK: leaq [[#]](%rip), %rax # {{.*}} <_foo> # CHECK: leaq [[#]](%rip), %rax # {{.*}} <_foo>
.globl _main, _foo .globl _main, _foo