aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/XCore/exp.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/XCore/exp.ll')
-rw-r--r--test/CodeGen/XCore/exp.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/exp.ll b/test/CodeGen/XCore/exp.ll
new file mode 100644
index 0000000..8412e7a
--- /dev/null
+++ b/test/CodeGen/XCore/exp.ll
@@ -0,0 +1,16 @@
+; RUN: llvm-as < %s | llc -march=xcore > %t1.s
+; RUN: grep "bl expf" %t1.s | count 1
+; RUN: grep "bl exp" %t1.s | count 2
+declare double @llvm.exp.f64(double)
+
+define double @test(double %F) {
+ %result = call double @llvm.exp.f64(double %F)
+ ret double %result
+}
+
+declare float @llvm.exp.f32(float)
+
+define float @testf(float %F) {
+ %result = call float @llvm.exp.f32(float %F)
+ ret float %result
+}