• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=slm -instruction-tables < %s | FileCheck %s
3
4rdrand   %ax
5rdrand   %eax
6rdrand   %rax
7
8# CHECK:      Instruction Info:
9# CHECK-NEXT: [1]: #uOps
10# CHECK-NEXT: [2]: Latency
11# CHECK-NEXT: [3]: RThroughput
12# CHECK-NEXT: [4]: MayLoad
13# CHECK-NEXT: [5]: MayStore
14# CHECK-NEXT: [6]: HasSideEffects (U)
15
16# CHECK:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
17# CHECK-NEXT:  1      100   1.00                  U     rdrandw	%ax
18# CHECK-NEXT:  1      100   1.00                  U     rdrandl	%eax
19# CHECK-NEXT:  1      100   1.00                  U     rdrandq	%rax
20
21# CHECK:      Resources:
22# CHECK-NEXT: [0]   - SLMDivider
23# CHECK-NEXT: [1]   - SLMFPDivider
24# CHECK-NEXT: [2]   - SLMFPMultiplier
25# CHECK-NEXT: [3]   - SLM_FPC_RSV0
26# CHECK-NEXT: [4]   - SLM_FPC_RSV1
27# CHECK-NEXT: [5]   - SLM_IEC_RSV0
28# CHECK-NEXT: [6]   - SLM_IEC_RSV1
29# CHECK-NEXT: [7]   - SLM_MEC_RSV
30
31# CHECK:      Resource pressure per iteration:
32# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]
33# CHECK-NEXT:  -      -      -     3.00    -      -      -      -
34
35# CHECK:      Resource pressure by instruction:
36# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]    Instructions:
37# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     rdrandw	%ax
38# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     rdrandl	%eax
39# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     rdrandq	%rax
40