File: rodata-relocs.ll

package info (click to toggle)
llvm-2.7 2.7-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 59,992 kB
  • ctags: 49,499
  • sloc: cpp: 373,792; ansic: 16,885; sh: 12,614; asm: 6,809; ada: 3,083; ml: 2,942; python: 2,671; perl: 2,404; makefile: 1,691; pascal: 1,235; exp: 399; objc: 291; lisp: 184; csh: 117; xml: 38; f90: 36
file content (23 lines) | stat: -rw-r--r-- 1,429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; RUN: llc < %s -relocation-model=static | grep rodata | count 3
; RUN: llc < %s -relocation-model=static | grep -F "rodata.cst" | count 2
; RUN: llc < %s -relocation-model=pic | grep rodata | count 2
; RUN: llc < %s -relocation-model=pic | grep -F ".data.rel.ro" | count 2
; RUN: llc < %s -relocation-model=pic | grep -F ".data.rel.ro.local" | count 1
; RUN: llc < %s -relocation-model=pic | grep -F ".data.rel" | count 4
; RUN: llc < %s -relocation-model=pic | grep -F ".data.rel.local" | count 1

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"
target triple = "x86_64-unknown-linux-gnu"
@a = internal constant [2 x i32] [i32 1, i32 2]
@a1 = constant [2 x i32] [i32 1, i32 2]
@e = internal constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 16
@e1 = constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 16
@p = constant i8* bitcast ([2 x i32]* @a to i8*)
@t = constant i8* bitcast ([2 x [2 x i32]]* @e to i8*)
@p1 = constant i8* bitcast ([2 x i32]* @a1 to i8*)
@t1 = constant i8* bitcast ([2 x [2 x i32]]* @e1 to i8*)
@p2 = internal global i8* bitcast([2 x i32]* @a1 to i8*)
@t2 = internal global i8* bitcast([2 x [2 x i32]]* @e1 to i8*)
@p3 = internal global i8* bitcast([2 x i32]* @a to i8*)
@t3 = internal global i8* bitcast([2 x [2 x i32]]* @e to i8*)