mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-13 00:11:56 +00:00
Test case for r150978.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150979 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6ad48f4137
commit
117314009e
@ -615,3 +615,16 @@ define i1 @test60(i8* %foo, i64 %i, i64 %j) {
|
||||
; CHECK-NEXT: icmp slt i64 %gep1.idx, %j
|
||||
; CHECK-NEXT: ret i1
|
||||
}
|
||||
|
||||
define i1 @test61(i8* %foo, i64 %i, i64 %j) {
|
||||
%bit = bitcast i8* %foo to i32*
|
||||
%gep1 = getelementptr i32* %bit, i64 %i
|
||||
%gep2 = getelementptr i8* %foo, i64 %j
|
||||
%cast1 = bitcast i32* %gep1 to i8*
|
||||
%cmp = icmp ult i8* %cast1, %gep2
|
||||
ret i1 %cmp
|
||||
; Don't transform non-inbounds GEPs.
|
||||
; CHECK: @test61
|
||||
; CHECK: icmp ult i8* %cast1, %gep2
|
||||
; CHECK-NEXT: ret i1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user