1 ; RUN: llc < %s -relocation-model=static | FileCheck %s -check-prefix=STATIC
2 ; RUN: llc < %s -relocation-model=pic | FileCheck %s -check-prefix=PIC
4 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
5 target triple = "x86_64-unknown-linux-gnu"
7 @a = internal unnamed_addr constant [2 x i32] [i32 1, i32 2]
8 @a1 = unnamed_addr constant [2 x i32] [i32 1, i32 2]
9 @e = internal unnamed_addr constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 16
10 @e1 = unnamed_addr constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 16
11 @p = unnamed_addr constant ptr @a
12 @t = unnamed_addr constant ptr @e
13 @p1 = unnamed_addr constant ptr @a1
14 @t1 = unnamed_addr constant ptr @e1
15 @p2 = internal global ptr @a1
16 @t2 = internal global ptr @e1
17 @p3 = internal global ptr @a
18 @t3 = internal global ptr @e
20 ; STATIC: .section .rodata.cst8,"aM",@progbits,8
23 ; STATIC: .section .rodata.cst16,"aM",@progbits,16
26 ; STATIC: .section .rodata,"a",@progbits
29 ; PIC: .section .rodata.cst8,"aM",@progbits,8
32 ; PIC: .section .rodata.cst16,"aM",@progbits,16
35 ; PIC: .section .data.rel.ro,"aw",@progbits