Revert "[LoopVectorize] Add support for reverse loops in isDereferenceableAndAlignedI...
[llvm-project.git] / llvm / test / tools / llvm-objcopy / COFF / strip-unneeded.test
blobd6cfeaa0782a3a6df8e0de6e388b2680b6684046
1 RUN: yaml2obj %p/Inputs/discard-locals.yaml -o %t.in.o
3 RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE
5 RUN: llvm-objcopy --strip-unneeded %t.in.o %t.out.o
6 RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefix=SYMBOLS
8 RUN: llvm-objcopy --strip-unneeded-symbol=external_undefined_unreferenced \
9 RUN:              --strip-unneeded-symbol=local_unreferenced \
10 RUN:              --strip-unneeded-symbol=local_undefined_unreferenced \
11 RUN:              --strip-unneeded-symbol='@feat.00' \
12 RUN:               %t.in.o %t.out2.o
13 RUN: cmp %t.out.o %t.out2.o
15 SYMBOLS: SYMBOL TABLE:
16 SYMBOLS-NEXT: external
17 SYMBOLS-NEXT: external_undefined
18 SYMBOLS-PRE-NEXT: external_undefined_unreferenced
19 SYMBOLS-PRE-NEXT: local_unreferenced
20 SYMBOLS-NEXT: local_referenced
21 SYMBOLS-PRE-NEXT: local_undefined_unreferenced
22 SYMBOLS-PRE-NEXT: @feat.00
23 SYMBOLS-EMPTY: