[llvm] d915b3e - [X86] Regenerate sar_fold.ll to show all instructions
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 18 07:21:49 PDT 2022
Author: Simon Pilgrim
Date: 2022-06-18T15:21:41+01:00
New Revision: d915b3e485e998d9e331d4362761761398eb6d9d
URL: https://github.com/llvm/llvm-project/commit/d915b3e485e998d9e331d4362761761398eb6d9d
DIFF: https://github.com/llvm/llvm-project/commit/d915b3e485e998d9e331d4362761761398eb6d9d.diff
LOG: [X86] Regenerate sar_fold.ll to show all instructions
Added:
Modified:
llvm/test/CodeGen/X86/sar_fold.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/sar_fold.ll b/llvm/test/CodeGen/X86/sar_fold.ll
index 195d0745b3ff..21655e19440a 100644
--- a/llvm/test/CodeGen/X86/sar_fold.ll
+++ b/llvm/test/CodeGen/X86/sar_fold.ll
@@ -1,9 +1,12 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s
define i32 @shl16sar15(i32 %a) #0 {
; CHECK-LABEL: shl16sar15:
; CHECK: # %bb.0:
; CHECK-NEXT: movswl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: addl %eax, %eax
+; CHECK-NEXT: retl
%1 = shl i32 %a, 16
%2 = ashr exact i32 %1, 15
ret i32 %2
@@ -13,6 +16,8 @@ define i32 @shl16sar17(i32 %a) #0 {
; CHECK-LABEL: shl16sar17:
; CHECK: # %bb.0:
; CHECK-NEXT: movswl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: sarl %eax
+; CHECK-NEXT: retl
%1 = shl i32 %a, 16
%2 = ashr exact i32 %1, 17
ret i32 %2
@@ -22,6 +27,8 @@ define i32 @shl24sar23(i32 %a) #0 {
; CHECK-LABEL: shl24sar23:
; CHECK: # %bb.0:
; CHECK-NEXT: movsbl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: addl %eax, %eax
+; CHECK-NEXT: retl
%1 = shl i32 %a, 24
%2 = ashr exact i32 %1, 23
ret i32 %2
@@ -31,6 +38,8 @@ define i32 @shl24sar25(i32 %a) #0 {
; CHECK-LABEL: shl24sar25:
; CHECK: # %bb.0:
; CHECK-NEXT: movsbl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: sarl %eax
+; CHECK-NEXT: retl
%1 = shl i32 %a, 24
%2 = ashr exact i32 %1, 25
ret i32 %2
More information about the llvm-commits
mailing list