Home | History | Annotate | Download | only in XCore
      1 ; RUN: llc < %s -march=xcore > %t1.s
      2 ; RUN: grep "bl powf" %t1.s | count 1
      3 ; RUN: grep "bl pow" %t1.s | count 2
      4 declare double @llvm.pow.f64(double, double)
      5 
      6 define double @test(double %F, double %power) {
      7         %result = call double @llvm.pow.f64(double %F, double %power)
      8 	ret double %result
      9 }
     10 
     11 declare float @llvm.pow.f32(float, float)
     12 
     13 define float @testf(float %F, float %power) {
     14         %result = call float @llvm.pow.f32(float %F, float %power)
     15 	ret float %result
     16 }
     17