1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Expand test case a bit.

llvm-svn: 191205
This commit is contained in:
Benjamin Kramer 2013-09-23 14:41:35 +00:00
parent ced4e4005c
commit 48e843e09c

View File

@ -722,7 +722,10 @@ define i1 @non_inbounds_gep_compare(i64* %a) {
; CHECK-LABEL: @non_inbounds_gep_compare(
; Equality compares with non-inbounds GEPs can be folded.
%x = getelementptr i64* %a, i64 42
%cmp = icmp eq i64* %a, %x
%y = getelementptr inbounds i64* %x, i64 -42
%z = getelementptr i64* %a, i64 -42
%w = getelementptr inbounds i64* %z, i64 42
%cmp = icmp eq i64* %y, %w
ret i1 %cmp
; CHECK-NEXT: ret i1 false
; CHECK-NEXT: ret i1 true
}