[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)
commit51eccec5d98ff79fc19cc3407f8163e821f48e54
tree2b3026588fe56a57ca6f7318ccd83b44546bd0c4
parenta5cb453cd3fc08ec557363c1f368703acddd29ba
[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.

llvm-svn: 214716
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/vec_urem_const.ll [new file with mode: 0644]