[llvm-branch-commits] [llvm-branch] r133702 - in /llvm/branches/type-system-rewrite/test/Feature: globalvars.ll opaquetypes.ll testtype.ll

Chris Lattner sabre at nondot.org
Wed Jun 22 23:29:07 PDT 2011


Author: lattner
Date: Thu Jun 23 01:29:07 2011
New Revision: 133702

URL: http://llvm.org/viewvc/llvm-project?rev=133702&view=rev
Log:
stop testing upreferences and forward refs of non-struct types.

Removed:
    llvm/branches/type-system-rewrite/test/Feature/opaquetypes.ll
Modified:
    llvm/branches/type-system-rewrite/test/Feature/globalvars.ll
    llvm/branches/type-system-rewrite/test/Feature/testtype.ll

Modified: llvm/branches/type-system-rewrite/test/Feature/globalvars.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/test/Feature/globalvars.ll?rev=133702&r1=133701&r2=133702&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/test/Feature/globalvars.ll (original)
+++ llvm/branches/type-system-rewrite/test/Feature/globalvars.ll Thu Jun 23 01:29:07 2011
@@ -3,7 +3,7 @@
 ; RUN: diff %t1.ll %t2.ll
 
 @MyVar = external global i32            ; <i32*> [#uses=1]
- at MyIntList = external global { \2*, i32 }               ; <{ \2*, i32 }*> [#uses=1]
+ at MyIntList = external global { i32*, i32 }               ; <{ \2*, i32 }*> [#uses=1]
 external global i32             ; <i32*>:0 [#uses=0]
 @AConst = constant i32 123              ; <i32*> [#uses=0]
 @AString = constant [4 x i8] c"test"            ; <[4 x i8]*> [#uses=0]
@@ -11,7 +11,7 @@
 
 define i32 @foo(i32 %blah) {
         store i32 5, i32* @MyVar
-        %idx = getelementptr { \2*, i32 }* @MyIntList, i64 0, i32 1             ; <i32*> [#uses=1]
+        %idx = getelementptr { i32*, i32 }* @MyIntList, i64 0, i32 1             ; <i32*> [#uses=1]
         store i32 12, i32* %idx
         ret i32 %blah
 }

Removed: llvm/branches/type-system-rewrite/test/Feature/opaquetypes.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/test/Feature/opaquetypes.ll?rev=133701&view=auto
==============================================================================
--- llvm/branches/type-system-rewrite/test/Feature/opaquetypes.ll (original)
+++ llvm/branches/type-system-rewrite/test/Feature/opaquetypes.ll (removed)
@@ -1,52 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis > %t1.ll
-; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
-; RUN: diff %t1.ll %t2.ll
-
-; This test case is used to test opaque type processing, forward references,
-; and recursive types.  Oh my.
-; 
-
-%SQ1 = type { i32 }
-%SQ2 = type { %ITy }
-%ITy = type i32
-
-
-%CCC = type { \2* }
-%BBB = type { \2*, \2 * }
-%AAA = type { \2*, {\2*}, [12x{\2*}], {[1x{\2*}]} }
-
-; Test numbered types
-%0 = type %CCC
-%1 = type %BBB
-%Composite = type { %0, %1 }
-
-; Perform a simple forward reference...
-%ty1 = type { %ty2, i32 }
-%ty2 = type float
-
-; Do a recursive type...
-%list = type { %list * }
-%listp = type { %listp } *
-
-; Do two mutually recursive types...
-%TyA = type { %ty2, %TyB * }
-%TyB = type { double, %TyA * }
-
-; A complex recursive type...
-%Y = type { {%Y*}, %Y* }
-%Z = type { { %Z * }, [12x%Z] *, {{{ %Z * }}} }
-
-; More ridiculous test cases...
-%A = type [ 123x %A*]
-%M = type %M (%M, %M) *
-%P = type %P*
-
-; Recursive ptrs
-%u = type %v*
-%v = type %u*
-
-; Test the parser for unnamed recursive types...
-%P1 = type \1 *
-%Y1 = type { { \3 * }, \2 * }
-%Z1 = type { { \3 * }, [12x\3] *, { { { \5 * } } } }
-

Modified: llvm/branches/type-system-rewrite/test/Feature/testtype.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/test/Feature/testtype.ll?rev=133702&r1=133701&r2=133702&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/test/Feature/testtype.ll (original)
+++ llvm/branches/type-system-rewrite/test/Feature/testtype.ll Thu Jun 23 01:29:07 2011
@@ -7,13 +7,13 @@
         %inners = type { float, { i8 } }
         %struct = type { i32, %inners, i64 }
 
-%fwdref = type { %fwd* }
 %fwd    = type %fwdref*
+%fwdref = type { %fwd* }
 
 ; same as above with unnamed types
-%0 = type { %1* }
 %1 = type %0* 
 %test = type %1
+%0 = type { %1* }
 
 %test2 = type [2 x i32]
 ;%x = type %undefined*





More information about the llvm-branch-commits mailing list