[llvm-commits] [llvm] r68008 - /llvm/trunk/test/CodeGen/X86/rodata-relocs.ll

Anton Korobeynikov asl at math.spbu.ru
Sun Mar 29 10:14:57 PDT 2009


Author: asl
Date: Sun Mar 29 12:14:57 2009
New Revision: 68008

URL: http://llvm.org/viewvc/llvm-project?rev=68008&view=rev
Log:
Testcase for recent ro/relocs stuff

Added:
    llvm/trunk/test/CodeGen/X86/rodata-relocs.ll

Added: llvm/trunk/test/CodeGen/X86/rodata-relocs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/rodata-relocs.ll?rev=68008&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/X86/rodata-relocs.ll (added)
+++ llvm/trunk/test/CodeGen/X86/rodata-relocs.ll Sun Mar 29 12:14:57 2009
@@ -0,0 +1,15 @@
+; 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
+
+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"
+ at a = internal constant [2 x i32] [i32 1, i32 2]		; <[2 x i32]*> [#uses=1]
+ at a1 = constant [2 x i32] [i32 1, i32 2]		; <[2 x i32]*> [#uses=1]
+ at 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]
+ at 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]
+ at p = constant i8* bitcast ([2 x i32]* @a to i8*)		; <i8**> [#uses=0]
+ at t = constant i8* bitcast ([2 x [2 x i32]]* @e to i8*)		; <i8**> [#uses=0]
+ at p1 = constant i8* bitcast ([2 x i32]* @a1 to i8*)		; <i8**> [#uses=0]
+ at t1 = constant i8* bitcast ([2 x [2 x i32]]* @e1 to i8*)		; <i8**> [#uses=0]





More information about the llvm-commits mailing list