[llvm] r327805 - [X86][Btver2] Add crc32 resource tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 18 11:55:34 PDT 2018
Author: rksimon
Date: Sun Mar 18 11:55:34 2018
New Revision: 327805
URL: http://llvm.org/viewvc/llvm-project?rev=327805&view=rev
Log:
[X86][Btver2] Add crc32 resource tests
Modified:
llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse42.s
Modified: llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse42.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse42.s?rev=327805&r1=327804&r2=327805&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse42.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse42.s Sun Mar 18 11:55:34 2018
@@ -1,5 +1,20 @@
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 < %s | FileCheck %s --check-prefixes=CHECK,BTVER2
+crc32b %al, %ecx
+crc32b (%rax), %ecx
+
+crc32l %eax, %ecx
+crc32l (%rax), %ecx
+
+crc32w %ax, %ecx
+crc32w (%rax), %ecx
+
+crc32b %al, %rcx
+crc32b (%rax), %rcx
+
+crc32q %rax, %rcx
+crc32q (%rax), %rcx
+
pcmpestri $1, %xmm0, %xmm2
pcmpestri $1, (%rax), %xmm2
@@ -33,6 +48,16 @@ pcmpgtq (%rax), %xmm2
# CHECK: Resource pressure by instruction:
# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
+# CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - crc32b %al, %ecx
+# CHECK-NEXT: - - - 1.00 - 1.00 - 1.00 - - - - - - crc32b (%rax), %ecx
+# CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - crc32l %eax, %ecx
+# CHECK-NEXT: - - - 1.00 - 1.00 - 1.00 - - - - - - crc32l (%rax), %ecx
+# CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - crc32w %ax, %ecx
+# CHECK-NEXT: - - - 1.00 - 1.00 - 1.00 - - - - - - crc32w (%rax), %ecx
+# CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - crc32b %al, %rcx
+# CHECK-NEXT: - - - 1.00 - 1.00 - 1.00 - - - - - - crc32b (%rax), %rcx
+# CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - crc32q %rax, %rcx
+# CHECK-NEXT: - - - 1.00 - 1.00 - 1.00 - - - - - - crc32q (%rax), %rcx
# CHECK-NEXT: - - - - - 5.00 10.00 5.00 - - - - - - pcmpestri $1, %xmm0, %xmm2
# CHECK-NEXT: - - - - - 5.00 10.00 6.00 - - - - - - pcmpestri $1, (%rax), %xmm2
# CHECK-NEXT: - - - - - 5.00 10.00 5.00 - - - - - - pcmpestrm $1, %xmm0, %xmm2
@@ -42,4 +67,4 @@ pcmpgtq (%rax), %xmm2
# CHECK-NEXT: - - - - - 2.00 2.00 - - - - - - - pcmpistrm $1, %xmm0, %xmm2
# CHECK-NEXT: - - - - - 2.00 2.00 1.00 - - - - - - pcmpistrm $1, (%rax), %xmm2
# CHECK-NEXT: - - - - - - 1.00 - - - - - 1.00 - pcmpgtq %xmm0, %xmm2
-# CHECK-NEXT: - - - - - 1.00 - 1.00 - - - 1.00 - - pcmpgtq (%rax), %xmm2
+# CHECK-NEXT: - - - - - 0.01 0.99 1.00 - - - 1.00 - - pcmpgtq (%rax), %xmm2
More information about the llvm-commits
mailing list