43 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; PR12713; RUN: opt < %s -passes=instcombine -S | FileCheck %s4 5%struct..0anon = type { i32, i32 }6%struct..1anon = type { double }7 8define i32 @main() {9; CHECK-LABEL: @main(10; CHECK-NEXT: entry:11; CHECK-NEXT: [[U:%.*]] = alloca [[STRUCT__1ANON:%.*]], align 812; CHECK-NEXT: store double 0x7FF0000000000000, ptr [[U]], align 813; CHECK-NEXT: [[TMP5:%.*]] = getelementptr inbounds nuw i8, ptr [[U]], i64 414; CHECK-NEXT: [[TMP6:%.*]] = load i32, ptr [[TMP5]], align 415; CHECK-NEXT: [[TMP0:%.*]] = and i32 [[TMP6]], 214643507216; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP0]], 214643507217; CHECK-NEXT: br i1 [[DOTNOT]], label [[COND_FALSE:%.*]], label [[COND_TRUE:%.*]]18; CHECK: cond_true:19; CHECK-NEXT: ret i32 020; CHECK: cond_false:21; CHECK-NEXT: ret i32 122;23entry:24 %u = alloca %struct..1anon, align 825 store double 0x7FF0000000000000, ptr %u26 %tmp5 = getelementptr %struct..0anon, ptr %u, i32 0, i32 127 %tmp6 = load i32, ptr %tmp528 %tmp7 = shl i32 %tmp6, 129 %tmp8 = lshr i32 %tmp7, 2130 %tmp89 = trunc i32 %tmp8 to i1631 icmp ne i16 %tmp89, 204732 zext i1 %0 to i833 icmp ne i8 %1, 034 br i1 %2, label %cond_true, label %cond_false35 36cond_true:37 ret i32 038 39cond_false:40 ret i32 141}42 43