Merging r259740:
[oota-llvm.git] / test / CodeGen / PowerPC / vsx-fma-mutate-trivial-copy.ll
1 ; RUN: llc < %s | FileCheck %s
2 target datalayout = "E-m:e-i64:64-n32:64"
3 target triple = "powerpc64-unknown-linux-gnu"
4
5 ; Function Attrs: nounwind
6 define void @LSH_recall_init(float %d_min, float %W) #0 {
7 entry:
8   br i1 undef, label %for.body.lr.ph, label %for.end
9
10 ; CHECK-LABEL: @LSH_recall_init
11 ; CHECK: xsnmsubadp
12
13 for.body.lr.ph:                                   ; preds = %entry
14   %conv3 = fpext float %W to double
15   br label %for.body
16
17 for.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
26 for.end:                                          ; preds = %entry
27   ret void
28 }
29
30 ; Function Attrs: nounwind readnone
31 declare double @llvm.sqrt.f64(double) #1
32
33 declare signext i32 @p_col_helper(...) #2
34
35 attributes #0 = { nounwind "no-infs-fp-math"="true" "no-nans-fp-math"="true" "target-cpu"="pwr7" "unsafe-fp-math"="true" }
36 attributes #1 = { nounwind readnone }
37 attributes #2 = { nounwind }
38