[test] Add explicit dso_local to function declarations in static relocation model...
authorFangrui Song <i@maskray.me>
Sat, 5 Dec 2020 21:55:48 +0000 (13:55 -0800)
committerFangrui Song <i@maskray.me>
Sat, 5 Dec 2020 22:54:37 +0000 (14:54 -0800)
commit6b6c3aaeacfdc4a482de4af41719b0a4b50aeadf
tree1e6902734e048623fa540a6a76b038f138b46423
parentbfda69416c6d0a76b40644b1b0cbc1cbca254a61
[test] Add explicit dso_local to function declarations in static relocation model tests

They are currently implicit because TargetMachine::shouldAssumeDSOLocal implies
dso_local.

For such function declarations, clang -fno-pic emits the dso_local specifier.
Adding explicit dso_local makes these tests align with the clang behavior and
helps implementing an option to use GOT indirection when taking the address of a
function symbol in -fno-pic (to avoid a canonical PLT entry (SHN_UNDEF with
non-zero st_value)).
53 files changed:
llvm/test/CodeGen/AArch64/extern-weak.ll
llvm/test/CodeGen/AArch64/funcptr_cast.ll
llvm/test/CodeGen/AArch64/tagged-globals-static.ll
llvm/test/CodeGen/SystemZ/la-01.ll
llvm/test/CodeGen/X86/add.ll
llvm/test/CodeGen/X86/avx-vzeroupper.ll
llvm/test/CodeGen/X86/avx512-i1test.ll
llvm/test/CodeGen/X86/bmi.ll
llvm/test/CodeGen/X86/bool-zext.ll
llvm/test/CodeGen/X86/btq.ll
llvm/test/CodeGen/X86/callbr-asm-branch-folding.ll
llvm/test/CodeGen/X86/cmp.ll
llvm/test/CodeGen/X86/conditional-tailcall.ll
llvm/test/CodeGen/X86/copy-eflags.ll
llvm/test/CodeGen/X86/dagcombine-shifts.ll
llvm/test/CodeGen/X86/fold-rmw-ops.ll
llvm/test/CodeGen/X86/fp-strict-scalar-cmp.ll
llvm/test/CodeGen/X86/fp-une-cmp.ll
llvm/test/CodeGen/X86/fp128-i128.ll
llvm/test/CodeGen/X86/lvi-hardening-indirectbr.ll
llvm/test/CodeGen/X86/memcmp-minsize.ll
llvm/test/CodeGen/X86/memcmp-more-load-pairs.ll
llvm/test/CodeGen/X86/memcmp-optsize.ll
llvm/test/CodeGen/X86/memcmp-pgso.ll
llvm/test/CodeGen/X86/memcmp.ll
llvm/test/CodeGen/X86/mov-zero-to-xor.ll
llvm/test/CodeGen/X86/musttail-tailcc.ll
llvm/test/CodeGen/X86/neg_cmp.ll
llvm/test/CodeGen/X86/nomerge.ll
llvm/test/CodeGen/X86/peep-test-4.ll
llvm/test/CodeGen/X86/pr37063.ll
llvm/test/CodeGen/X86/pr38865.ll
llvm/test/CodeGen/X86/pr47024.ll
llvm/test/CodeGen/X86/rd-mod-wr-eflags.ll
llvm/test/CodeGen/X86/retpoline-external.ll
llvm/test/CodeGen/X86/shrink-compare-pgso.ll
llvm/test/CodeGen/X86/shrink-compare.ll
llvm/test/CodeGen/X86/shrinkwrap-callbr.ll
llvm/test/CodeGen/X86/sibcall-win64.ll
llvm/test/CodeGen/X86/sibcall.ll
llvm/test/CodeGen/X86/sqrt-partial.ll
llvm/test/CodeGen/X86/sse-fcopysign.ll
llvm/test/CodeGen/X86/statepoint-vreg-details.ll
llvm/test/CodeGen/X86/statepoint-vreg-unlimited-tied-opnds.ll
llvm/test/CodeGen/X86/tail-call-deref.ll
llvm/test/CodeGen/X86/tail-dup-asm-goto.ll
llvm/test/CodeGen/X86/tail-opts.ll
llvm/test/CodeGen/X86/tailcall-assume.ll
llvm/test/CodeGen/X86/tailcall-extract.ll
llvm/test/CodeGen/X86/tailcall-tailcc.ll
llvm/test/CodeGen/X86/win64_sibcall.ll
llvm/test/CodeGen/X86/xor-icmp.ll
llvm/test/DebugInfo/X86/live-debug-values-remove-range.ll