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