[InstCombine] Move SSE2/AVX2 arithmetic vector shift folding to instcombiner
[oota-llvm.git] / test / Transforms / InstCombine / 2008-02-23-MulSub.ll
1 ; RUN: opt < %s -instcombine -S | not grep mul
2
3 define i26 @test(i26 %a) nounwind  {
4 entry:
5         %_add = mul i26 %a, 2885                ; <i26> [#uses=1]
6         %_shl2 = mul i26 %a, 2884               ; <i26> [#uses=1]
7         %_sub = sub i26 %_add, %_shl2           ; <i26> [#uses=1]
8         ret i26 %_sub
9 }