xref: /minix3/external/bsd/llvm/dist/llvm/test/Transforms/InstCombine/mul-masked-bits.ll (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1; RUN: opt < %s -instcombine -S | grep ashr
2
3define i32 @foo(i32 %x, i32 %y) {
4  %a = and i32 %x, 7
5  %b = and i32 %y, 7
6  %c = mul i32 %a, %b
7  %d = shl i32 %c, 26
8  %e = ashr i32 %d, 26
9  ret i32 %e
10}
11