[PowerPC] MULHU/MULHS are not legal for vector types
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 4 Aug 2014 13:27:12 +0000 (13:27 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 4 Aug 2014 13:27:12 +0000 (13:27 +0000)
commitd5e9497c886c73da164792e18722759b0e8a0d34
tree292e337018b36e254f6704f1a0ec8445644fc756
parentc8be3734a35619cb559aeea9118776451e7897cc
[PowerPC] MULHU/MULHS are not legal for vector types

I ran into some test failures where common code changed vector division
by constant into a multiply-high operation (MULHU).  But these are not
implemented by the back-end, so we failed to recognize the insn.

Fixed by marking MULHU/MULHS as Expand for vector types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214716 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/vec_urem_const.ll [new file with mode: 0644]