1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/M68k/Arith
Simon Pilgrim ea4ee76d88 [DAG] computeKnownBits - add ISD::MULHS/MULHU/SMUL_LOHI/UMUL_LOHI handling
Reuse the existing KnownBits multiplication code to handle the 'extend + multiply + extract high bits' pattern for multiply-high ops.

Noticed while looking at the codegen for D88785 / D98587 - the patch helps division-by-constant expansion code in particular, which suggests that we might have some further KnownBits div/rem cases we could handle - but this was far easier to implement.

Differential Revision: https://reviews.llvm.org/D98857
2021-03-19 16:02:31 +00:00
..
add-with-overflow.ll
add.ll
divide-by-constant.ll
imul-neg.ll
imul.ll
lshr.ll
mul64.ll
sdiv-exact.ll
smul-with-overflow.ll
sub-with-overflow.ll
sub.ll
umul-with-overflow.ll