aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-04-08 16:20:57 +0000
committerDuncan Sands <baldrick@free.fr>2009-04-08 16:20:57 +0000
commit3d0355b825fa707f76dda05bd19730c096ae743c (patch)
treec8d5e3720da6882d4a93f1e76d6b3dcabd744578 /test
parente3bc46ede58d9c02b8f1a630e70ee1c98a1e4229 (diff)
downloadexternal_llvm-3d0355b825fa707f76dda05bd19730c096ae743c.zip
external_llvm-3d0355b825fa707f76dda05bd19730c096ae743c.tar.gz
external_llvm-3d0355b825fa707f76dda05bd19730c096ae743c.tar.bz2
Soft float support for FREM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/2009-04-08-FREM.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2009-04-08-FREM.ll b/test/CodeGen/ARM/2009-04-08-FREM.ll
new file mode 100644
index 0000000..c7e343c
--- /dev/null
+++ b/test/CodeGen/ARM/2009-04-08-FREM.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=arm
+
+declare i32 @printf(i8*, ...)
+
+define i32 @main() {
+ %rem_r = frem double 0.000000e+00, 0.000000e+00 ; <double> [#uses=1]
+ %1 = call i32 (i8*, ...)* @printf(i8* null, double %rem_r) ; <i32> [#uses=0]
+ ret i32 0
+}