[X86] combineMul - ensure getTargetConstantFromNode splat extraction is the correct...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 26 Jun 2023 15:50:03 +0000 (16:50 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 26 Jun 2023 15:50:14 +0000 (16:50 +0100)
commit868351f894c3e4b36254efc3b09f20d1d479a8e3
treed5737e6b798f681b7c84ad36aeea8b862eda9521
parent6756947ac6ef35f774817995c3e052ad48c83144
[X86] combineMul - ensure getTargetConstantFromNode splat extraction is the correct element width

The extracted Constant and Constant::getSplatValue can both be any bitwidth - they don't necessarily match the original ConstantSDNode type

Fixes #63507
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/pr63507.ll [new file with mode: 0644]