Add a testcase from pr16244.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183433 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2013-06-06 19:15:23 +00:00
parent f1f6dcefa8
commit ab9ba5321d

View File

@ -988,3 +988,13 @@ define i1 @icmp_add_and_shr_ne_0(i32 %X) {
%tobool = icmp ne i32 %add, 0
ret i1 %tobool
}
; PR16244
; CHECK: define i1 @test71
; CHECK-NEXT: ret i1 false
define i1 @test71(i8* %x) {
%a = getelementptr i8* %x, i64 8
%b = getelementptr inbounds i8* %x, i64 8
%c = icmp ugt i8* %a, %b
ret i1 %c
}