brintos

brintos / llvm-project-archived public Read only

0
0
Text · 756 B · 0d139c3 Raw
24 lines · plain
1; RUN: llc -mcpu=ppc32 -verify-machineinstrs < %s | FileCheck %s2target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32"3target triple = "powerpc-unknown-linux-gnu"4 5define void @fn1() {6entry:7  br i1 undef, label %for.end, label %for.body8 9for.body:                                         ; preds = %for.body, %entry10  %inc3 = phi i64 [ %inc, %for.body ], [ undef, %entry ]11  %inc = add nsw i64 %inc3, 112  %tobool = icmp eq i64 %inc, 013  br i1 %tobool, label %for.end, label %for.body14 15for.end:                                          ; preds = %for.body, %entry16  ret void17}18 19; On PPC32, CTR is also 32 bits, and so cannot hold a 64-bit count.20; CHECK: @fn121; CHECK-NOT: mtctr22; CHECK: blr23 24