blob: 6ebaeee36697135bac5b54340fbb39f5d6a340b5 [file] [log] [blame]
Dale Johannesenc72b18c2010-12-21 21:55:50 +00001; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
2; Formerly there were two shifts.
3
4define i64 @baz(i32 %A) nounwind {
Jakob Stoklund Olesen20bc5ac2011-05-04 01:01:47 +00005; CHECK: shlq $49, %r
Dale Johannesenc72b18c2010-12-21 21:55:50 +00006 %tmp1 = shl i32 %A, 17
7 %tmp2 = zext i32 %tmp1 to i64
8 %tmp3 = shl i64 %tmp2, 32
9 ret i64 %tmp3
10}