aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-03-06 19:59:08 +0000
committerChris Lattner <sabre@nondot.org>2003-03-06 19:59:08 +0000
commit42289a30106c16681365a4e535263569ce9c6a4f (patch)
treec218ef1b3cbfdd260f53bf74666d8ef6c4d7bf80 /test/Assembler
parent036b8aa0307d29e87ad209727e2218c3d9d9bf2b (diff)
downloadexternal_llvm-42289a30106c16681365a4e535263569ce9c6a4f.zip
external_llvm-42289a30106c16681365a4e535263569ce9c6a4f.tar.gz
external_llvm-42289a30106c16681365a4e535263569ce9c6a4f.tar.bz2
Update testcases to use long to index gep
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r--test/Assembler/2002-05-02-ParseError.ll10
-rw-r--r--test/Assembler/2002-08-15-ConstantExprProblem.ll2
-rw-r--r--test/Assembler/2002-08-15-UnresolvedGlobalReference.ll2
3 files changed, 6 insertions, 8 deletions
diff --git a/test/Assembler/2002-05-02-ParseError.ll b/test/Assembler/2002-05-02-ParseError.ll
index 321393c..44f97a0 100644
--- a/test/Assembler/2002-05-02-ParseError.ll
+++ b/test/Assembler/2002-05-02-ParseError.ll
@@ -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
-
+}
diff --git a/test/Assembler/2002-08-15-ConstantExprProblem.ll b/test/Assembler/2002-08-15-ConstantExprProblem.ll
index 1f5a0a7..526bb7b 100644
--- a/test/Assembler/2002-08-15-ConstantExprProblem.ll
+++ b/test/Assembler/2002-08-15-ConstantExprProblem.ll
@@ -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:
diff --git a/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll b/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll
index e0140f5..a4ab1a6 100644
--- a/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll
+++ b/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll
@@ -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)
}