Eliminate more uses of llvm-as and llvm-dis.
[oota-llvm.git] / test / CodeGen / XCore / powi.ll
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
4 declare double @llvm.powi.f64(double, i32)
5
6 define double @test(double %F, i32 %power) {
7         %result = call double @llvm.powi.f64(double %F, i32 %power)
8         ret double %result
9 }
10
11 declare float @llvm.powi.f32(float, i32)
12
13 define float @testf(float %F, i32 %power) {
14         %result = call float @llvm.powi.f32(float %F, i32 %power)
15         ret float %result
16 }