brintos

brintos / llvm-project-archived public Read only

0
0
Text · 420 B · f1e5d0f Raw
20 lines · plain
1; RUN: opt < %s -S -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -passes=loop-unroll | FileCheck %s2define void @unroll_default() nounwind {3entry:4  br label %loop5 6loop:7  %iv = phi i32 [ 0, %entry ], [ %inc, %loop ]8  %inc = add i32 %iv, 19  %exitcnd = icmp uge i32 %inc, 102410  br i1 %exitcnd, label %exit, label %loop11 12exit:13  ret void14}15 16; CHECK-LABEL: @unroll_default17; CHECK: add{{.*}}, 3218; CHECK-NEXT: icmp19 20