aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-03-30 15:28:40 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-03-30 15:28:40 +0000
commit30ffe8150ff6156d1e86fce99b9fc940908197de (patch)
tree1875caf5d96afb1ed721e564dbbc9232a94b9852
parent48738b9244217f9e6638513598f875ff59fbc5e6 (diff)
downloadexternal_llvm-30ffe8150ff6156d1e86fce99b9fc940908197de.zip
external_llvm-30ffe8150ff6156d1e86fce99b9fc940908197de.tar.gz
external_llvm-30ffe8150ff6156d1e86fce99b9fc940908197de.tar.bz2
Tweak test for recent relro stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68035 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/rodata-relocs.ll26
1 files changed, 17 insertions, 9 deletions
diff --git a/test/CodeGen/X86/rodata-relocs.ll b/test/CodeGen/X86/rodata-relocs.ll
index fc10759..b800e09 100644
--- a/test/CodeGen/X86/rodata-relocs.ll
+++ b/test/CodeGen/X86/rodata-relocs.ll
@@ -1,15 +1,23 @@
; RUN: llvm-as < %s | llc -relocation-model=static | grep rodata | count 3
; RUN: llvm-as < %s | llc -relocation-model=static | grep -F "rodata.cst" | count 2
; RUN: llvm-as < %s | llc -relocation-model=pic | grep rodata | count 2
-; RUN: llvm-as < %s | llc -relocation-model=pic | grep -F ".data" | count 1
+; RUN: llvm-as < %s | llc -relocation-model=pic | grep -F ".data.rel.ro" | count 2
+; RUN: llvm-as < %s | llc -relocation-model=pic | grep -F ".data.rel.ro.local" | count 1
+; RUN: llvm-as < %s | llc -relocation-model=pic | grep -F ".data.rel" | count 4
+; RUN: llvm-as < %s | llc -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] ; <[2 x i32]*> [#uses=1]
-@a1 = constant [2 x i32] [i32 1, i32 2] ; <[2 x i32]*> [#uses=1]
-@e = internal constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 16 ; <[2 x [2 x i32]]*> [#uses=1]
-@e1 = constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 16 ; <[2 x [2 x i32]]*> [#uses=1]
-@p = constant i8* bitcast ([2 x i32]* @a to i8*) ; <i8**> [#uses=0]
-@t = constant i8* bitcast ([2 x [2 x i32]]* @e to i8*) ; <i8**> [#uses=0]
-@p1 = constant i8* bitcast ([2 x i32]* @a1 to i8*) ; <i8**> [#uses=0]
-@t1 = constant i8* bitcast ([2 x [2 x i32]]* @e1 to i8*) ; <i8**> [#uses=0]
+@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*)
+