summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb/fpow.ll
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-06-27 10:44:33 +0000
committerEd Schouten <ed@FreeBSD.org>2009-06-27 10:44:33 +0000
commitf859468f5a21b6952ab62917777f9fb3bba57003 (patch)
tree9794dc36f22f2a2b3f8063829d8a9b3a7794acc8 /test/CodeGen/Thumb/fpow.ll
parentf76359690a7035ad21498f2ba6be6991d3b2032d (diff)
Diffstat (limited to 'test/CodeGen/Thumb/fpow.ll')
-rw-r--r--test/CodeGen/Thumb/fpow.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb/fpow.ll b/test/CodeGen/Thumb/fpow.ll
new file mode 100644
index 000000000000..e5b92ad94ef8
--- /dev/null
+++ b/test/CodeGen/Thumb/fpow.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=thumb
+
+define double @t(double %x, double %y) nounwind optsize {
+entry:
+ %0 = tail call double @llvm.pow.f64( double %x, double %y ) ; <double> [#uses=1]
+ ret double %0
+}
+
+declare double @llvm.pow.f64(double, double) nounwind readonly