[llvm] r320637 - [X86] Move ADX schedule tests out of schedule-x86_64.ll
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 13:49:09 PST 2017
Author: rksimon
Date: Wed Dec 13 13:49:09 2017
New Revision: 320637
URL: http://llvm.org/viewvc/llvm-project?rev=320637&view=rev
Log:
[X86] Move ADX schedule tests out of schedule-x86_64.ll
Added:
llvm/trunk/test/CodeGen/X86/adx-schedule.ll
Modified:
llvm/trunk/test/CodeGen/X86/schedule-x86_64.ll
Added: llvm/trunk/test/CodeGen/X86/adx-schedule.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/adx-schedule.ll?rev=320637&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/adx-schedule.ll (added)
+++ llvm/trunk/test/CodeGen/X86/adx-schedule.ll Wed Dec 13 13:49:09 2017
@@ -0,0 +1,114 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=x86-64 -mattr=+adx | FileCheck %s --check-prefix=CHECK --check-prefix=GENERIC
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE --check-prefix=SKL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE --check-prefix=SKX
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=KNL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=znver1 | FileCheck %s --check-prefix=CHECK --check-prefix=ZNVER1
+
+define void @test_adcx(i32 %a0, i32* %a1, i64 %a2, i64* %a3) optsize {
+; GENERIC-LABEL: test_adcx:
+; GENERIC: # %bb.0:
+; GENERIC-NEXT: #APP
+; GENERIC-NEXT: adcxl %edi, %edi # sched: [1:0.33]
+; GENERIC-NEXT: adcxq %rdx, %rdx # sched: [1:0.33]
+; GENERIC-NEXT: adcxl (%rsi), %edi # sched: [5:0.50]
+; GENERIC-NEXT: adcxq (%rcx), %rdx # sched: [5:0.50]
+; GENERIC-NEXT: #NO_APP
+; GENERIC-NEXT: retq # sched: [1:1.00]
+;
+; BROADWELL-LABEL: test_adcx:
+; BROADWELL: # %bb.0:
+; BROADWELL-NEXT: #APP
+; BROADWELL-NEXT: adcxl %edi, %edi # sched: [1:0.50]
+; BROADWELL-NEXT: adcxq %rdx, %rdx # sched: [1:0.50]
+; BROADWELL-NEXT: adcxl (%rsi), %edi # sched: [6:0.50]
+; BROADWELL-NEXT: adcxq (%rcx), %rdx # sched: [6:0.50]
+; BROADWELL-NEXT: #NO_APP
+; BROADWELL-NEXT: retq # sched: [7:1.00]
+;
+; SKYLAKE-LABEL: test_adcx:
+; SKYLAKE: # %bb.0:
+; SKYLAKE-NEXT: #APP
+; SKYLAKE-NEXT: adcxl %edi, %edi # sched: [1:0.50]
+; SKYLAKE-NEXT: adcxq %rdx, %rdx # sched: [1:0.50]
+; SKYLAKE-NEXT: adcxl (%rsi), %edi # sched: [6:0.50]
+; SKYLAKE-NEXT: adcxq (%rcx), %rdx # sched: [6:0.50]
+; SKYLAKE-NEXT: #NO_APP
+; SKYLAKE-NEXT: retq # sched: [7:1.00]
+;
+; KNL-LABEL: test_adcx:
+; KNL: # %bb.0:
+; KNL-NEXT: #APP
+; KNL-NEXT: adcxl %edi, %edi # sched: [1:0.25]
+; KNL-NEXT: adcxq %rdx, %rdx # sched: [1:0.25]
+; KNL-NEXT: adcxl (%rsi), %edi # sched: [6:0.50]
+; KNL-NEXT: adcxq (%rcx), %rdx # sched: [6:0.50]
+; KNL-NEXT: #NO_APP
+; KNL-NEXT: retq # sched: [7:1.00]
+;
+; ZNVER1-LABEL: test_adcx:
+; ZNVER1: # %bb.0:
+; ZNVER1-NEXT: #APP
+; ZNVER1-NEXT: adcxl %edi, %edi # sched: [1:0.25]
+; ZNVER1-NEXT: adcxq %rdx, %rdx # sched: [1:0.25]
+; ZNVER1-NEXT: adcxl (%rsi), %edi # sched: [5:0.50]
+; ZNVER1-NEXT: adcxq (%rcx), %rdx # sched: [5:0.50]
+; ZNVER1-NEXT: #NO_APP
+; ZNVER1-NEXT: retq # sched: [1:0.50]
+ tail call void asm "adcx $0, $0 \0A\09 adcx $2, $2 \0A\09 adcx $1, $0 \0A\09 adcx $3, $2", "r,*m,r,*m"(i32 %a0, i32* %a1, i64 %a2, i64* %a3) nounwind
+ ret void
+}
+define void @test_adox(i32 %a0, i32* %a1, i64 %a2, i64* %a3) optsize {
+; GENERIC-LABEL: test_adox:
+; GENERIC: # %bb.0:
+; GENERIC-NEXT: #APP
+; GENERIC-NEXT: adoxl %edi, %edi # sched: [1:0.33]
+; GENERIC-NEXT: adoxq %rdx, %rdx # sched: [1:0.33]
+; GENERIC-NEXT: adoxl (%rsi), %edi # sched: [5:0.50]
+; GENERIC-NEXT: adoxq (%rcx), %rdx # sched: [5:0.50]
+; GENERIC-NEXT: #NO_APP
+; GENERIC-NEXT: retq # sched: [1:1.00]
+;
+; BROADWELL-LABEL: test_adox:
+; BROADWELL: # %bb.0:
+; BROADWELL-NEXT: #APP
+; BROADWELL-NEXT: adoxl %edi, %edi # sched: [1:0.50]
+; BROADWELL-NEXT: adoxq %rdx, %rdx # sched: [1:0.50]
+; BROADWELL-NEXT: adoxl (%rsi), %edi # sched: [6:0.50]
+; BROADWELL-NEXT: adoxq (%rcx), %rdx # sched: [6:0.50]
+; BROADWELL-NEXT: #NO_APP
+; BROADWELL-NEXT: retq # sched: [7:1.00]
+;
+; SKYLAKE-LABEL: test_adox:
+; SKYLAKE: # %bb.0:
+; SKYLAKE-NEXT: #APP
+; SKYLAKE-NEXT: adoxl %edi, %edi # sched: [1:0.50]
+; SKYLAKE-NEXT: adoxq %rdx, %rdx # sched: [1:0.50]
+; SKYLAKE-NEXT: adoxl (%rsi), %edi # sched: [6:0.50]
+; SKYLAKE-NEXT: adoxq (%rcx), %rdx # sched: [6:0.50]
+; SKYLAKE-NEXT: #NO_APP
+; SKYLAKE-NEXT: retq # sched: [7:1.00]
+;
+; KNL-LABEL: test_adox:
+; KNL: # %bb.0:
+; KNL-NEXT: #APP
+; KNL-NEXT: adoxl %edi, %edi # sched: [1:0.25]
+; KNL-NEXT: adoxq %rdx, %rdx # sched: [1:0.25]
+; KNL-NEXT: adoxl (%rsi), %edi # sched: [6:0.50]
+; KNL-NEXT: adoxq (%rcx), %rdx # sched: [6:0.50]
+; KNL-NEXT: #NO_APP
+; KNL-NEXT: retq # sched: [7:1.00]
+;
+; ZNVER1-LABEL: test_adox:
+; ZNVER1: # %bb.0:
+; ZNVER1-NEXT: #APP
+; ZNVER1-NEXT: adoxl %edi, %edi # sched: [1:0.25]
+; ZNVER1-NEXT: adoxq %rdx, %rdx # sched: [1:0.25]
+; ZNVER1-NEXT: adoxl (%rsi), %edi # sched: [5:0.50]
+; ZNVER1-NEXT: adoxq (%rcx), %rdx # sched: [5:0.50]
+; ZNVER1-NEXT: #NO_APP
+; ZNVER1-NEXT: retq # sched: [1:0.50]
+ tail call void asm "adox $0, $0 \0A\09 adox $2, $2 \0A\09 adox $1, $0 \0A\09 adox $3, $2", "r,*m,r,*m"(i32 %a0, i32* %a1, i64 %a2, i64* %a3) nounwind
+ ret void
+}
Modified: llvm/trunk/test/CodeGen/X86/schedule-x86_64.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/schedule-x86_64.ll?rev=320637&r1=320636&r2=320637&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/schedule-x86_64.ll (original)
+++ llvm/trunk/test/CodeGen/X86/schedule-x86_64.ll Wed Dec 13 13:49:09 2017
@@ -654,110 +654,6 @@ define void @test_adc_64(i64 %a0, i64* %
ret void
}
-define void @test_adcx(i32 %a0, i32* %a1, i64 %a2, i64* %a3) optsize {
-; GENERIC-LABEL: test_adcx:
-; GENERIC: # %bb.0:
-; GENERIC-NEXT: #APP
-; GENERIC-NEXT: adcxl %edi, %edi # sched: [1:0.33]
-; GENERIC-NEXT: adcxq %rdx, %rdx # sched: [1:0.33]
-; GENERIC-NEXT: adcxl (%rsi), %edi # sched: [5:0.50]
-; GENERIC-NEXT: adcxq (%rcx), %rdx # sched: [5:0.50]
-; GENERIC-NEXT: #NO_APP
-; GENERIC-NEXT: retq # sched: [1:1.00]
-;
-; ATOM-LABEL: test_adcx:
-; ATOM: # %bb.0:
-; ATOM-NEXT: #APP
-; ATOM-NEXT: adcxl %edi, %edi # sched: [1:0.50]
-; ATOM-NEXT: adcxq %rdx, %rdx # sched: [1:0.50]
-; ATOM-NEXT: adcxl (%rsi), %edi # sched: [1:1.00]
-; ATOM-NEXT: adcxq (%rcx), %rdx # sched: [1:1.00]
-; ATOM-NEXT: #NO_APP
-; ATOM-NEXT: retq # sched: [79:39.50]
-;
-; SLM-LABEL: test_adcx:
-; SLM: # %bb.0:
-; SLM-NEXT: #APP
-; SLM-NEXT: adcxl %edi, %edi # sched: [1:0.50]
-; SLM-NEXT: adcxq %rdx, %rdx # sched: [1:0.50]
-; SLM-NEXT: adcxl (%rsi), %edi # sched: [4:1.00]
-; SLM-NEXT: adcxq (%rcx), %rdx # sched: [4:1.00]
-; SLM-NEXT: #NO_APP
-; SLM-NEXT: retq # sched: [4:1.00]
-;
-; SANDY-LABEL: test_adcx:
-; SANDY: # %bb.0:
-; SANDY-NEXT: #APP
-; SANDY-NEXT: adcxl %edi, %edi # sched: [1:0.33]
-; SANDY-NEXT: adcxq %rdx, %rdx # sched: [1:0.33]
-; SANDY-NEXT: adcxl (%rsi), %edi # sched: [5:0.50]
-; SANDY-NEXT: adcxq (%rcx), %rdx # sched: [5:0.50]
-; SANDY-NEXT: #NO_APP
-; SANDY-NEXT: retq # sched: [1:1.00]
-;
-; HASWELL-LABEL: test_adcx:
-; HASWELL: # %bb.0:
-; HASWELL-NEXT: #APP
-; HASWELL-NEXT: adcxl %edi, %edi # sched: [1:0.25]
-; HASWELL-NEXT: adcxq %rdx, %rdx # sched: [1:0.25]
-; HASWELL-NEXT: adcxl (%rsi), %edi # sched: [6:0.50]
-; HASWELL-NEXT: adcxq (%rcx), %rdx # sched: [6:0.50]
-; HASWELL-NEXT: #NO_APP
-; HASWELL-NEXT: retq # sched: [7:1.00]
-;
-; BROADWELL-LABEL: test_adcx:
-; BROADWELL: # %bb.0:
-; BROADWELL-NEXT: #APP
-; BROADWELL-NEXT: adcxl %edi, %edi # sched: [1:0.50]
-; BROADWELL-NEXT: adcxq %rdx, %rdx # sched: [1:0.50]
-; BROADWELL-NEXT: adcxl (%rsi), %edi # sched: [6:0.50]
-; BROADWELL-NEXT: adcxq (%rcx), %rdx # sched: [6:0.50]
-; BROADWELL-NEXT: #NO_APP
-; BROADWELL-NEXT: retq # sched: [7:1.00]
-;
-; SKYLAKE-LABEL: test_adcx:
-; SKYLAKE: # %bb.0:
-; SKYLAKE-NEXT: #APP
-; SKYLAKE-NEXT: adcxl %edi, %edi # sched: [1:0.50]
-; SKYLAKE-NEXT: adcxq %rdx, %rdx # sched: [1:0.50]
-; SKYLAKE-NEXT: adcxl (%rsi), %edi # sched: [6:0.50]
-; SKYLAKE-NEXT: adcxq (%rcx), %rdx # sched: [6:0.50]
-; SKYLAKE-NEXT: #NO_APP
-; SKYLAKE-NEXT: retq # sched: [7:1.00]
-;
-; SKX-LABEL: test_adcx:
-; SKX: # %bb.0:
-; SKX-NEXT: #APP
-; SKX-NEXT: adcxl %edi, %edi # sched: [1:0.50]
-; SKX-NEXT: adcxq %rdx, %rdx # sched: [1:0.50]
-; SKX-NEXT: adcxl (%rsi), %edi # sched: [6:0.50]
-; SKX-NEXT: adcxq (%rcx), %rdx # sched: [6:0.50]
-; SKX-NEXT: #NO_APP
-; SKX-NEXT: retq # sched: [7:1.00]
-;
-; BTVER2-LABEL: test_adcx:
-; BTVER2: # %bb.0:
-; BTVER2-NEXT: #APP
-; BTVER2-NEXT: adcxl %edi, %edi # sched: [1:0.50]
-; BTVER2-NEXT: adcxq %rdx, %rdx # sched: [1:0.50]
-; BTVER2-NEXT: adcxl (%rsi), %edi # sched: [4:1.00]
-; BTVER2-NEXT: adcxq (%rcx), %rdx # sched: [4:1.00]
-; BTVER2-NEXT: #NO_APP
-; BTVER2-NEXT: retq # sched: [4:1.00]
-;
-; ZNVER1-LABEL: test_adcx:
-; ZNVER1: # %bb.0:
-; ZNVER1-NEXT: #APP
-; ZNVER1-NEXT: adcxl %edi, %edi # sched: [1:0.25]
-; ZNVER1-NEXT: adcxq %rdx, %rdx # sched: [1:0.25]
-; ZNVER1-NEXT: adcxl (%rsi), %edi # sched: [5:0.50]
-; ZNVER1-NEXT: adcxq (%rcx), %rdx # sched: [5:0.50]
-; ZNVER1-NEXT: #NO_APP
-; ZNVER1-NEXT: retq # sched: [1:0.50]
- tail call void asm "adcx $0, $0 \0A\09 adcx $2, $2 \0A\09 adcx $1, $0 \0A\09 adcx $3, $2", "r,*m,r,*m"(i32 %a0, i32* %a1, i64 %a2, i64* %a3) nounwind
- ret void
-}
-
define void @test_add_8(i8 %a0, i8* %a1) optsize {
; GENERIC-LABEL: test_add_8:
; GENERIC: # %bb.0:
@@ -1401,110 +1297,6 @@ define void @test_add_64(i64 %a0, i64* %
ret void
}
-define void @test_adox(i32 %a0, i32* %a1, i64 %a2, i64* %a3) optsize {
-; GENERIC-LABEL: test_adox:
-; GENERIC: # %bb.0:
-; GENERIC-NEXT: #APP
-; GENERIC-NEXT: adoxl %edi, %edi # sched: [1:0.33]
-; GENERIC-NEXT: adoxq %rdx, %rdx # sched: [1:0.33]
-; GENERIC-NEXT: adoxl (%rsi), %edi # sched: [5:0.50]
-; GENERIC-NEXT: adoxq (%rcx), %rdx # sched: [5:0.50]
-; GENERIC-NEXT: #NO_APP
-; GENERIC-NEXT: retq # sched: [1:1.00]
-;
-; ATOM-LABEL: test_adox:
-; ATOM: # %bb.0:
-; ATOM-NEXT: #APP
-; ATOM-NEXT: adoxl %edi, %edi # sched: [1:0.50]
-; ATOM-NEXT: adoxq %rdx, %rdx # sched: [1:0.50]
-; ATOM-NEXT: adoxl (%rsi), %edi # sched: [1:1.00]
-; ATOM-NEXT: adoxq (%rcx), %rdx # sched: [1:1.00]
-; ATOM-NEXT: #NO_APP
-; ATOM-NEXT: retq # sched: [79:39.50]
-;
-; SLM-LABEL: test_adox:
-; SLM: # %bb.0:
-; SLM-NEXT: #APP
-; SLM-NEXT: adoxl %edi, %edi # sched: [1:0.50]
-; SLM-NEXT: adoxq %rdx, %rdx # sched: [1:0.50]
-; SLM-NEXT: adoxl (%rsi), %edi # sched: [4:1.00]
-; SLM-NEXT: adoxq (%rcx), %rdx # sched: [4:1.00]
-; SLM-NEXT: #NO_APP
-; SLM-NEXT: retq # sched: [4:1.00]
-;
-; SANDY-LABEL: test_adox:
-; SANDY: # %bb.0:
-; SANDY-NEXT: #APP
-; SANDY-NEXT: adoxl %edi, %edi # sched: [1:0.33]
-; SANDY-NEXT: adoxq %rdx, %rdx # sched: [1:0.33]
-; SANDY-NEXT: adoxl (%rsi), %edi # sched: [5:0.50]
-; SANDY-NEXT: adoxq (%rcx), %rdx # sched: [5:0.50]
-; SANDY-NEXT: #NO_APP
-; SANDY-NEXT: retq # sched: [1:1.00]
-;
-; HASWELL-LABEL: test_adox:
-; HASWELL: # %bb.0:
-; HASWELL-NEXT: #APP
-; HASWELL-NEXT: adoxl %edi, %edi # sched: [1:0.25]
-; HASWELL-NEXT: adoxq %rdx, %rdx # sched: [1:0.25]
-; HASWELL-NEXT: adoxl (%rsi), %edi # sched: [6:0.50]
-; HASWELL-NEXT: adoxq (%rcx), %rdx # sched: [6:0.50]
-; HASWELL-NEXT: #NO_APP
-; HASWELL-NEXT: retq # sched: [7:1.00]
-;
-; BROADWELL-LABEL: test_adox:
-; BROADWELL: # %bb.0:
-; BROADWELL-NEXT: #APP
-; BROADWELL-NEXT: adoxl %edi, %edi # sched: [1:0.50]
-; BROADWELL-NEXT: adoxq %rdx, %rdx # sched: [1:0.50]
-; BROADWELL-NEXT: adoxl (%rsi), %edi # sched: [6:0.50]
-; BROADWELL-NEXT: adoxq (%rcx), %rdx # sched: [6:0.50]
-; BROADWELL-NEXT: #NO_APP
-; BROADWELL-NEXT: retq # sched: [7:1.00]
-;
-; SKYLAKE-LABEL: test_adox:
-; SKYLAKE: # %bb.0:
-; SKYLAKE-NEXT: #APP
-; SKYLAKE-NEXT: adoxl %edi, %edi # sched: [1:0.50]
-; SKYLAKE-NEXT: adoxq %rdx, %rdx # sched: [1:0.50]
-; SKYLAKE-NEXT: adoxl (%rsi), %edi # sched: [6:0.50]
-; SKYLAKE-NEXT: adoxq (%rcx), %rdx # sched: [6:0.50]
-; SKYLAKE-NEXT: #NO_APP
-; SKYLAKE-NEXT: retq # sched: [7:1.00]
-;
-; SKX-LABEL: test_adox:
-; SKX: # %bb.0:
-; SKX-NEXT: #APP
-; SKX-NEXT: adoxl %edi, %edi # sched: [1:0.50]
-; SKX-NEXT: adoxq %rdx, %rdx # sched: [1:0.50]
-; SKX-NEXT: adoxl (%rsi), %edi # sched: [6:0.50]
-; SKX-NEXT: adoxq (%rcx), %rdx # sched: [6:0.50]
-; SKX-NEXT: #NO_APP
-; SKX-NEXT: retq # sched: [7:1.00]
-;
-; BTVER2-LABEL: test_adox:
-; BTVER2: # %bb.0:
-; BTVER2-NEXT: #APP
-; BTVER2-NEXT: adoxl %edi, %edi # sched: [1:0.50]
-; BTVER2-NEXT: adoxq %rdx, %rdx # sched: [1:0.50]
-; BTVER2-NEXT: adoxl (%rsi), %edi # sched: [4:1.00]
-; BTVER2-NEXT: adoxq (%rcx), %rdx # sched: [4:1.00]
-; BTVER2-NEXT: #NO_APP
-; BTVER2-NEXT: retq # sched: [4:1.00]
-;
-; ZNVER1-LABEL: test_adox:
-; ZNVER1: # %bb.0:
-; ZNVER1-NEXT: #APP
-; ZNVER1-NEXT: adoxl %edi, %edi # sched: [1:0.25]
-; ZNVER1-NEXT: adoxq %rdx, %rdx # sched: [1:0.25]
-; ZNVER1-NEXT: adoxl (%rsi), %edi # sched: [5:0.50]
-; ZNVER1-NEXT: adoxq (%rcx), %rdx # sched: [5:0.50]
-; ZNVER1-NEXT: #NO_APP
-; ZNVER1-NEXT: retq # sched: [1:0.50]
- tail call void asm "adox $0, $0 \0A\09 adox $2, $2 \0A\09 adox $1, $0 \0A\09 adox $3, $2", "r,*m,r,*m"(i32 %a0, i32* %a1, i64 %a2, i64* %a3) nounwind
- ret void
-}
-
define void @test_and_8(i8 %a0, i8* %a1) optsize {
; GENERIC-LABEL: test_and_8:
; GENERIC: # %bb.0:
More information about the llvm-commits
mailing list