[llvm] r348624 - [llvm-mca][x86] Add RDSEED instruction resource tests for GLM

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 7 10:37:41 PST 2018


Author: rksimon
Date: Fri Dec  7 10:37:40 2018
New Revision: 348624

URL: http://llvm.org/viewvc/llvm-project?rev=348624&view=rev
Log:
[llvm-mca][x86] Add RDSEED instruction resource tests for GLM

Added:
    llvm/trunk/test/tools/llvm-mca/X86/SLM/resources-rdseed.s

Added: llvm/trunk/test/tools/llvm-mca/X86/SLM/resources-rdseed.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/SLM/resources-rdseed.s?rev=348624&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/SLM/resources-rdseed.s (added)
+++ llvm/trunk/test/tools/llvm-mca/X86/SLM/resources-rdseed.s Fri Dec  7 10:37:40 2018
@@ -0,0 +1,39 @@
+# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
+# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=goldmont -instruction-tables < %s | FileCheck %s
+
+rdseed   %ax
+rdseed   %eax
+rdseed   %rax
+
+# CHECK:      Instruction Info:
+# CHECK-NEXT: [1]: #uOps
+# CHECK-NEXT: [2]: Latency
+# CHECK-NEXT: [3]: RThroughput
+# CHECK-NEXT: [4]: MayLoad
+# CHECK-NEXT: [5]: MayStore
+# CHECK-NEXT: [6]: HasSideEffects (U)
+
+# CHECK:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
+# CHECK-NEXT:  1      100   1.00                  U     rdseedw	%ax
+# CHECK-NEXT:  1      100   1.00                  U     rdseedl	%eax
+# CHECK-NEXT:  1      100   1.00                  U     rdseedq	%rax
+
+# CHECK:      Resources:
+# CHECK-NEXT: [0]   - SLMDivider
+# CHECK-NEXT: [1]   - SLMFPDivider
+# CHECK-NEXT: [2]   - SLMFPMultiplier
+# CHECK-NEXT: [3]   - SLM_FPC_RSV0
+# CHECK-NEXT: [4]   - SLM_FPC_RSV1
+# CHECK-NEXT: [5]   - SLM_IEC_RSV0
+# CHECK-NEXT: [6]   - SLM_IEC_RSV1
+# CHECK-NEXT: [7]   - SLM_MEC_RSV
+
+# CHECK:      Resource pressure per iteration:
+# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]
+# CHECK-NEXT:  -      -      -     3.00    -      -      -      -
+
+# CHECK:      Resource pressure by instruction:
+# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]    Instructions:
+# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     rdseedw	%ax
+# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     rdseedl	%eax
+# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     rdseedq	%rax




More information about the llvm-commits mailing list