xref: /llvm-project/llvm/test/CodeGen/X86/x86-64-extend-shift.ll (revision 7198b8a39a062215aaf4ad8d2df23f7a10eaf6ae)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
3; Formerly there were two shifts.
4
5define i64 @baz(i32 %A) nounwind {
6; CHECK-LABEL: baz:
7; CHECK:       ## %bb.0:
8; CHECK-NEXT:    movl %edi, %eax
9; CHECK-NEXT:    shlq $49, %rax
10; CHECK-NEXT:    retq
11  %tmp1 = shl i32 %A, 17
12  %tmp2 = zext i32 %tmp1 to i64
13  %tmp3 = shl i64 %tmp2, 32
14  ret i64 %tmp3
15}
16