Update testcases to use long to index gep
authorChris Lattner <sabre@nondot.org>
Thu, 6 Mar 2003 19:59:08 +0000 (19:59 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 6 Mar 2003 19:59:08 +0000 (19:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5717 91177308-0d34-0410-b5e6-96231b3b80d8

test/Assembler/2002-05-02-ParseError.ll
test/Assembler/2002-08-15-ConstantExprProblem.ll
test/Assembler/2002-08-15-UnresolvedGlobalReference.ll

index 321393c3a5cdc0a4ec2d2f7624d1a31d86c5e2f9..44f97a0be0987d152c07fac4c172a19bcff8290a 100644 (file)
@@ -1,10 +1,8 @@
-; This should parse correctly without an 'implementation', but there seems to 
-; be a problem...
+; This should parse correctly without an 'implementation', but our current YACC
+; based parser doesn't have the required 2 token lookahead...
 
        %T = type int *
 
-%T "test"()
-begin
+%T %test() {
        ret %T null
-end
-
+}
index 1f5a0a78e286b717b3363445f9e8ebf8e3fb85af..526bb7b2194e77f4679c9a7d89cb05baebad5b1b 100644 (file)
@@ -6,7 +6,7 @@ sbyte* %test() {
         br label %BB1
 
 BB1:                                    ;[#uses=2]
-        %ret = phi sbyte* [ getelementptr ([12 x sbyte]* %.LC0, uint 0, uint 0), %0 ], [ null, %BB2 ]
+        %ret = phi sbyte* [ getelementptr ([12 x sbyte]* %.LC0, long 0, long 0), %0 ], [ null, %BB2 ]
         ret sbyte* %ret
 
 BB2:
index e0140f5fc585fcbe3a13a4b958481a6b327cd102..a4ab1a6fb78416afd50deb2e9cc171fbcf652d98 100644 (file)
@@ -3,6 +3,6 @@
 implementation   ; Functions:
 
 sbyte* %test() {
-        ret sbyte* getelementptr ([12 x sbyte]* %.LC0, uint 0, uint 0)
+        ret sbyte* getelementptr ([12 x sbyte]* %.LC0, long 0, long 0)
 }