1// REQUIRES: zlib 2// REQUIRES: x86-registered-target 3 4// RUN: %clang -cc1as -triple i686 --compress-debug-sections %s -o /dev/null 5// RUN: %clang -cc1as -triple i686 -compress-debug-sections=zlib %s -o /dev/null 6 7// RUN: %if zstd %{ %clang -cc1as -triple x86_64 -filetype obj -compress-debug-sections=zstd %s -o %t %} 8// RUN: %if zstd %{ llvm-readelf -S -x .debug_str %t | FileCheck %s --check-prefix=ZSTD %} 9 10// ZSTD: .debug_str PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] 01 MSC 0 0 8 11// ZSTD: Hex dump of section '.debug_str': 12// ZSTD: 0000 02000000 00000000 13 14.section .debug_str,"MS",@progbits,1 15.asciz "perfectly compressable data sample ******************************************" 16