xref: /llvm-project/llvm/test/CodeGen/X86/code-model-elf-merge-sections.ll (revision 5b51d45f496f10a74dea5a100cf18b33b45493dc)
1; RUN: llc < %s -relocation-model=pic -filetype=obj -code-model=medium -large-data-threshold=0 -o %t
2; RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=LARGE
3; RUN: llc < %s -relocation-model=pic -filetype=obj -code-model=medium -large-data-threshold=99 -o %t
4; RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=SMALL
5
6; LARGE: .lrodata.str4.4 {{.*}} AMSl
7; LARGE: .lrodata.cst8 {{.*}} AMl
8
9; SMALL: .rodata.str4.4 {{.*}} AMS
10; SMALL: .rodata.cst8 {{.*}} AM
11
12target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
13target triple = "x86_64--linux"
14
15@str = internal unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 0]
16@merge = internal unnamed_addr constant i64 2
17