blob: 558d2fb63c1e30c6efc86054820658aa0b44fbf4 [file] [log] [blame]
Reid Spencerea8b07e2007-03-23 20:48:34 +00001; This test makes sure that mul instructions are properly eliminated.
2; This test is for Integer BitWidth >= 64 && BitWidth % 2 >= 1024.
3;
4
Dan Gohman72a13d22009-09-08 22:34:10 +00005; RUN: opt < %s -instcombine -S | not grep mul
Reid Spencerea8b07e2007-03-23 20:48:34 +00006
Reid Spencerea8b07e2007-03-23 20:48:34 +00007
8define i177 @test1(i177 %X) {
9 %C = shl i177 1, 155
10 %Y = mul i177 %X, %C
11 ret i177 %Y
12}