summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-03 00:31:40 +0000
committerChris Lattner <sabre@nondot.org>2007-05-03 00:31:40 +0000
commitf972db0f4f7a7a46ea88c7c6f2e9f2a34f512ae9 (patch)
treed30964d168ec6f6bb59aa9d4f5d0588ff531a455 /test/CodeGen
parenta7ad3d1ed3a4c257be225ffdc580e007b45c11d4 (diff)
downloadllvm-f972db0f4f7a7a46ea88c7c6f2e9f2a34f512ae9.tar.gz
llvm-f972db0f4f7a7a46ea88c7c6f2e9f2a34f512ae9.tar.bz2
llvm-f972db0f4f7a7a46ea88c7c6f2e9f2a34f512ae9.tar.xz
match a reassociated form of fnmul
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/ARM/fnmul.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fnmul.ll b/test/CodeGen/ARM/fnmul.ll
new file mode 100644
index 0000000000..87a30c99e2
--- /dev/null
+++ b/test/CodeGen/ARM/fnmul.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | grep fnmuld
+; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 -enable-sign-dependent-rounding-fp-math | grep fmul
+
+
+define double @t1(double %a, double %b) {
+entry:
+ %tmp2 = sub double -0.000000e+00, %a ; <double> [#uses=1]
+ %tmp4 = mul double %tmp2, %b ; <double> [#uses=1]
+ ret double %tmp4
+}
+