summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-21 00:51:38 +0000
committerChris Lattner <sabre@nondot.org>2006-03-21 00:51:38 +0000
commit8593f9891da4782719e49ef1fb2554072ed1e52d (patch)
treee6d62e19ee5ca0eba528936aac699cd3f795a184
parentef040dd4a326c5dd23e6f055fc05b6f18e3a786e (diff)
downloadllvm-8593f9891da4782719e49ef1fb2554072ed1e52d.tar.gz
llvm-8593f9891da4782719e49ef1fb2554072ed1e52d.tar.bz2
llvm-8593f9891da4782719e49ef1fb2554072ed1e52d.tar.xz
When codegen'ing vector MUL using VFMADD, *add* the 0, don't *mul* the 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26913 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td
index 0eee148876..3d0a30d0a8 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/lib/Target/PowerPC/PPCInstrInfo.td
@@ -1123,7 +1123,7 @@ def : Pat<(add GPRC:$in, (PPChi tconstpool:$g, 0)),
(ADDIS GPRC:$in, tconstpool:$g)>;
def : Pat<(fmul VRRC:$vA, VRRC:$vB),
- (VMADDFP VRRC:$vA, (V_SET0), VRRC:$vB)>;
+ (VMADDFP VRRC:$vA, VRRC:$vB, (V_SET0))>;
// Fused negative multiply subtract, alternate pattern
def : Pat<(fsub F8RC:$B, (fmul F8RC:$A, F8RC:$C)),