1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=sandybridge -instruction-tables < %s | FileCheck %s
14 # CHECK: Instruction Info:
15 # CHECK-NEXT: [1]: #uOps
16 # CHECK-NEXT: [2]: Latency
17 # CHECK-NEXT: [3]: RThroughput
18 # CHECK-NEXT: [4]: MayLoad
19 # CHECK-NEXT: [5]: MayStore
20 # CHECK-NEXT: [6]: HasSideEffects (U)
22 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
23 # CHECK-NEXT: 1 100 0.33 U xgetbv
24 # CHECK-NEXT: 1 100 0.33 * * U xrstor (%rax)
25 # CHECK-NEXT: 1 100 0.33 * * U xrstors (%rax)
26 # CHECK-NEXT: 1 100 0.33 * * U xsave (%rax)
27 # CHECK-NEXT: 1 100 0.33 * * U xsetbv
30 # CHECK-NEXT: [0] - SBDivider
31 # CHECK-NEXT: [1] - SBFPDivider
32 # CHECK-NEXT: [2] - SBPort0
33 # CHECK-NEXT: [3] - SBPort1
34 # CHECK-NEXT: [4] - SBPort4
35 # CHECK-NEXT: [5] - SBPort5
36 # CHECK-NEXT: [6.0] - SBPort23
37 # CHECK-NEXT: [6.1] - SBPort23
39 # CHECK: Resource pressure per iteration:
40 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
41 # CHECK-NEXT: - - 1.67 1.67 - 1.67 - -
43 # CHECK: Resource pressure by instruction:
44 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
45 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - xgetbv
46 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - xrstor (%rax)
47 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - xrstors (%rax)
48 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - xsave (%rax)
49 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - xsetbv