aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Misc/cc1as-compress.s
blob: 4c81c5ca0f7f26f5770ce77b54a5fba7b402c64c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// REQUIRES: zlib
// REQUIRES: x86-registered-target

// RUN: %clang -cc1as -triple i686 --compress-debug-sections %s -o /dev/null
// RUN: %clang -cc1as -triple i686 -compress-debug-sections=zlib %s -o /dev/null

// RUN: %if zstd %{ %clang -cc1as -triple x86_64 -filetype obj -compress-debug-sections=zstd %s -o %t %}
// RUN: %if zstd %{ llvm-readelf -S -x .debug_str %t | FileCheck %s --check-prefix=ZSTD %}

// ZSTD: .debug_str    PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] 01 MSC 0 0  8
// ZSTD: Hex dump of section '.debug_str':
// ZSTD: 0000 02000000 00000000

.section        .debug_str,"MS",@progbits,1
.asciz  "perfectly compressable data sample ******************************************"