Add support for fmul node of type v4f32.
authorNate Begeman <natebegeman@mac.com>
Wed, 14 Dec 2005 00:34:09 +0000 (00:34 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 14 Dec 2005 00:34:09 +0000 (00:34 +0000)
commit3fb6877cb4d49883726850e0bc6ca6550000abdf
tree9f2ecda5d07cf02c0615e00b60ebaf31294a9b9c
parent993aeb2ed93f99faf1438f1b67cd922989306828
Add support for fmul node of type v4f32.

void %foo(<4 x float> * %a) {
entry:
  %tmp1 = load <4 x float> * %a;
  %tmp2 = mul <4 x float> %tmp1, %tmp1
  store <4 x float> %tmp2, <4 x float> *%a
  ret void
}

Is selected to:

_foo:
        li r2, 0
        lvx v0, r2, r3
        vxor v1, v1, v1
        vmaddfp v0, v0, v0, v1
        stvx v0, r2, r3
        blr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24701 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrFormats.td
lib/Target/PowerPC/PPCInstrInfo.td