Home
last modified time | relevance | path

Searched refs:icf (Results 1 – 25 of 96) sorted by relevance

1234

/llvm-project-15.0.7/lld/test/MachO/
H A Dicf-safe.ll5 ; RUN: llc -filetype=obj %s -O3 -o %t/icf-obj.o -enable-machine-outliner=never -mtriple arm64-apple…
6 ; RUN: %lld -arch arm64 -lSystem --icf=safe -dylib -o %t/icf-safe.dylib %t/icf-obj.o
7 ; RUN: %lld -arch arm64 -lSystem --icf=all -dylib -o %t/icf-all.dylib %t/icf-obj.o
8 ; RUN: llvm-objdump %t/icf-safe.dylib -d --macho | FileCheck %s --check-prefix=ICFSAFE
9 ; RUN: llvm-objdump %t/icf-all.dylib -d --macho | FileCheck %s --check-prefix=ICFALL
11 ; RUN: llvm-as %s -o %t/icf-bitcode.o
12 ; RUN: %lld -arch arm64 -lSystem --icf=safe -dylib -o %t/icf-safe-bitcode.dylib %t/icf-bitcode.o
13 ; RUN: %lld -arch arm64 -lSystem --icf=all -dylib -o %t/icf-all-bitcode.dylib %t/icf-bitcode.o
14 ; RUN: llvm-objdump %t/icf-safe-bitcode.dylib -d --macho | FileCheck %s --check-prefix=ICFSAFE
15 ; RUN: llvm-objdump %t/icf-all-bitcode.dylib -d --macho | FileCheck %s --check-prefix=ICFALL
H A Dicf-options.s5 # RUN: %lld -lSystem --icf=all -o %t/all %t/main.o 2>&1 \
7 # RUN: %lld -lSystem --icf=none -o %t/none %t/main.o 2>&1 \
11 # RUN: %lld -lSystem --icf=safe -o %t/safe %t/main.o 2>&1 \
13 # RUN: not %lld -lSystem --icf=junk -o %t/junk %t/main.o 2>&1 \
15 # RUN: %lld -lSystem --icf=all -no_deduplicate -o %t/none2 %t/main.o 2>&1 \
17 # RUN: %lld -lSystem -no_deduplicate --icf=all -o %t/all2 %t/main.o 2>&1 \
21 # DIAG-JUNK: unknown --icf=OPTION `junk', defaulting to `none'
/llvm-project-15.0.7/lld/test/ELF/
H A Dicf-merge.s4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-merge.s -o %t1
5 # RUN: ld.lld %t %t1 -o /dev/null --icf=all --print-icf-sections | FileCheck %s
7 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-merge2.s -o %t2
8 # RUN: ld.lld %t %t2 -o %t3.out --icf=all --print-icf-sections | FileCheck --check-prefix=NOMERGE %s
10 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-merge3.s -o %t3
11 # RUN: ld.lld %t %t3 -o %t3.out --icf=all --print-icf-sections | FileCheck --check-prefix=NOMERGE %s
H A Dicf-safe.s5 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-safe.s -o %t2.o
6 # RUN: ld.lld %t1.o %t2.o -o %t2 --icf=safe --print-icf-sections | FileCheck %s
7 # RUN: ld.lld %t1.o %t2.o -o %t3 --icf=safe --print-icf-sections -shared | FileCheck --check-prefix…
8 # RUN: ld.lld %t1.o %t2.o -o %t3 --icf=safe --print-icf-sections --export-dynamic | FileCheck --che…
9 # RUN: ld.lld %t1.o %t2.o -o %t2 --icf=all --print-icf-sections | FileCheck --check-prefix=ALL %s
10 # RUN: ld.lld %t1.o %t2.o -o %t2 --icf=all --print-icf-sections --export-dynamic | FileCheck --chec…
11 # RUN: ld.lld %t1copy.o -o %t4 --icf=safe 2>&1 | FileCheck --check-prefix=OBJCOPY %s
31 # With --icf=all address-significance implies keep-unique only for rodata, not
H A Dprint-icf.s4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/print-icf.s -o %t1
5 # RUN: ld.lld %t %t1 -o %t2 --icf=all --print-icf-sections | FileCheck %s
6 # RUN: ld.lld %t %t1 -o %t2 --icf=all --no-print-icf-sections --print-icf-sections | FileCheck %s
7 # RUN: ld.lld %t %t1 -o %t2 --icf=all --print-icf-sections --no-print-icf-sections | FileCheck -all…
H A Dicf9.s5 # RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
13 # We do merge rodata if passed --icf-data
14 # RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections --ignore-data-address-equality | \
H A Dicf-keep-unique.s4 # RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections | FileCheck %s
5 # RUN: ld.lld %t -o %t2 --keep-unique f2 --keep-unique f4 --keep-unique f5 --icf=all --print-icf-se…
H A Dicf-none.s4 # RUN: ld.lld %t -o /dev/null --icf=all --icf=none --print-icf-sections | count 0
H A Dicf-eh-frame.s6 # RUN: ld.lld --icf=all %t1.o -o /dev/null --print-icf-sections | FileCheck %s --implicit-check-not…
9 # RUN: ld.lld --icf=all %t2.o -o /dev/null --print-icf-sections | FileCheck %s --implicit-check-not…
H A Dicf-absolute.s4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-absolute.s -o %t2
5 # RUN: ld.lld %t %t2 -o /dev/null --icf=all --print-icf-sections | FileCheck %s
H A Dicf-merge-sec.s4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-merge-sec.s -o %t2
5 # RUN: ld.lld %t %t2 -o /dev/null --icf=all --print-icf-sections | FileCheck %s
H A Dicf-absolute2.s4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-absolute2.s -o %t2
5 # RUN: ld.lld %t %t2 -o /dev/null --icf=all --print-icf-sections | FileCheck -allow-empty %s
H A Ddead-reloc-in-nonalloc.s6 # RUN: ld.lld --icf=all -z dead-reloc-in-nonalloc=.debug_info=0xaaaaaaaa \
10 # RUN: ld.lld --icf=all -z dead-reloc-in-nonalloc=.debug_info=2863311530 \
22 # RUN: ld.lld --icf=all -z dead-reloc-in-nonalloc=.debug_info=0 %t.o -o %tzero
29 # RUN: ld.lld --icf=all -z dead-reloc-in-nonalloc='.debug_i*=0xaaaaaaaa' \
33 # RUN: ld.lld --icf=all -z dead-reloc-in-nonalloc='.debug_info=1' \
H A Dicf-preemptible.s4 # RUN: ld.lld -pie %t.o --icf=all --print-icf-sections -o /dev/null | \
7 # RUN: ld.lld -shared %t.o --icf=all --print-icf-sections -o /dev/null | \
H A Dicf-different-output-sections.s3 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | count 0
H A Dicf-c-identifier.s3 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | count 0
H A Dicf4.s4 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | count 0
H A Dicf5.s4 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | count 0
H A Dicf6.s4 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | count 0
H A Dicf17.s3 # RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
H A Dicf-link-order.s4 # RUN: ld.lld %t.o -o %t --icf=all --print-icf-sections | count 0
H A Dicf12.s4 # RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
H A Dicf-relro.s3 # RUN: ld.lld %t -o /dev/null --icf=all --ignore-data-address-equality --print-icf-sections | FileC…
/llvm-project-15.0.7/lld/test/ELF/linkerscript/
H A Dicf-output-sections.s6 # RUN: ld.lld %t.o --script %t1.script --icf=all --print-icf-sections -o %t | FileCheck --check-pre…
20 # RUN: ld.lld %t.o --script %t2.script --icf=all --print-icf-sections -o %t | FileCheck --check-pre…
33 # RUN: ld.lld %t.o -T %t3.script --icf=all --print-icf-sections -o %t3 | FileCheck --check-prefix=I…
H A Dicf.s5 # RUN: ld.lld %t.o %t.script -o %t --icf=all --print-icf-sections | count 0

1234