1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=instsimplify -S < %s | FileCheck %s
5 ; CHECK-LABEL: @bitcast(
6 ; CHECK-NEXT: ret i1 false
10 %y = call ptr @func1(ptr %b)
11 %cmp = icmp eq ptr %a, %y
15 %gept = type { i32, i32 }
19 ; CHECK-NEXT: ret i1 false
21 %x = alloca %gept, align 8
22 %y = call ptr @func2(ptr %x)
23 %b = getelementptr %gept, ptr %y, i64 0, i32 1
24 %equal = icmp eq ptr %x, %b
28 declare ptr @func1(ptr returned) nounwind readnone willreturn
29 declare ptr @func2(ptr returned) nounwind readnone willreturn