brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · a114438 Raw
29 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mcpu=ppc | FileCheck %s2 3target 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"4target triple = "powerpc-unknown-linux-gnu"5 6define ppc_fp128 @foo(ptr nocapture %n, ppc_fp128 %d) nounwind readonly {7entry:8  br label %for.body9 10for.body:                                         ; preds = %for.body, %entry11  %i.06 = phi i32 [ 0, %entry ], [ %inc, %for.body ]12  %x.05 = phi ppc_fp128 [ %d, %entry ], [ %conv, %for.body ]13  %arrayidx = getelementptr inbounds ppc_fp128, ptr %n, i32 %i.0614  %0 = load ppc_fp128, ptr %arrayidx, align 815  %conv = tail call ppc_fp128 @copysignl(ppc_fp128 %x.05, ppc_fp128 %d) nounwind readonly16  %inc = add nsw i32 %i.06, 117  %exitcond = icmp eq i32 %inc, 204818  br i1 %exitcond, label %for.end, label %for.body19 20for.end:                                          ; preds = %for.body21  ret ppc_fp128 %conv22}23 24declare ppc_fp128 @copysignl(ppc_fp128, ppc_fp128) #025 26; CHECK: @foo27; CHECK-NOT: mtctr28 29