1; RUN: llc < %s | FileCheck %s 2target datalayout = "E-m:e-i64:64-n32:64" 3target triple = "powerpc64-unknown-linux-gnu" 4 5; Function Attrs: nounwind 6define void @LSH_recall_init(float %d_min, float %W) #0 { 7entry: 8 br i1 undef, label %for.body.lr.ph, label %for.end 9 10; CHECK-LABEL: @LSH_recall_init 11; CHECK: xsnmsubadp 12 13for.body.lr.ph: ; preds = %entry 14 %conv3 = fpext float %W to double 15 br label %for.body 16 17for.body: ; preds = %for.body, %for.body.lr.ph 18 %div = fdiv fast float 0.000000e+00, 0.000000e+00 19 %add = fadd fast float %div, %d_min 20 %conv2 = fpext float %add to double 21 %0 = tail call double @llvm.sqrt.f64(double %conv2) 22 %div4 = fdiv fast double %conv3, %0 23 %call = tail call signext i32 bitcast (i32 (...)* @p_col_helper to i32 (double)*)(double %div4) #2 24 br label %for.body 25 26for.end: ; preds = %entry 27 ret void 28} 29 30; Function Attrs: nounwind readnone 31declare double @llvm.sqrt.f64(double) #1 32 33declare signext i32 @p_col_helper(...) #2 34 35attributes #0 = { nounwind "no-infs-fp-math"="true" "no-nans-fp-math"="true" "target-cpu"="pwr7" "unsafe-fp-math"="true" } 36attributes #1 = { nounwind readnone } 37attributes #2 = { nounwind } 38 39