[X86] Add test case for a regression from D76649. NFC
authorCraig Topper <craig.topper@intel.com>
Wed, 13 May 2020 21:13:25 +0000 (14:13 -0700)
committerCraig Topper <craig.topper@intel.com>
Wed, 13 May 2020 21:19:54 +0000 (14:19 -0700)
commit3d9511a311a038d83022a31f2a846e76e21d70be
treec841fe741e6fd26ed64b9cd9b11e2b0eaf3e1d4c
parent71ddc03a59bf8af02fb670d6c3221c83ad5be3a3
[X86] Add test case for a regression from D76649. NFC

When combineLoopMAdd was moved to IR we got stricter about
ensuring the truncate was free. This prevents us from matching
this sum of squares of byte differences pattern show here.

We used to get this case when it was in SelectionDAG.
llvm/test/CodeGen/X86/madd.ll