xref: /llvm-project/llvm/test/CodeGen/X86/2008-07-11-SHLBy1.ll (revision 584ed8822631481ced8d3574cc1fed1585aed77d)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
3
4define i128 @sl(i128 %x) {
5; CHECK-LABEL: sl:
6; CHECK:       # %bb.0:
7; CHECK-NEXT:    movq %rsi, %rdx
8; CHECK-NEXT:    shldq $1, %rdi, %rdx
9; CHECK-NEXT:    leaq (%rdi,%rdi), %rax
10; CHECK-NEXT:    retq
11        %t = shl i128 %x, 1
12        ret i128 %t
13}
14