[llvm] r183433 - Add a testcase from pr16244.

Rafael Espindola rafael.espindola at gmail.com
Thu Jun 6 12:15:23 PDT 2013


Author: rafael
Date: Thu Jun  6 14:15:23 2013
New Revision: 183433

URL: http://llvm.org/viewvc/llvm-project?rev=183433&view=rev
Log:
Add a testcase from pr16244.

Modified:
    llvm/trunk/test/Transforms/InstCombine/icmp.ll

Modified: llvm/trunk/test/Transforms/InstCombine/icmp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/icmp.ll?rev=183433&r1=183432&r2=183433&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/icmp.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/icmp.ll Thu Jun  6 14:15:23 2013
@@ -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
+}





More information about the llvm-commits mailing list