• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=xcore > %t1.s
2; RUN: grep "bl __powidf2" %t1.s | count 1
3; RUN: grep "bl __powisf2" %t1.s | count 1
4declare double @llvm.powi.f64(double, i32)
5
6define double @test(double %F, i32 %power) {
7        %result = call double @llvm.powi.f64(double %F, i32 %power)
8	ret double %result
9}
10
11declare float @llvm.powi.f32(float, i32)
12
13define float @testf(float %F, i32 %power) {
14        %result = call float @llvm.powi.f32(float %F, i32 %power)
15	ret float %result
16}
17