xref: /llvm-project/llvm/test/CodeGen/X86/section-stats.ll (revision e44ecf76e049474190c33cd737642a0a066fb6b0)
1; REQUIRES: asserts
2; RUN: llc -o /dev/null -filetype=obj -stats %s 2>&1 | FileCheck %s
3
4; CHECK-DAG: 1 elf-object-writer - Total size of SHF_ALLOC text sections
5; CHECK-DAG: 1 elf-object-writer - Total size of SHF_ALLOC read-write sections
6; CHECK-DAG: 512 elf-object-writer - Total size of section headers table
7; CHECK-DAG: 64 elf-object-writer - Total size of ELF headers
8
9target triple = "x86_64-unknown-linux-gnu"
10
11@g = global i8 1
12
13define void @f() {
14    ret void
15}
16