25 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt -S -passes=instcombine < %s | FileCheck %s3 4target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"5 6; Make sure we don't hang here.7define i32 @pr96012() {8; CHECK-LABEL: define i32 @pr96012() {9; CHECK-NEXT: [[ENTRY:.*:]]10; CHECK-NEXT: br label %[[FOR_COND:.*]]11; CHECK: [[FOR_COND]]:12; CHECK-NEXT: br label %[[FOR_COND]]13;14entry:15 br label %for.cond16 17for.cond:18 %indvar = phi i32 [ 1, %entry ], [ %shl, %for.cond ]19 %conv1 = trunc i32 %indvar to i820 %neg = sub i8 0, %conv121 %conv2 = zext i8 %neg to i3222 %shl = shl nuw i32 %conv2, 2423 br label %for.cond24}25