brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 539b563 Raw
38 lines · plain
1; RUN: llc -verify-machineinstrs -fp-contract=fast < %s | FileCheck %s2target datalayout = "E-m:e-i64:64-n32:64"3target triple = "powerpc64-unknown-linux-gnu"4 5define void @LSH_recall_init(float %d_min, float %W) #0 {6entry:7  br i1 undef, label %for.body.lr.ph, label %for.end8 9; CHECK-LABEL: @LSH_recall_init10; CHECK: xsmaddadp11 12for.body.lr.ph:                                   ; preds = %entry13  %conv3 = fpext float %W to double14  br label %for.body15 16for.body:                                         ; preds = %for.body, %for.body.lr.ph17  %div = fdiv reassoc arcp float 0.000000e+00, %W18  %add = fadd reassoc float %div, %d_min19  %conv2 = fpext float %add to double20  %0 = tail call double @llvm.sqrt.f64(double %conv2)21  %div4 = fdiv reassoc arcp double %conv3, %022  %call = tail call signext i32 @p_col_helper(double %div4) #223  br label %for.body24 25for.end:                                          ; preds = %entry26  ret void27}28 29; Function Attrs: nounwind readnone30declare double @llvm.sqrt.f64(double) #131 32declare signext i32 @p_col_helper(...) #233 34attributes #0 = { nounwind "no-infs-fp-math"="true" "no-nans-fp-math"="true" "target-cpu"="pwr7" }35attributes #1 = { nounwind readnone }36attributes #2 = { nounwind }37 38