• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
4declare double @llvm.pow.f64(double, double)
5
6define double @test(double %F, double %power) {
7        %result = call double @llvm.pow.f64(double %F, double %power)
8	ret double %result
9}
10
11declare float @llvm.pow.f32(float, float)
12
13define float @testf(float %F, float %power) {
14        %result = call float @llvm.pow.f32(float %F, float %power)
15	ret float %result
16}
17