[llvm] r327685 - [X86][Btver2] Tweak pipes test to remove register dependencies
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 15 16:15:11 PDT 2018
Author: rksimon
Date: Thu Mar 15 16:15:11 2018
New Revision: 327685
URL: http://llvm.org/viewvc/llvm-project?rev=327685&view=rev
Log:
[X86][Btver2] Tweak pipes test to remove register dependencies
It gives us a better view of pipe usage in the timeline which is what the test is trying to show.
Modified:
llvm/trunk/test/tools/llvm-mca/X86/BtVer2/pipes-fpu.s
Modified: llvm/trunk/test/tools/llvm-mca/X86/BtVer2/pipes-fpu.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/BtVer2/pipes-fpu.s?rev=327685&r1=327684&r2=327685&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/BtVer2/pipes-fpu.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/BtVer2/pipes-fpu.s Thu Mar 15 16:15:11 2018
@@ -5,23 +5,23 @@ vpmulld %xmm0, %xmm1, %xmm2
vpand %xmm0, %xmm1, %xmm2
# VIMUL/STC
-vcvttps2dq %xmm0, %xmm1
+vcvttps2dq %xmm0, %xmm2
vpclmulqdq $0, %xmm0, %xmm1, %xmm2
# FPA/FPM
vaddps %xmm0, %xmm1, %xmm2
-vsqrtps %xmm0, %xmm1
+vsqrtps %xmm0, %xmm2
# FPA/FPM YMM
vaddps %ymm0, %ymm1, %ymm2
-vsqrtps %ymm0, %ymm1
+vsqrtps %ymm0, %ymm2
# CHECK: Iterations: 70
# CHECK-NEXT: Instructions: 560
-# CHECK-NEXT: Total Cycles: 4484
+# CHECK-NEXT: Total Cycles: 4415
# CHECK-NEXT: Dispatch Width: 2
-# CHECK-NEXT: IPC: 0.12
+# CHECK-NEXT: IPC: 0.13
# CHECK: Instruction Info:
@@ -35,12 +35,12 @@ vsqrtps %ymm0, %ymm1
# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
# CHECK-NEXT: 1 2 1.00 vpmulld %xmm0, %xmm1, %xmm2
# CHECK-NEXT: 1 1 0.50 vpand %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: 1 3 1.00 vcvttps2dq %xmm0, %xmm1
+# CHECK-NEXT: 1 3 1.00 vcvttps2dq %xmm0, %xmm2
# CHECK-NEXT: 1 2 1.00 vpclmulqdq $0, %xmm0, %xmm1, %xmm2
# CHECK-NEXT: 1 3 1.00 vaddps %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: 1 21 21.00 vsqrtps %xmm0, %xmm1
+# CHECK-NEXT: 1 21 21.00 vsqrtps %xmm0, %xmm2
# CHECK-NEXT: 1 3 2.00 vaddps %ymm0, %ymm1, %ymm2
-# CHECK-NEXT: 1 42 42.00 vsqrtps %ymm0, %ymm1
+# CHECK-NEXT: 1 42 42.00 vsqrtps %ymm0, %ymm2
# CHECK: Resources:
@@ -68,32 +68,32 @@ vsqrtps %ymm0, %ymm1
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
# CHECK-NEXT: - - - - - 1.00 - - - - - - - - vpmulld %xmm0, %xmm1, %xmm2
# CHECK-NEXT: - - - - - - 1.00 - - - - - - - vpand %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: - - - - - - 1.00 - - - - - - - vcvttps2dq %xmm0, %xmm1
+# CHECK-NEXT: - - - - - - 1.00 - - - - - - - vcvttps2dq %xmm0, %xmm2
# CHECK-NEXT: - - - - - 1.00 - - - - - - - 1.00 vpclmulqdq $0, %xmm0, %xmm1, %xmm2
# CHECK-NEXT: - - - - - 1.00 - - - - - - - - vaddps %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: - - - - 21.00 - 1.00 - - - - - - - vsqrtps %xmm0, %xmm1
+# CHECK-NEXT: - - - - 21.00 - 1.00 - - - - - - - vsqrtps %xmm0, %xmm2
# CHECK-NEXT: - - - - - 2.00 - - - - - - - - vaddps %ymm0, %ymm1, %ymm2
-# CHECK-NEXT: - - - - 42.00 - 1.00 - - - - - - - vsqrtps %ymm0, %ymm1
+# CHECK-NEXT: - - - - 42.00 - 1.00 - - - - - - - vsqrtps %ymm0, %ymm2
# CHECK: Timeline view:
-# CHECK-NEXT: 0123456789 0123456789 0123456789
-# CHECK-NEXT: Index 0123456789 0123456789 0123456789 0123456789
+# CHECK-NEXT: 0123456789 0123456789 0123456789
+# CHECK-NEXT: Index 0123456789 0123456789 0123456789 01234567
-# CHECK: [0,0] DeeER. . . . . . . . . . . . . . vpmulld %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: [0,1] DeE-R. . . . . . . . . . . . . . vpand %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: [0,2] .DeeeER . . . . . . . . . . . . . vcvttps2dq %xmm0, %xmm1
-# CHECK-NEXT: [0,3] .D===eeER . . . . . . . . . . . . . vpclmulqdq $0, %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: [0,4] . D===eeeER . . . . . . . . . . . . vaddps %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: [0,5] . DeeeeeeeeeeeeeeeeeeeeeER . . . . . . . . . vsqrtps %xmm0, %xmm1
-# CHECK-NEXT: [0,6] . D====================eeeER . . . . . . . . . vaddps %ymm0, %ymm1, %ymm2
-# CHECK-NEXT: [0,7] . D====================eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeER . vsqrtps %ymm0, %ymm1
-
-# CHECK: [1,0] . D=============================================================eeER vpmulld %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: [1,1] . D=============================================================eE-R vpand %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: [1,2] . DeeeE-----------------------------------------------------------R vcvttps2dq %xmm0, %xmm1
-# CHECK-NEXT: [1,3] . D===eeE---------------------------------------------------------R vpclmulqdq $0, %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: [1,4] . .D===eeeE-------------------------------------------------------R vaddps %xmm0, %xmm1, %xmm2
+# CHECK: [0,0] DeeER. . . . . . . . . . . . . . vpmulld %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: [0,1] DeE-R. . . . . . . . . . . . . . vpand %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: [0,2] .DeeeER . . . . . . . . . . . . . vcvttps2dq %xmm0, %xmm2
+# CHECK-NEXT: [0,3] .DeeE-R . . . . . . . . . . . . . vpclmulqdq $0, %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: [0,4] . DeeeER . . . . . . . . . . . . . vaddps %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: [0,5] . DeeeeeeeeeeeeeeeeeeeeeER . . . . . . . . . vsqrtps %xmm0, %xmm2
+# CHECK-NEXT: [0,6] . DeeeE-----------------R . . . . . . . . . vaddps %ymm0, %ymm1, %ymm2
+# CHECK-NEXT: [0,7] . D====================eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeER vsqrtps %ymm0, %ymm2
+
+# CHECK: [1,0] . D=eeE----------------------------------------------------------R vpmulld %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: [1,1] . DeE------------------------------------------------------------R vpand %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: [1,2] . DeeeE---------------------------------------------------------R vcvttps2dq %xmm0, %xmm2
+# CHECK-NEXT: [1,3] . D=eeE---------------------------------------------------------R vpclmulqdq $0, %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: [1,4] . .D=eeeE-------------------------------------------------------R vaddps %xmm0, %xmm1, %xmm2
# CHECK: Average Wait times (based on the timeline view):
@@ -103,11 +103,11 @@ vsqrtps %ymm0, %ymm1
# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
# CHECK: [0] [1] [2] [3]
-# CHECK-NEXT: 0. 2 31.5 0.5 0.0 vpmulld %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: 1. 2 31.5 0.5 1.0 vpand %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: 2. 2 1.0 1.0 29.5 vcvttps2dq %xmm0, %xmm1
-# CHECK-NEXT: 3. 2 4.0 0.0 28.5 vpclmulqdq $0, %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: 4. 2 4.0 1.0 27.5 vaddps %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: 5. 1 1.0 1.0 0.0 vsqrtps %xmm0, %xmm1
-# CHECK-NEXT: 6. 1 21.0 0.0 0.0 vaddps %ymm0, %ymm1, %ymm2
-# CHECK-NEXT: 7. 1 21.0 21.0 0.0 vsqrtps %ymm0, %ymm1
+# CHECK-NEXT: 0. 2 1.5 1.5 29.0 vpmulld %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: 1. 2 1.0 1.0 30.5 vpand %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: 2. 2 1.0 1.0 28.5 vcvttps2dq %xmm0, %xmm2
+# CHECK-NEXT: 3. 2 1.5 1.5 29.0 vpclmulqdq $0, %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: 4. 2 1.5 1.5 27.5 vaddps %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: 5. 1 1.0 1.0 0.0 vsqrtps %xmm0, %xmm2
+# CHECK-NEXT: 6. 1 1.0 1.0 17.0 vaddps %ymm0, %ymm1, %ymm2
+# CHECK-NEXT: 7. 1 21.0 21.0 0.0 vsqrtps %ymm0, %ymm2
More information about the llvm-commits
mailing list