[llvm] r283811 - [x86] auto-generate checks
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 10 15:01:42 PDT 2016
Author: spatel
Date: Mon Oct 10 17:01:42 2016
New Revision: 283811
URL: http://llvm.org/viewvc/llvm-project?rev=283811&view=rev
Log:
[x86] auto-generate checks
Modified:
llvm/trunk/test/CodeGen/X86/pr18014.ll
Modified: llvm/trunk/test/CodeGen/X86/pr18014.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr18014.ll?rev=283811&r1=283810&r2=283811&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr18014.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr18014.ll Mon Oct 10 17:01:42 2016
@@ -1,16 +1,24 @@
-; RUN: llc < %s -mtriple=x86_64-linux-pc -mcpu=penryn | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=sse4.1 | FileCheck %s
; Ensure PSRAD is generated as the condition is consumed by both PADD and
; BLENDVPS. PAND requires all bits setting properly.
define <4 x i32> @foo(<4 x i32>* %p, <4 x i1> %cond, <4 x i32> %v1, <4 x i32> %v2, <4 x i32> %v3) {
+; CHECK-LABEL: foo:
+; CHECK: # BB#0:
+; CHECK-NEXT: pslld $31, %xmm0
+; CHECK-NEXT: psrad $31, %xmm0
+; CHECK-NEXT: blendvps %xmm1, %xmm2
+; CHECK-NEXT: paddd %xmm0, %xmm1
+; CHECK-NEXT: movaps %xmm2, (%rdi)
+; CHECK-NEXT: movdqa %xmm1, %xmm0
+; CHECK-NEXT: retq
+;
%sext_cond = sext <4 x i1> %cond to <4 x i32>
%t1 = add <4 x i32> %v1, %sext_cond
%t2 = select <4 x i1> %cond, <4 x i32> %v1, <4 x i32> %v2
store <4 x i32> %t2, <4 x i32>* %p
ret <4 x i32> %t1
-; CHECK: foo
-; CHECK: pslld
-; CHECK: psrad
-; CHECK: ret
}
+
More information about the llvm-commits
mailing list