Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -relocation-model=static | FileCheck %s -check-prefix=STATIC
      2 ; RUN: llc < %s -relocation-model=pic | FileCheck %s -check-prefix=PIC
      3 
      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"
      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 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 i8* bitcast ([2 x i32]* @a to i8*)
     12 @t = unnamed_addr constant i8* bitcast ([2 x [2 x i32]]* @e to i8*)
     13 @p1 = unnamed_addr constant i8* bitcast ([2 x i32]* @a1 to i8*)
     14 @t1 = unnamed_addr constant i8* bitcast ([2 x [2 x i32]]* @e1 to i8*)
     15 @p2 = internal global i8* bitcast([2 x i32]* @a1 to i8*)
     16 @t2 = internal global i8* bitcast([2 x [2 x i32]]* @e1 to i8*)
     17 @p3 = internal global i8* bitcast([2 x i32]* @a to i8*)
     18 @t3 = internal global i8* bitcast([2 x [2 x i32]]* @e to i8*)
     19 
     20 ; STATIC: .section .rodata.cst8,"aM",@progbits,8
     21 ; STATIC: a:
     22 ; STATIC: a1:
     23 ; STATIC: .section .rodata.cst16,"aM",@progbits,16
     24 ; STATIC: e:
     25 ; STATIC: e1:
     26 ; STATIC: .section .rodata,"a",@progbits
     27 ; STATIC: p:
     28 
     29 ; PIC: .section .rodata.cst8,"aM",@progbits,8
     30 ; PIC: a:
     31 ; PIC: a1:
     32 ; PIC: .section .rodata.cst16,"aM",@progbits,16
     33 ; PIC: e:
     34 ; PIC: e1:
     35 ; PIC: .section .data.rel.ro.local,"aw",@progbits
     36 ; PIC: p:
     37 ; PIC: t:
     38 ; PIC: .section .data.rel.ro,"aw",@progbits
     39 ; PIC: p1:
     40 ; PIC: t1:
     41 ; PIC: .section .data.rel,"aw",@progbits
     42 ; PIC: p2:
     43 ; PIC: t2:
     44 ; PIC: .section .data.rel.local,"aw",@progbits
     45 ; PIC: p3:
     46 ; PIC: t3:
     47