47 lines · plain
1; RUN: llc < %s -relocation-model=static | FileCheck %s -check-prefix=STATIC2; RUN: llc < %s -relocation-model=pic | FileCheck %s -check-prefix=PIC3 4target 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"5target triple = "x86_64-unknown-linux-gnu"6 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 1610@e1 = unnamed_addr constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 1611@p = unnamed_addr constant ptr @a12@t = unnamed_addr constant ptr @e13@p1 = unnamed_addr constant ptr @a114@t1 = unnamed_addr constant ptr @e115@p2 = internal global ptr @a116@t2 = internal global ptr @e117@p3 = internal global ptr @a18@t3 = internal global ptr @e19 20; STATIC: .section .rodata.cst8,"aM",@progbits,821; STATIC: a:22; STATIC: a1:23; STATIC: .section .rodata.cst16,"aM",@progbits,1624; STATIC: e:25; STATIC: e1:26; STATIC: .section .rodata,"a",@progbits27; STATIC: p:28 29; PIC: .section .rodata.cst8,"aM",@progbits,830; PIC: a:31; PIC: a1:32; PIC: .section .rodata.cst16,"aM",@progbits,1633; PIC: e:34; PIC: e1:35; PIC: .section .data.rel.ro,"aw",@progbits36; PIC: p:37; PIC: t:38; PIC-NOT: .section39; PIC: p1:40; PIC: t1:41; PIC: .data42; PIC: p2:43; PIC: t2:44; PIC-NOT: .section45; PIC: p3:46; PIC: t3:47