From 932470bcd95e25f23430ca5c611d1436049d4c9d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 6 Jun 2013 19:15:23 +0000 Subject: [PATCH] Add a testcase from pr16244. llvm-svn: 183433 --- llvm/test/Transforms/InstCombine/icmp.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/llvm/test/Transforms/InstCombine/icmp.ll b/llvm/test/Transforms/InstCombine/icmp.ll index ed1cd1e5a4cb..5248a899b3ba 100644 --- a/llvm/test/Transforms/InstCombine/icmp.ll +++ b/llvm/test/Transforms/InstCombine/icmp.ll @@ -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 +}