summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/fpowi-promote.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-03 23:42:50 +0000
committerChris Lattner <sabre@nondot.org>2007-03-03 23:42:50 +0000
commit4f263a00bf0884374b3ed9205e3122be9adcc9da (patch)
tree20d2833e5fed47eeb2b669de1bfc2647ed0621eb /test/CodeGen/Generic/fpowi-promote.ll
parentc9838f25d53d3dd7d38949ef6c28f2505a110f45 (diff)
downloadllvm-4f263a00bf0884374b3ed9205e3122be9adcc9da.tar.gz
llvm-4f263a00bf0884374b3ed9205e3122be9adcc9da.tar.bz2
llvm-4f263a00bf0884374b3ed9205e3122be9adcc9da.tar.xz
New testcase for PR1239
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/fpowi-promote.ll')
-rw-r--r--test/CodeGen/Generic/fpowi-promote.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/fpowi-promote.ll b/test/CodeGen/Generic/fpowi-promote.ll
new file mode 100644
index 0000000000..118bd68cf3
--- /dev/null
+++ b/test/CodeGen/Generic/fpowi-promote.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc &&
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=i386
+
+; PR1239
+
+define float @test(float %tmp23302331, i32 %tmp23282329 ) {
+
+%tmp2339 = call float @llvm.powi.f32( float %tmp23302331, i32 %tmp23282329 )
+ ret float %tmp2339
+}
+
+declare float @llvm.powi.f32(float,i32)