[AVX512] Add SKX testing to avx512-insert-extract.ll
authorAdam Nemet <anemet@apple.com>
Wed, 15 Oct 2014 23:42:14 +0000 (23:42 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 15 Oct 2014 23:42:14 +0000 (23:42 +0000)
This is in preparation to adding DQ subvector inserts to this testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219873 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/avx512-insert-extract.ll

index 2aff7c75bc35ab9c98e6ed95f485c47e0967ff98..fa60476ab0ac74aa89a617e2463341f2e5721497 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llc < %s -march=x86-64 -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
+; RUN: llc < %s -march=x86-64 -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck --check-prefix=KNL --check-prefix=CHECK %s
+; RUN: llc < %s -march=x86-64 -mtriple=x86_64-apple-darwin -mcpu=skx | FileCheck --check-prefix=SKX --check-prefix=CHECK %s
 
 ;CHECK-LABEL: test1:
 ;CHECK: vinsertps
 
 ;CHECK-LABEL: test1:
 ;CHECK: vinsertps
@@ -186,7 +187,8 @@ define i16 @test16(i1 *%addr, i16 %a) {
 ;CHECK-LABEL: test17
 ;CHECK: kshiftlw
 ;CHECK: kshiftrw
 ;CHECK-LABEL: test17
 ;CHECK: kshiftlw
 ;CHECK: kshiftrw
-;CHECK: korw
+;KNL: korw
+;SKX: korb
 ;CHECK: ret
 define i8 @test17(i1 *%addr, i8 %a) {
   %x = load i1 * %addr, align 128
 ;CHECK: ret
 define i8 @test17(i1 *%addr, i8 %a) {
   %x = load i1 * %addr, align 128