[llvm] r337302 - [llvm-mca][x86] Add BSWAP resource tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 17 10:10:47 PDT 2018
Author: rksimon
Date: Tue Jul 17 10:10:47 2018
New Revision: 337302
URL: http://llvm.org/viewvc/llvm-project?rev=337302&view=rev
Log:
[llvm-mca][x86] Add BSWAP resource tests
Modified:
llvm/trunk/test/tools/llvm-mca/X86/Atom/resources-x86_64.s
llvm/trunk/test/tools/llvm-mca/X86/Broadwell/resources-x86_64.s
llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-x86_64.s
llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-x86_64.s
llvm/trunk/test/tools/llvm-mca/X86/Haswell/resources-x86_64.s
llvm/trunk/test/tools/llvm-mca/X86/SLM/resources-x86_64.s
llvm/trunk/test/tools/llvm-mca/X86/SandyBridge/resources-x86_64.s
llvm/trunk/test/tools/llvm-mca/X86/SkylakeClient/resources-x86_64.s
llvm/trunk/test/tools/llvm-mca/X86/SkylakeServer/resources-x86_64.s
llvm/trunk/test/tools/llvm-mca/X86/Znver1/resources-x86_64.s
Modified: llvm/trunk/test/tools/llvm-mca/X86/Atom/resources-x86_64.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/Atom/resources-x86_64.s?rev=337302&r1=337301&r2=337302&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/Atom/resources-x86_64.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/Atom/resources-x86_64.s Tue Jul 17 10:10:47 2018
@@ -118,6 +118,9 @@ bsrq %rsi, %rdi
bsfq (%rax), %rdi
bsrq (%rax), %rdi
+bswap %eax
+bswap %rax
+
btw %si, %di
btcw %si, %di
btrw %si, %di
@@ -730,6 +733,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 1 16 8.00 bsrq %rsi, %rdi
# CHECK-NEXT: 1 16 8.00 * bsfq (%rax), %rdi
# CHECK-NEXT: 1 16 8.00 * bsrq (%rax), %rdi
+# CHECK-NEXT: 1 1 1.00 bswapl %eax
+# CHECK-NEXT: 1 1 1.00 bswapq %rax
# CHECK-NEXT: 1 1 1.00 btw %si, %di
# CHECK-NEXT: 1 1 1.00 btcw %si, %di
# CHECK-NEXT: 1 1 1.00 btrw %si, %di
@@ -1189,7 +1194,7 @@ xorq (%rax), %rdi
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1]
-# CHECK-NEXT: 1356.50 1061.50
+# CHECK-NEXT: 1358.50 1061.50
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] Instructions:
@@ -1295,6 +1300,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 8.00 8.00 bsrq %rsi, %rdi
# CHECK-NEXT: 8.00 8.00 bsfq (%rax), %rdi
# CHECK-NEXT: 8.00 8.00 bsrq (%rax), %rdi
+# CHECK-NEXT: 1.00 - bswapl %eax
+# CHECK-NEXT: 1.00 - bswapq %rax
# CHECK-NEXT: - 1.00 btw %si, %di
# CHECK-NEXT: - 1.00 btcw %si, %di
# CHECK-NEXT: - 1.00 btrw %si, %di
Modified: llvm/trunk/test/tools/llvm-mca/X86/Broadwell/resources-x86_64.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/Broadwell/resources-x86_64.s?rev=337302&r1=337301&r2=337302&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/Broadwell/resources-x86_64.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/Broadwell/resources-x86_64.s Tue Jul 17 10:10:47 2018
@@ -118,6 +118,9 @@ bsrq %rsi, %rdi
bsfq (%rax), %rdi
bsrq (%rax), %rdi
+bswap %eax
+bswap %rax
+
btw %si, %di
btcw %si, %di
btrw %si, %di
@@ -730,6 +733,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 1 3 1.00 bsrq %rsi, %rdi
# CHECK-NEXT: 2 8 1.00 * bsfq (%rax), %rdi
# CHECK-NEXT: 2 8 1.00 * bsrq (%rax), %rdi
+# CHECK-NEXT: 1 1 0.50 bswapl %eax
+# CHECK-NEXT: 2 2 0.50 bswapq %rax
# CHECK-NEXT: 1 1 0.50 btw %si, %di
# CHECK-NEXT: 1 1 0.50 btcw %si, %di
# CHECK-NEXT: 1 1 0.50 btrw %si, %di
@@ -1197,7 +1202,7 @@ xorq (%rax), %rdi
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
-# CHECK-NEXT: 50.00 - 363.00 254.50 205.00 205.00 167.00 148.00 328.50 69.00
+# CHECK-NEXT: 50.00 - 363.50 255.50 205.00 205.00 167.00 149.00 329.00 69.00
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
@@ -1303,6 +1308,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 - - - - - - bsrq %rsi, %rdi
# CHECK-NEXT: - - - 1.00 0.50 0.50 - - - - bsfq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 0.50 0.50 - - - - bsrq (%rax), %rdi
+# CHECK-NEXT: - - - 0.50 - - - 0.50 - - bswapl %eax
+# CHECK-NEXT: - - 0.50 0.50 - - - 0.50 0.50 - bswapq %rax
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btw %si, %di
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btcw %si, %di
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btrw %si, %di
Modified: llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-x86_64.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-x86_64.s?rev=337302&r1=337301&r2=337302&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-x86_64.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-x86_64.s Tue Jul 17 10:10:47 2018
@@ -118,6 +118,9 @@ bsrq %rsi, %rdi
bsfq (%rax), %rdi
bsrq (%rax), %rdi
+bswap %eax
+bswap %rax
+
btw %si, %di
btcw %si, %di
btrw %si, %di
@@ -730,6 +733,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 8 5 2.00 bsrq %rsi, %rdi
# CHECK-NEXT: 8 8 2.00 * bsfq (%rax), %rdi
# CHECK-NEXT: 8 8 2.00 * bsrq (%rax), %rdi
+# CHECK-NEXT: 1 1 0.50 bswapl %eax
+# CHECK-NEXT: 1 1 0.50 bswapq %rax
# CHECK-NEXT: 1 1 0.50 btw %si, %di
# CHECK-NEXT: 1 1 0.50 btcw %si, %di
# CHECK-NEXT: 1 1 0.50 btrw %si, %di
@@ -1201,7 +1206,7 @@ xorq (%rax), %rdi
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
-# CHECK-NEXT: 462.00 512.00 380.00 - - - - 269.00 64.00 195.00 - - - -
+# CHECK-NEXT: 463.00 513.00 380.00 - - - - 269.00 64.00 195.00 - - - -
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
@@ -1307,6 +1312,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 2.00 2.00 - - - - - - - - - - - - bsrq %rsi, %rdi
# CHECK-NEXT: 2.00 2.00 - - - - - 1.00 - - - - - - bsfq (%rax), %rdi
# CHECK-NEXT: 2.00 2.00 - - - - - 1.00 - - - - - - bsrq (%rax), %rdi
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - bswapl %eax
+# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - bswapq %rax
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - btw %si, %di
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - btcw %si, %di
# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - btrw %si, %di
Modified: llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-x86_64.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-x86_64.s?rev=337302&r1=337301&r2=337302&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-x86_64.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/Generic/resources-x86_64.s Tue Jul 17 10:10:47 2018
@@ -118,6 +118,9 @@ bsrq %rsi, %rdi
bsfq (%rax), %rdi
bsrq (%rax), %rdi
+bswap %eax
+bswap %rax
+
btw %si, %di
btcw %si, %di
btrw %si, %di
@@ -730,6 +733,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 1 3 1.00 bsrq %rsi, %rdi
# CHECK-NEXT: 2 8 1.00 * bsfq (%rax), %rdi
# CHECK-NEXT: 2 8 1.00 * bsrq (%rax), %rdi
+# CHECK-NEXT: 1 1 1.00 bswapl %eax
+# CHECK-NEXT: 2 2 1.00 bswapq %rax
# CHECK-NEXT: 1 1 0.50 btw %si, %di
# CHECK-NEXT: 1 1 0.50 btcw %si, %di
# CHECK-NEXT: 1 1 0.50 btrw %si, %di
@@ -1195,7 +1200,7 @@ xorq (%rax), %rdi
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
-# CHECK-NEXT: 160.00 - 347.33 153.33 210.00 339.33 241.00 241.00
+# CHECK-NEXT: 160.00 - 347.83 155.33 210.00 339.83 241.00 241.00
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
@@ -1301,6 +1306,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 - - - - bsrq %rsi, %rdi
# CHECK-NEXT: - - - 1.00 - - 0.50 0.50 bsfq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 - - 0.50 0.50 bsrq (%rax), %rdi
+# CHECK-NEXT: - - - 1.00 - - - - bswapl %eax
+# CHECK-NEXT: - - 0.50 1.00 - 0.50 - - bswapq %rax
# CHECK-NEXT: - - 0.50 - - 0.50 - - btw %si, %di
# CHECK-NEXT: - - 0.50 - - 0.50 - - btcw %si, %di
# CHECK-NEXT: - - 0.50 - - 0.50 - - btrw %si, %di
Modified: llvm/trunk/test/tools/llvm-mca/X86/Haswell/resources-x86_64.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/Haswell/resources-x86_64.s?rev=337302&r1=337301&r2=337302&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/Haswell/resources-x86_64.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/Haswell/resources-x86_64.s Tue Jul 17 10:10:47 2018
@@ -118,6 +118,9 @@ bsrq %rsi, %rdi
bsfq (%rax), %rdi
bsrq (%rax), %rdi
+bswap %eax
+bswap %rax
+
btw %si, %di
btcw %si, %di
btrw %si, %di
@@ -730,6 +733,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 1 3 1.00 bsrq %rsi, %rdi
# CHECK-NEXT: 2 8 1.00 * bsfq (%rax), %rdi
# CHECK-NEXT: 2 8 1.00 * bsrq (%rax), %rdi
+# CHECK-NEXT: 1 1 0.50 bswapl %eax
+# CHECK-NEXT: 2 2 0.50 bswapq %rax
# CHECK-NEXT: 1 1 0.50 btw %si, %di
# CHECK-NEXT: 1 1 0.50 btcw %si, %di
# CHECK-NEXT: 1 1 0.50 btrw %si, %di
@@ -1197,7 +1202,7 @@ xorq (%rax), %rdi
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
-# CHECK-NEXT: 80.00 - 414.00 275.50 196.00 196.00 158.00 171.00 408.50 66.00
+# CHECK-NEXT: 80.00 - 414.50 276.50 196.00 196.00 158.00 172.00 409.00 66.00
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
@@ -1303,6 +1308,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 - - - - - - bsrq %rsi, %rdi
# CHECK-NEXT: - - - 1.00 0.50 0.50 - - - - bsfq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 0.50 0.50 - - - - bsrq (%rax), %rdi
+# CHECK-NEXT: - - - 0.50 - - - 0.50 - - bswapl %eax
+# CHECK-NEXT: - - 0.50 0.50 - - - 0.50 0.50 - bswapq %rax
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btw %si, %di
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btcw %si, %di
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btrw %si, %di
Modified: llvm/trunk/test/tools/llvm-mca/X86/SLM/resources-x86_64.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/SLM/resources-x86_64.s?rev=337302&r1=337301&r2=337302&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/SLM/resources-x86_64.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/SLM/resources-x86_64.s Tue Jul 17 10:10:47 2018
@@ -118,6 +118,9 @@ bsrq %rsi, %rdi
bsfq (%rax), %rdi
bsrq (%rax), %rdi
+bswap %eax
+bswap %rax
+
btw %si, %di
btcw %si, %di
btrw %si, %di
@@ -730,6 +733,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 10 10 10.00 bsrq %rsi, %rdi
# CHECK-NEXT: 10 13 10.00 * bsfq (%rax), %rdi
# CHECK-NEXT: 10 13 10.00 * bsrq (%rax), %rdi
+# CHECK-NEXT: 1 1 0.50 bswapl %eax
+# CHECK-NEXT: 1 1 0.50 bswapq %rax
# CHECK-NEXT: 1 1 0.50 btw %si, %di
# CHECK-NEXT: 1 1 0.50 btcw %si, %di
# CHECK-NEXT: 1 1 0.50 btrw %si, %di
@@ -1195,7 +1200,7 @@ xorq (%rax), %rdi
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7]
-# CHECK-NEXT: 400.00 - - - - 513.00 355.00 476.00
+# CHECK-NEXT: 400.00 - - - - 514.00 356.00 476.00
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] Instructions:
@@ -1301,6 +1306,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: - - - - - 10.00 10.00 - bsrq %rsi, %rdi
# CHECK-NEXT: - - - - - 10.00 10.00 1.00 bsfq (%rax), %rdi
# CHECK-NEXT: - - - - - 10.00 10.00 1.00 bsrq (%rax), %rdi
+# CHECK-NEXT: - - - - - 0.50 0.50 - bswapl %eax
+# CHECK-NEXT: - - - - - 0.50 0.50 - bswapq %rax
# CHECK-NEXT: - - - - - 0.50 0.50 - btw %si, %di
# CHECK-NEXT: - - - - - 0.50 0.50 - btcw %si, %di
# CHECK-NEXT: - - - - - 0.50 0.50 - btrw %si, %di
Modified: llvm/trunk/test/tools/llvm-mca/X86/SandyBridge/resources-x86_64.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/SandyBridge/resources-x86_64.s?rev=337302&r1=337301&r2=337302&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/SandyBridge/resources-x86_64.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/SandyBridge/resources-x86_64.s Tue Jul 17 10:10:47 2018
@@ -118,6 +118,9 @@ bsrq %rsi, %rdi
bsfq (%rax), %rdi
bsrq (%rax), %rdi
+bswap %eax
+bswap %rax
+
btw %si, %di
btcw %si, %di
btrw %si, %di
@@ -730,6 +733,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 1 3 1.00 bsrq %rsi, %rdi
# CHECK-NEXT: 2 8 1.00 * bsfq (%rax), %rdi
# CHECK-NEXT: 2 8 1.00 * bsrq (%rax), %rdi
+# CHECK-NEXT: 1 1 1.00 bswapl %eax
+# CHECK-NEXT: 2 2 1.00 bswapq %rax
# CHECK-NEXT: 1 1 0.50 btw %si, %di
# CHECK-NEXT: 1 1 0.50 btcw %si, %di
# CHECK-NEXT: 1 1 0.50 btrw %si, %di
@@ -1195,7 +1200,7 @@ xorq (%rax), %rdi
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
-# CHECK-NEXT: 160.00 - 347.33 153.33 210.00 339.33 241.00 241.00
+# CHECK-NEXT: 160.00 - 347.83 155.33 210.00 339.83 241.00 241.00
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
@@ -1301,6 +1306,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 - - - - bsrq %rsi, %rdi
# CHECK-NEXT: - - - 1.00 - - 0.50 0.50 bsfq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 - - 0.50 0.50 bsrq (%rax), %rdi
+# CHECK-NEXT: - - - 1.00 - - - - bswapl %eax
+# CHECK-NEXT: - - 0.50 1.00 - 0.50 - - bswapq %rax
# CHECK-NEXT: - - 0.50 - - 0.50 - - btw %si, %di
# CHECK-NEXT: - - 0.50 - - 0.50 - - btcw %si, %di
# CHECK-NEXT: - - 0.50 - - 0.50 - - btrw %si, %di
Modified: llvm/trunk/test/tools/llvm-mca/X86/SkylakeClient/resources-x86_64.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/SkylakeClient/resources-x86_64.s?rev=337302&r1=337301&r2=337302&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/SkylakeClient/resources-x86_64.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/SkylakeClient/resources-x86_64.s Tue Jul 17 10:10:47 2018
@@ -118,6 +118,9 @@ bsrq %rsi, %rdi
bsfq (%rax), %rdi
bsrq (%rax), %rdi
+bswap %eax
+bswap %rax
+
btw %si, %di
btcw %si, %di
btrw %si, %di
@@ -730,6 +733,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 1 3 1.00 bsrq %rsi, %rdi
# CHECK-NEXT: 2 8 1.00 * bsfq (%rax), %rdi
# CHECK-NEXT: 2 8 1.00 * bsrq (%rax), %rdi
+# CHECK-NEXT: 1 1 0.50 bswapl %eax
+# CHECK-NEXT: 2 2 0.50 bswapq %rax
# CHECK-NEXT: 1 1 0.50 btw %si, %di
# CHECK-NEXT: 1 1 0.50 btcw %si, %di
# CHECK-NEXT: 1 1 0.50 btrw %si, %di
@@ -1197,7 +1202,7 @@ xorq (%rax), %rdi
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
-# CHECK-NEXT: 60.00 - 430.50 235.50 205.00 205.00 167.00 184.00 415.00 69.00
+# CHECK-NEXT: 60.00 - 431.00 236.50 205.00 205.00 167.00 185.00 415.50 69.00
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
@@ -1303,6 +1308,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 - - - - - - bsrq %rsi, %rdi
# CHECK-NEXT: - - - 1.00 0.50 0.50 - - - - bsfq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 0.50 0.50 - - - - bsrq (%rax), %rdi
+# CHECK-NEXT: - - - 0.50 - - - 0.50 - - bswapl %eax
+# CHECK-NEXT: - - 0.50 0.50 - - - 0.50 0.50 - bswapq %rax
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btw %si, %di
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btcw %si, %di
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btrw %si, %di
Modified: llvm/trunk/test/tools/llvm-mca/X86/SkylakeServer/resources-x86_64.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/SkylakeServer/resources-x86_64.s?rev=337302&r1=337301&r2=337302&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/SkylakeServer/resources-x86_64.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/SkylakeServer/resources-x86_64.s Tue Jul 17 10:10:47 2018
@@ -118,6 +118,9 @@ bsrq %rsi, %rdi
bsfq (%rax), %rdi
bsrq (%rax), %rdi
+bswap %eax
+bswap %rax
+
btw %si, %di
btcw %si, %di
btrw %si, %di
@@ -730,6 +733,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 1 3 1.00 bsrq %rsi, %rdi
# CHECK-NEXT: 2 8 1.00 * bsfq (%rax), %rdi
# CHECK-NEXT: 2 8 1.00 * bsrq (%rax), %rdi
+# CHECK-NEXT: 1 1 0.50 bswapl %eax
+# CHECK-NEXT: 2 2 0.50 bswapq %rax
# CHECK-NEXT: 1 1 0.50 btw %si, %di
# CHECK-NEXT: 1 1 0.50 btcw %si, %di
# CHECK-NEXT: 1 1 0.50 btrw %si, %di
@@ -1197,7 +1202,7 @@ xorq (%rax), %rdi
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
-# CHECK-NEXT: 60.00 - 430.75 235.75 205.00 205.00 167.00 184.25 415.25 69.00
+# CHECK-NEXT: 60.00 - 431.25 236.75 205.00 205.00 167.00 185.25 415.75 69.00
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
@@ -1303,6 +1308,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 - - - - - - bsrq %rsi, %rdi
# CHECK-NEXT: - - - 1.00 0.50 0.50 - - - - bsfq (%rax), %rdi
# CHECK-NEXT: - - - 1.00 0.50 0.50 - - - - bsrq (%rax), %rdi
+# CHECK-NEXT: - - - 0.50 - - - 0.50 - - bswapl %eax
+# CHECK-NEXT: - - 0.50 0.50 - - - 0.50 0.50 - bswapq %rax
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btw %si, %di
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btcw %si, %di
# CHECK-NEXT: - - 0.50 - - - - - 0.50 - btrw %si, %di
Modified: llvm/trunk/test/tools/llvm-mca/X86/Znver1/resources-x86_64.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/Znver1/resources-x86_64.s?rev=337302&r1=337301&r2=337302&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/Znver1/resources-x86_64.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/Znver1/resources-x86_64.s Tue Jul 17 10:10:47 2018
@@ -118,6 +118,9 @@ bsrq %rsi, %rdi
bsfq (%rax), %rdi
bsrq (%rax), %rdi
+bswap %eax
+bswap %rax
+
btw %si, %di
btcw %si, %di
btrw %si, %di
@@ -730,6 +733,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: 1 3 0.25 bsrq %rsi, %rdi
# CHECK-NEXT: 2 7 0.50 * bsfq (%rax), %rdi
# CHECK-NEXT: 2 7 0.50 * bsrq (%rax), %rdi
+# CHECK-NEXT: 1 1 1.00 bswapl %eax
+# CHECK-NEXT: 1 1 1.00 bswapq %rax
# CHECK-NEXT: 1 1 0.25 btw %si, %di
# CHECK-NEXT: 2 2 0.25 btcw %si, %di
# CHECK-NEXT: 2 2 0.25 btrw %si, %di
@@ -1199,7 +1204,7 @@ xorq (%rax), %rdi
# CHECK: Resource pressure per iteration:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
-# CHECK-NEXT: 134.50 134.50 115.00 149.00 131.00 115.00 392.00 - - - - 34.00
+# CHECK-NEXT: 134.50 134.50 117.00 151.00 133.00 117.00 392.00 - - - - 34.00
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] Instructions:
@@ -1305,6 +1310,8 @@ xorq (%rax), %rdi
# CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - bsrq %rsi, %rdi
# CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - bsfq (%rax), %rdi
# CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - bsrq (%rax), %rdi
+# CHECK-NEXT: - - 1.00 1.00 1.00 1.00 - - - - - - bswapl %eax
+# CHECK-NEXT: - - 1.00 1.00 1.00 1.00 - - - - - - bswapq %rax
# CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - btw %si, %di
# CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - btcw %si, %di
# CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - btrw %si, %di
More information about the llvm-commits
mailing list