aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstSimplify/compare.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstSimplify/compare.ll')
-rw-r--r--test/Transforms/InstSimplify/compare.ll54
1 files changed, 0 insertions, 54 deletions
diff --git a/test/Transforms/InstSimplify/compare.ll b/test/Transforms/InstSimplify/compare.ll
index ea43f5fa45..6ee6dfbdbc 100644
--- a/test/Transforms/InstSimplify/compare.ll
+++ b/test/Transforms/InstSimplify/compare.ll
@@ -40,60 +40,6 @@ define i1 @gep2() {
; CHECK-NEXT: ret i1 true
}
-; PR11238
-%gept = type { i32, i32 }
-@gepy = global %gept zeroinitializer, align 8
-@gepz = extern_weak global %gept
-
-define i1 @gep3() {
-; CHECK: @gep3
- %x = alloca %gept, align 8
- %a = getelementptr %gept* %x, i64 0, i32 0
- %b = getelementptr %gept* %x, i64 0, i32 1
- %equal = icmp eq i32* %a, %b
- ret i1 %equal
-; CHECK-NEXT: ret i1 false
-}
-
-define i1 @gep4() {
-; CHECK: @gep4
- %x = alloca %gept, align 8
- %a = getelementptr %gept* @gepy, i64 0, i32 0
- %b = getelementptr %gept* @gepy, i64 0, i32 1
- %equal = icmp eq i32* %a, %b
- ret i1 %equal
-; CHECK-NEXT: ret i1 false
-}
-
-define i1 @gep5() {
-; CHECK: @gep5
- %x = alloca %gept, align 8
- %a = getelementptr inbounds %gept* %x, i64 0, i32 1
- %b = getelementptr %gept* @gepy, i64 0, i32 0
- %equal = icmp eq i32* %a, %b
- ret i1 %equal
-; CHECK-NEXT: ret i1 false
-}
-
-define i1 @gep6(%gept* %x) {
-; Same as @gep3 but potentially null.
-; CHECK: @gep6
- %a = getelementptr %gept* %x, i64 0, i32 0
- %b = getelementptr %gept* %x, i64 0, i32 1
- %equal = icmp eq i32* %a, %b
- ret i1 %equal
-; CHECK-NEXT: ret i1 false
-}
-
-define i1 @gep7(%gept* %x) {
-; CHECK: @gep7
- %a = getelementptr %gept* %x, i64 0, i32 0
- %b = getelementptr %gept* @gepz, i64 0, i32 0
- %equal = icmp eq i32* %a, %b
- ret i1 %equal
-; CHECK: ret i1 %equal
-}
-
define i1 @zext(i32 %x) {
; CHECK: @zext
%e1 = zext i32 %x to i64