PPC: Add some missing V_SET0 patterns
authorHal Finkel <hfinkel@anl.gov>
Thu, 11 Jul 2013 17:43:32 +0000 (17:43 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 11 Jul 2013 17:43:32 +0000 (17:43 +0000)
commite2ff00e117ba9b758b298e671f65c0b002f8a52d
tree0ff554f2b4d87dd050c175dbfa8a95fdf0f5ba2e
parent53b28f86236fc548143656929f39f38d9dc83e06
PPC: Add some missing V_SET0 patterns

We had patterns to match v4i32 immAllZerosV -> V_SET0, but not patterns for
v8i16 (which occurs in the test case) or v16i8. The same was true for
V_SETALLONES (so I added the associated patterns for those as well).

Another bug found by llvm-stress.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186108 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrAltivec.td
test/CodeGen/PowerPC/set0-v8i16.ll [new file with mode: 0644]