Simon Pilgrim a83384498b [X86] combineMulToPMADDWD - replace ASHR(X,16) -> LSHR(X,16)
If we're using an ashr to sign-extend the entire upper 16 bits of the i32 element, then we can replace with a lshr. The sign bit will be correctly shifted for PMADDWD's implicit sign-extension and the upper 16 bits are zero so the upper i16 sext-multiply is guaranteed to be zero.

The lshr also has a better chance of folding with shuffles etc.
2021-10-18 22:12:56 +01:00
..
2020-12-08 15:36:47 +00:00
2021-04-13 09:48:13 +08:00
2021-02-15 14:27:12 +08:00
2021-09-17 15:48:55 +02:00
2021-07-27 12:09:25 +01:00
2021-08-16 13:13:56 +01:00
2021-05-24 12:09:02 -07:00
2020-12-08 15:36:47 +00:00
2021-02-21 21:25:26 +00:00