mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
New testcase for scalar promotion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5611 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d99bf49a53
commit
0b1cda1955
@ -19,3 +19,18 @@ Loop:
|
||||
Out:
|
||||
ret void
|
||||
}
|
||||
|
||||
void %testhard(int %i) {
|
||||
br label %Loop
|
||||
Loop:
|
||||
%X1 = getelementptr int* %X, long 0
|
||||
%A = load int* %X1 ; Aliases X, needs to be rewritten
|
||||
%V = add int %A, 1
|
||||
%X2 = getelementptr int* %X, long 0
|
||||
store int %V, int* %X2
|
||||
br bool false, label %Loop, label %Exit
|
||||
|
||||
Exit:
|
||||
ret void
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user