mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 00:37:49 +00:00
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
This commit is contained in:
parent
036b8aa030
commit
42289a3010
@ -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
|
||||
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user