Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / compress-debug-sections-zstd.s
blob97ab192a52f4292070424ec1913153b6be5927b1
1 # REQUIRES: x86, zstd
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 --compress-debug-sections=zstd %s -o %t.o
5 # RUN: ld.lld %t.o -o %t.so -shared
6 # RUN: llvm-readelf -S -x .debug_str %t.so | FileCheck %s
8 # CHECK: .debug_str PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] 01 MS 0 0 1
9 # CHECK: Hex dump of section '.debug_str':
10 # CHECK-NEXT: 0x00000000 73686f72 7420756e 7369676e 65642069 short unsigned i
11 # CHECK-NEXT: 0x00000010 6e740075 6e736967 6e656420 63686172 nt.unsigned char
12 # CHECK-NEXT: 0x00000020 00636861 72006c6f 6e672075 6e736967 .char.long unsig
13 # CHECK-NEXT: 0x00000030 6e656420 696e7400 756e7369 676e6564 ned int.unsigned
14 # CHECK-NEXT: 0x00000040 20696e74 00 int.
16 # RUN: ld.lld %t.o -o %t.so -shared --compress-debug-sections=zstd
17 # RUN: llvm-readelf -S %t.so | FileCheck %s --check-prefix=OUTPUT-SEC
18 # RUN: llvm-objcopy --decompress-debug-sections %t.so
19 # RUN: llvm-readelf -S -x .debug_str %t.so | FileCheck %s
21 # OUTPUT-SEC: .debug_str PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] 01 MSC 0 0 1
23 .section .debug_str,"MS",@progbits,1
24 .LASF2:
25 .string "short unsigned int"
26 .LASF3:
27 .string "unsigned int"
28 .LASF0:
29 .string "long unsigned int"
30 .LASF8:
31 .string "char"
32 .LASF1:
33 .string "unsigned char"