Skip to content

Commit

Permalink
[X86] x86-64-extend-shift.ll - regenerate checks
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed May 7, 2024
1 parent 63ceb9a commit 7198b8a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions llvm/test/CodeGen/X86/x86-64-extend-shift.ll
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
; Formerly there were two shifts.

define i64 @baz(i32 %A) nounwind {
; CHECK: shlq $49, %r
%tmp1 = shl i32 %A, 17
%tmp2 = zext i32 %tmp1 to i64
%tmp3 = shl i64 %tmp2, 32
ret i64 %tmp3
; CHECK-LABEL: baz:
; CHECK: ## %bb.0:
; CHECK-NEXT: movl %edi, %eax
; CHECK-NEXT: shlq $49, %rax
; CHECK-NEXT: retq
%tmp1 = shl i32 %A, 17
%tmp2 = zext i32 %tmp1 to i64
%tmp3 = shl i64 %tmp2, 32
ret i64 %tmp3
}

0 comments on commit 7198b8a

Please sign in to comment.