[llvm] 758efce - [X86][SSE] Regenerate PR18054 test case
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 18 06:31:45 PDT 2021
Author: Simon Pilgrim
Date: 2021-03-18T13:31:33Z
New Revision: 758efce346c802953ef17ecd7b9a571e53457f13
URL: https://github.com/llvm/llvm-project/commit/758efce346c802953ef17ecd7b9a571e53457f13
DIFF: https://github.com/llvm/llvm-project/commit/758efce346c802953ef17ecd7b9a571e53457f13.diff
LOG: [X86][SSE] Regenerate PR18054 test case
Added:
Modified:
llvm/test/CodeGen/X86/pr18054.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/pr18054.ll b/llvm/test/CodeGen/X86/pr18054.ll
index b7af51618047..0c5079a93170 100644
--- a/llvm/test/CodeGen/X86/pr18054.ll
+++ b/llvm/test/CodeGen/X86/pr18054.ll
@@ -1,10 +1,30 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-pc-linux -mcpu=penryn | FileCheck %s
define void @foo(<16 x i32>* %p, <16 x i1> %x) {
+; CHECK-LABEL: foo:
+; CHECK: # %bb.0:
+; CHECK-NEXT: pmovzxbd {{.*#+}} xmm1 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
+; CHECK-NEXT: pshufd {{.*#+}} xmm2 = xmm0[3,3,3,3]
+; CHECK-NEXT: pmovzxbd {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero,xmm2[2],zero,zero,zero,xmm2[3],zero,zero,zero
+; CHECK-NEXT: pshufd {{.*#+}} xmm3 = xmm0[2,3,2,3]
+; CHECK-NEXT: pmovzxbd {{.*#+}} xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
+; CHECK-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,1,1,1]
+; CHECK-NEXT: pmovzxbd {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
+; CHECK-NEXT: pslld $31, %xmm0
+; CHECK-NEXT: psrad $31, %xmm0
+; CHECK-NEXT: pslld $31, %xmm3
+; CHECK-NEXT: psrad $31, %xmm3
+; CHECK-NEXT: pslld $31, %xmm2
+; CHECK-NEXT: psrad $31, %xmm2
+; CHECK-NEXT: pslld $31, %xmm1
+; CHECK-NEXT: psrad $31, %xmm1
+; CHECK-NEXT: movdqa %xmm1, (%rdi)
+; CHECK-NEXT: movdqa %xmm2, 48(%rdi)
+; CHECK-NEXT: movdqa %xmm3, 32(%rdi)
+; CHECK-NEXT: movdqa %xmm0, 16(%rdi)
+; CHECK-NEXT: retq
%ret = sext <16 x i1> %x to <16 x i32>
store <16 x i32> %ret, <16 x i32>* %p
ret void
-; CHECK: foo
-; CHECK-NOT: pmovsxbd
-; CHECK: ret
}
More information about the llvm-commits
mailing list