[llvm] r283812 - [x86] auto-generate checks

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 15:04:12 PDT 2016


Author: spatel
Date: Mon Oct 10 17:04:12 2016
New Revision: 283812

URL: http://llvm.org/viewvc/llvm-project?rev=283812&view=rev
Log:
[x86] auto-generate checks

Modified:
    llvm/trunk/test/CodeGen/X86/pr14204.ll

Modified: llvm/trunk/test/CodeGen/X86/pr14204.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr14204.ll?rev=283812&r1=283811&r2=283812&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr14204.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr14204.ll Mon Oct 10 17:04:12 2016
@@ -1,15 +1,18 @@
-; RUN: llc < %s -mtriple=x86_64-linux-pc -mcpu=core-avx2 | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=avx2 | FileCheck %s
 
 ; FIXME: vpmovsxwd should be generated instead of vpmovzxwd followed by
 ; SLL/SRA.
 
 define <8 x i32> @foo(<8 x i1> %bar) nounwind readnone {
-entry:
+; CHECK-LABEL: foo:
+; CHECK:       # BB#0:
+; CHECK-NEXT:    vpmovzxwd {{.*#+}} ymm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero,xmm0[4],zero,xmm0[5],zero,xmm0[6],zero,xmm0[7],zero
+; CHECK-NEXT:    vpslld $31, %ymm0, %ymm0
+; CHECK-NEXT:    vpsrad $31, %ymm0, %ymm0
+; CHECK-NEXT:    retq
+;
   %s = sext <8 x i1> %bar to <8 x i32>
   ret <8 x i32> %s
-; CHECK: foo
-; CHECK: vpmovzxwd
-; CHECK: vpslld
-; CHECK: vpsrad
-; CHECK: ret
 }
+




More information about the llvm-commits mailing list