[X86][Skylake] Fixing duplicated prefixes in the run command of Code Gen regression tests
NFC.
Replaced duplicated HASWELL prefixes in run commands in the X86 Code Gen regression tests by the SKYLAKE prefix when the -mcpu is set to skylake.
The fix is needed in preparation of an upcoming patch containing the Skylake scheduling info.
Reviewers: zvi, RKSimon, aymanmus, igorb
Differential Revision: https://reviews.llvm.org/D37258
llvm-svn: 312103
diff --git a/llvm/test/CodeGen/X86/sse42-schedule.ll b/llvm/test/CodeGen/X86/sse42-schedule.ll
index d25be4b..f02b041 100644
--- a/llvm/test/CodeGen/X86/sse42-schedule.ll
+++ b/llvm/test/CodeGen/X86/sse42-schedule.ll
@@ -4,7 +4,7 @@
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=sandybridge | FileCheck %s --check-prefix=CHECK --check-prefix=SANDY
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=ivybridge | FileCheck %s --check-prefix=CHECK --check-prefix=SANDY
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=znver1 | FileCheck %s --check-prefix=CHECK --check-prefix=ZNVER1
@@ -37,6 +37,13 @@
; HASWELL-NEXT: movl %edi, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: crc32_32_8:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: crc32b %sil, %edi # sched: [3:1.00]
+; SKYLAKE-NEXT: crc32b (%rdx), %edi # sched: [7:1.00]
+; SKYLAKE-NEXT: movl %edi, %eax # sched: [1:0.25]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: crc32_32_8:
; BTVER2: # BB#0:
; BTVER2-NEXT: crc32b %sil, %edi # sched: [3:1.00]
@@ -86,6 +93,13 @@
; HASWELL-NEXT: movl %edi, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: crc32_32_16:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: crc32w %si, %edi # sched: [3:1.00]
+; SKYLAKE-NEXT: crc32w (%rdx), %edi # sched: [7:1.00]
+; SKYLAKE-NEXT: movl %edi, %eax # sched: [1:0.25]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: crc32_32_16:
; BTVER2: # BB#0:
; BTVER2-NEXT: crc32w %si, %edi # sched: [3:1.00]
@@ -135,6 +149,13 @@
; HASWELL-NEXT: movl %edi, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: crc32_32_32:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: crc32l %esi, %edi # sched: [3:1.00]
+; SKYLAKE-NEXT: crc32l (%rdx), %edi # sched: [7:1.00]
+; SKYLAKE-NEXT: movl %edi, %eax # sched: [1:0.25]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: crc32_32_32:
; BTVER2: # BB#0:
; BTVER2-NEXT: crc32l %esi, %edi # sched: [3:1.00]
@@ -184,6 +205,13 @@
; HASWELL-NEXT: movq %rdi, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: crc32_64_8:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: crc32b %sil, %edi # sched: [3:1.00]
+; SKYLAKE-NEXT: crc32b (%rdx), %edi # sched: [7:1.00]
+; SKYLAKE-NEXT: movq %rdi, %rax # sched: [1:0.25]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: crc32_64_8:
; BTVER2: # BB#0:
; BTVER2-NEXT: crc32b %sil, %edi # sched: [3:1.00]
@@ -233,6 +261,13 @@
; HASWELL-NEXT: movq %rdi, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: crc32_64_64:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: crc32q %rsi, %rdi # sched: [3:1.00]
+; SKYLAKE-NEXT: crc32q (%rdx), %rdi # sched: [7:1.00]
+; SKYLAKE-NEXT: movq %rdi, %rax # sched: [1:0.25]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: crc32_64_64:
; BTVER2: # BB#0:
; BTVER2-NEXT: crc32q %rsi, %rdi # sched: [3:1.00]
@@ -306,6 +341,19 @@
; HASWELL-NEXT: leal (%rcx,%rsi), %eax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: test_pcmpestri:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: movl $7, %eax # sched: [1:0.25]
+; SKYLAKE-NEXT: movl $7, %edx # sched: [1:0.25]
+; SKYLAKE-NEXT: vpcmpestri $7, %xmm1, %xmm0 # sched: [18:4.00]
+; SKYLAKE-NEXT: movl %ecx, %esi # sched: [1:0.25]
+; SKYLAKE-NEXT: movl $7, %eax # sched: [1:0.25]
+; SKYLAKE-NEXT: movl $7, %edx # sched: [1:0.25]
+; SKYLAKE-NEXT: vpcmpestri $7, (%rdi), %xmm0 # sched: [18:4.00]
+; SKYLAKE-NEXT: # kill: %ECX<def> %ECX<kill> %RCX<def>
+; SKYLAKE-NEXT: leal (%rcx,%rsi), %eax # sched: [1:0.50]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: test_pcmpestri:
; BTVER2: # BB#0:
; BTVER2-NEXT: movl $7, %eax # sched: [1:0.17]
@@ -380,6 +428,16 @@
; HASWELL-NEXT: vpcmpestrm $7, (%rdi), %xmm0 # sched: [19:4.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: test_pcmpestrm:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: movl $7, %eax # sched: [1:0.25]
+; SKYLAKE-NEXT: movl $7, %edx # sched: [1:0.25]
+; SKYLAKE-NEXT: vpcmpestrm $7, %xmm1, %xmm0 # sched: [19:4.00]
+; SKYLAKE-NEXT: movl $7, %eax # sched: [1:0.25]
+; SKYLAKE-NEXT: movl $7, %edx # sched: [1:0.25]
+; SKYLAKE-NEXT: vpcmpestrm $7, (%rdi), %xmm0 # sched: [19:4.00]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: test_pcmpestrm:
; BTVER2: # BB#0:
; BTVER2-NEXT: movl $7, %eax # sched: [1:0.17]
@@ -443,6 +501,15 @@
; HASWELL-NEXT: leal (%rcx,%rax), %eax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: test_pcmpistri:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: vpcmpistri $7, %xmm1, %xmm0 # sched: [11:3.00]
+; SKYLAKE-NEXT: movl %ecx, %eax # sched: [1:0.25]
+; SKYLAKE-NEXT: vpcmpistri $7, (%rdi), %xmm0 # sched: [11:3.00]
+; SKYLAKE-NEXT: # kill: %ECX<def> %ECX<kill> %RCX<def>
+; SKYLAKE-NEXT: leal (%rcx,%rax), %eax # sched: [1:0.50]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: test_pcmpistri:
; BTVER2: # BB#0:
; BTVER2-NEXT: vpcmpistri $7, %xmm1, %xmm0 # sched: [6:1.00]
@@ -493,6 +560,12 @@
; HASWELL-NEXT: vpcmpistrm $7, (%rdi), %xmm0 # sched: [11:3.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: test_pcmpistrm:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: vpcmpistrm $7, %xmm1, %xmm0 # sched: [11:3.00]
+; SKYLAKE-NEXT: vpcmpistrm $7, (%rdi), %xmm0 # sched: [11:3.00]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: test_pcmpistrm:
; BTVER2: # BB#0:
; BTVER2-NEXT: vpcmpistrm $7, %xmm1, %xmm0 # sched: [7:1.00]
@@ -536,6 +609,12 @@
; HASWELL-NEXT: vpcmpgtq (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: test_pcmpgtq:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: vpcmpgtq %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; SKYLAKE-NEXT: vpcmpgtq (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: test_pcmpgtq:
; BTVER2: # BB#0:
; BTVER2-NEXT: vpcmpgtq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
@@ -580,6 +659,12 @@
; HASWELL-NEXT: vpclmulqdq $0, (%rdi), %xmm0, %xmm0 # sched: [11:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; SKYLAKE-LABEL: test_pclmulqdq:
+; SKYLAKE: # BB#0:
+; SKYLAKE-NEXT: vpclmulqdq $0, %xmm1, %xmm0, %xmm0 # sched: [11:2.00]
+; SKYLAKE-NEXT: vpclmulqdq $0, (%rdi), %xmm0, %xmm0 # sched: [11:2.00]
+; SKYLAKE-NEXT: retq # sched: [2:1.00]
+;
; BTVER2-LABEL: test_pclmulqdq:
; BTVER2: # BB#0:
; BTVER2-NEXT: vpclmulqdq $0, %xmm1, %xmm0, %xmm0 # sched: [2:1.00]