brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 8d655d0 Raw
43 lines · plain
1; RUN: opt -passes=loop-unroll -disable-output < %s2; PR113613 4; This tests for an iterator invalidation issue.5 6target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"7target triple = "x86_64-unknown-linux-gnu"8 9define void @func_1() nounwind uwtable {10entry:11  br label %for.cond8.preheader12 13for.cond8.preheader:                              ; preds = %for.inc15, %entry14  %l_1264.04 = phi i32 [ 0, %entry ], [ %add.i, %for.inc15 ]15  %l_1330.0.03 = phi i80 [ undef, %entry ], [ %ins.lcssa, %for.inc15 ]16  br label %for.body917 18for.body9:                                        ; preds = %for.body9, %for.cond8.preheader19  %l_1330.0.12 = phi i80 [ %l_1330.0.03, %for.cond8.preheader ], [ %ins, %for.body9 ]20  %storemerge1 = phi i32 [ 7, %for.cond8.preheader ], [ %sub, %for.body9 ]21  %tmp = lshr i80 %l_1330.0.12, 822  %tmp1 = trunc i80 %tmp to i823  %inc12 = add i8 %tmp1, 124  %tmp2 = zext i8 %inc12 to i8025  %tmp3 = shl nuw nsw i80 %tmp2, 826  %mask = and i80 %l_1330.0.12, -6528127  %ins = or i80 %tmp3, %mask28  %sub = add nsw i32 %storemerge1, -129  %tobool = icmp eq i32 %sub, 030  br i1 %tobool, label %for.inc15, label %for.body931 32for.inc15:                                        ; preds = %for.body933  %ins.lcssa = phi i80 [ %ins, %for.body9 ]34  %sext = shl i32 %l_1264.04, 2435  %conv.i = ashr exact i32 %sext, 2436  %add.i = add nsw i32 %conv.i, 137  %cmp = icmp slt i32 %add.i, 338  br i1 %cmp, label %for.cond8.preheader, label %for.end1639 40for.end16:                                        ; preds = %for.inc1541  ret void42}43