[llvm] b2b1ee7 - [X86] Regenerate vector-truncate-combine.ll to check entire code sequence
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 08:55:54 PDT 2024
Author: Simon Pilgrim
Date: 2024-06-19T16:55:33+01:00
New Revision: b2b1ee7a92aa51c5017edab40aec665278d63f16
URL: https://github.com/llvm/llvm-project/commit/b2b1ee7a92aa51c5017edab40aec665278d63f16
DIFF: https://github.com/llvm/llvm-project/commit/b2b1ee7a92aa51c5017edab40aec665278d63f16.diff
LOG: [X86] Regenerate vector-truncate-combine.ll to check entire code sequence
Added:
Modified:
llvm/test/CodeGen/X86/vector-truncate-combine.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/vector-truncate-combine.ll b/llvm/test/CodeGen/X86/vector-truncate-combine.ll
index fee9d6dd94d39..909abda04e165 100644
--- a/llvm/test/CodeGen/X86/vector-truncate-combine.ll
+++ b/llvm/test/CodeGen/X86/vector-truncate-combine.ll
@@ -1,4 +1,5 @@
-; RUN: llc -mtriple=x86_64-- -O2 -start-after=stack-protector -stop-before=loops %s -o - | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -mtriple=x86_64-- -O2 | FileCheck %s
; This test verifies the fix for PR33368.
;
@@ -14,11 +15,14 @@
; NOTE: This operation could be collapsed in to a single truncate. Once that is done
; this test will have to be adjusted.
-; CHECK: PANDrm
-; CHECK: PACKUSWBrr
-; CHECK: MOVPDI2DIrr
-
define void @test(double %vec.coerce) local_unnamed_addr {
+; CHECK-LABEL: test:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: pand {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
+; CHECK-NEXT: packuswb %xmm0, %xmm0
+; CHECK-NEXT: movd %xmm0, %eax
+; CHECK-NEXT: movw %ax, -{{[0-9]+}}(%rsp)
+; CHECK-NEXT: retq
entry:
%c2 = alloca <2 x i8>, align 2
%0 = bitcast double %vec.coerce to <8 x i8>
More information about the llvm-commits
mailing list