Skip to content

Commit

Permalink
When codegen'ing vector MUL using VFMADD, *add* the 0, don't *mul* th…
Browse files Browse the repository at this point in the history
…e 0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26913 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Mar 21, 2006
1 parent ef040dd commit 8593f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/PowerPC/PPCInstrInfo.td
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit 8593f98

Please sign in to comment.