[llvm-branch-commits] [llvm-branch] r133588 - in /llvm/branches/type-system-rewrite/test/Linker: 2003-08-28-TypeResolvesGlobal.ll testlink1.ll
Chris Lattner
sabre at nondot.org
Tue Jun 21 17:35:17 PDT 2011
Author: lattner
Date: Tue Jun 21 19:35:17 2011
New Revision: 133588
URL: http://llvm.org/viewvc/llvm-project?rev=133588&view=rev
Log:
update syntax on a couple test files.
Modified:
llvm/branches/type-system-rewrite/test/Linker/2003-08-28-TypeResolvesGlobal.ll
llvm/branches/type-system-rewrite/test/Linker/testlink1.ll
Modified: llvm/branches/type-system-rewrite/test/Linker/2003-08-28-TypeResolvesGlobal.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/test/Linker/2003-08-28-TypeResolvesGlobal.ll?rev=133588&r1=133587&r2=133588&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/test/Linker/2003-08-28-TypeResolvesGlobal.ll (original)
+++ llvm/branches/type-system-rewrite/test/Linker/2003-08-28-TypeResolvesGlobal.ll Tue Jun 21 19:35:17 2011
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo "%M = type i32" | llvm-as > %t.out2.bc
+; RUN: echo "%M = type { i32} " | llvm-as > %t.out2.bc
; RUN: llvm-link %t.out2.bc %t.out1.bc
%M = type opaque
Modified: llvm/branches/type-system-rewrite/test/Linker/testlink1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/test/Linker/testlink1.ll?rev=133588&r1=133587&r2=133588&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/test/Linker/testlink1.ll (original)
+++ llvm/branches/type-system-rewrite/test/Linker/testlink1.ll Tue Jun 21 19:35:17 2011
@@ -2,8 +2,10 @@
; RUN: llvm-as < %p/testlink2.ll > %t2.bc
; RUN: llvm-link %t.bc %t2.bc
+%intlist = type { %intlist*, i32 }
+
@MyVar = external global i32 ; <i32*> [#uses=3]
- at MyIntList = global { \2*, i32 } { { \2*, i32 }* null, i32 17 } ; <{ \2*, i32 }*> [#uses=1]
+ at MyIntList = global %intlist { %intlist* null, i32 17 } ; <{ \2*, i32 }*> [#uses=1]
external global i32 ; <i32*>:0 [#uses=0]
@Inte = global i32 1 ; <i32*> [#uses=0]
@AConst = linkonce constant i32 123 ; <i32*> [#uses=0]
@@ -18,7 +20,7 @@
define void @main() {
%v1 = load i32* @MyVar ; <i32> [#uses=1]
call void @print( i32 %v1 )
- %idx = getelementptr { \2*, i32 }* @MyIntList, i64 0, i32 1 ; <i32*> [#uses=2]
+ %idx = getelementptr %intlist* @MyIntList, i64 0, i32 1 ; <i32*> [#uses=2]
%v2 = load i32* %idx ; <i32> [#uses=1]
call void @print( i32 %v2 )
call i32 @foo( i32 5 ) ; <i32>:1 [#uses=0]
More information about the llvm-branch-commits
mailing list