d23d484ed62e44104143cced48ad9bb261dd8595
[oota-llvm.git] / test / CodeGen / XCore / exp.ll
1 ; RUN: llc < %s -march=xcore > %t1.s
2 ; RUN: grep "bl expf" %t1.s | count 1
3 ; RUN: grep "bl exp" %t1.s | count 2
4 declare double @llvm.exp.f64(double)
5
6 define double @test(double %F) {
7         %result = call double @llvm.exp.f64(double %F)
8         ret double %result
9 }
10
11 declare float @llvm.exp.f32(float)
12
13 define float @testf(float %F) {
14         %result = call float @llvm.exp.f32(float %F)
15         ret float %result
16 }