blob: 670ef20e084bf7e1e7d9b0fb2757de6d1348365e [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s
Chris Lattner07e3f7e2005-04-02 02:41:55 +00002
Tanya Lattner3f047732008-02-19 01:41:04 +00003define i64 @test_imm(i64 %X) {
4 %Y = ashr i64 %X, 17 ; <i64> [#uses=1]
5 ret i64 %Y
Chris Lattner07e3f7e2005-04-02 02:41:55 +00006}
7
Tanya Lattner3f047732008-02-19 01:41:04 +00008define i64 @test_variable(i64 %X, i8 %Amt) {
9 %shift.upgrd.1 = zext i8 %Amt to i64 ; <i64> [#uses=1]
10 %Y = ashr i64 %X, %shift.upgrd.1 ; <i64> [#uses=1]
11 ret i64 %Y
Chris Lattner07e3f7e2005-04-02 02:41:55 +000012}