aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-12-14 22:51:13 +0000
committerNate Begeman <natebegeman@mac.com>2005-12-14 22:51:13 +0000
commit1dae25e23ac4edd64a124b3d831282ceaf3610ea (patch)
tree4173e05f8dac016f08d52abea7e0ed999862fa47
parent74164098ff257bc763f011a5eebcf4ed78e10e4f (diff)
Add a case for float just to make sure the patterns for both precisions
are matching git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24718 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/PowerPC/fma.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/PowerPC/fma.ll b/test/CodeGen/PowerPC/fma.ll
index 794fa08742..afc9af4e68 100644
--- a/test/CodeGen/PowerPC/fma.ll
+++ b/test/CodeGen/PowerPC/fma.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=ppc32 | egrep 'fn?madd|fn?msub' | wc -l | grep 7
+; RUN: llvm-as < %s | llc -march=ppc32 | egrep 'fn?madd|fn?msub' | wc -l | grep 8
double %test_FMADD1(double %A, double %B, double %C) {
%D = mul double %A, %B
@@ -38,3 +38,9 @@ double %test_FNMSUB2(double %A, double %B, double %C) {
%F = sub double -0.0, %E
ret double %F
}
+float %test_FNMSUBS(float %A, float %B, float %C) {
+ %D = mul float %A, %B
+ %E = sub float %D, %C
+ %F = sub float -0.0, %E
+ ret float %F
+}