1 ; This test makes sure that mul instructions are properly eliminated.
4 ; RUN: if as < %s | opt -instcombine | dis | grep mul
17 %B = mul int %A, 2 ; Should convert to an add instruction
22 %B = mul int %A, 0 ; This should disappear entirely
26 double %test4(double %A) {
27 %B = mul double 1.0, %A ; This is safe for FP