[X86] Add test case for future MULFIX DAG combine folds. NFC
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Fri, 16 Aug 2019 13:16:38 +0000 (13:16 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Fri, 16 Aug 2019 13:16:38 +0000 (13:16 +0000)
commit6a75061e36fe1998e51ba9de2702f756b6ad5a8e
tree197b54a2436e082f5e53bbc48fe52d14edb5925c
parent8c2c5f5045b7a91c2a69fe232a11ce8bec9a5744
[X86] Add test case for future MULFIX DAG combine folds. NFC

Add some test cases displaying the lack of DAG combine
folds for SMULFIX/UMULFIX/SMULFIXSAT when either
multiplicand is undef or zero.

It seems like widening vector legalization for X86 can
introduce fixed point multiplication of undef values.
So that is one way that such operations could appear
during ISel.

Multiplication with zero is probably more unlikely, and
could potentially be handled by InstCombine. But I do
not think it would hurt to do such folds in DAGCombiner.

This patch only adds the test case. The folds will be
added in a follow up patch.

llvm-svn: 369102
llvm/test/CodeGen/X86/mulfix_combine.ll [new file with mode: 0644]