[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-objcopy / COFF / strip-unneeded.test
blobca3efe4a3138a7b2e02948b159d0ff41ec65bbdd
1 RUN: yaml2obj %p/Inputs/discard-locals.yaml > %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: