mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 21:05:23 +00:00
Add a testcase for getelementptr index promotion.
llvm-svn: 104944
This commit is contained in:
parent
a6c568fa77
commit
bab79afa29
@ -468,3 +468,12 @@ define i1 @test37() nounwind {
|
||||
getelementptr ([1 x i8]* @A37, i64 1, i64 0)
|
||||
ret i1 %t
|
||||
}
|
||||
|
||||
; Test index promotion
|
||||
define i32* @test38(i32* %I, i32 %n) {
|
||||
%A = getelementptr i32* %I, i32 %n
|
||||
ret i32* %A
|
||||
; CHECK: @test38
|
||||
; CHECK: = sext i32 %n to i64
|
||||
; CHECK: %A = getelementptr i32* %I, i64 %
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user