brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 390dd2b Raw
39 lines · plain
1; RUN: llc -verify-machineinstrs < %s | FileCheck %s2target 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-v128:128:128-n32:64"3target triple = "powerpc64-unknown-freebsd10.0"4 5define void @test1(i32 %c) nounwind {6entry:7  br label %for.body8 9for.body:                                         ; preds = %for.body, %entry10  %i.01 = phi i32 [ 0, %entry ], [ %inc, %for.body ]11  call void asm sideeffect "", "~{r5}"() nounwind12  %inc = add nsw i32 %i.01, 113  %exitcond = icmp eq i32 %inc, 204814  br i1 %exitcond, label %for.end, label %for.body15 16for.end:                                          ; preds = %for.body17  ret void18; CHECK: @test119; CHECK: mtctr20}21 22define void @test2(i32 %c) nounwind {23entry:24  br label %for.body25 26for.body:                                         ; preds = %for.body, %entry27  %i.01 = phi i32 [ 0, %entry ], [ %inc, %for.body ]28  call void asm sideeffect "", "~{ctr}"() nounwind29  %inc = add nsw i32 %i.01, 130  %exitcond = icmp eq i32 %inc, 204831  br i1 %exitcond, label %for.end, label %for.body32 33for.end:                                          ; preds = %for.body34  ret void35; CHECK: @test236; CHECK-NOT: mtctr37}38 39