mul-masked-bits.ll 203 B

12345678910
  1. ; RUN: opt < %s -instcombine -S | grep ashr
  2. define i32 @foo(i32 %x, i32 %y) {
  3. %a = and i32 %x, 7
  4. %b = and i32 %y, 7
  5. %c = mul i32 %a, %b
  6. %d = shl i32 %c, 26
  7. %e = ashr i32 %d, 26
  8. ret i32 %e
  9. }