1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=broadwell -instruction-tables < %s | FileCheck %s
7 # CHECK: Instruction Info:
8 # CHECK-NEXT: [1]: #uOps
9 # CHECK-NEXT: [2]: Latency
10 # CHECK-NEXT: [3]: RThroughput
11 # CHECK-NEXT: [4]: MayLoad
12 # CHECK-NEXT: [5]: MayStore
13 # CHECK-NEXT: [6]: HasSideEffects (U)
15 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
16 # CHECK-NEXT: 14 16 2.75 * * cmpxchg8b (%rax)
17 # CHECK-NEXT: 19 21 4.00 * * cmpxchg16b (%rax)
20 # CHECK-NEXT: [0] - BWDivider
21 # CHECK-NEXT: [1] - BWFPDivider
22 # CHECK-NEXT: [2] - BWPort0
23 # CHECK-NEXT: [3] - BWPort1
24 # CHECK-NEXT: [4] - BWPort2
25 # CHECK-NEXT: [5] - BWPort3
26 # CHECK-NEXT: [6] - BWPort4
27 # CHECK-NEXT: [7] - BWPort5
28 # CHECK-NEXT: [8] - BWPort6
29 # CHECK-NEXT: [9] - BWPort7
31 # CHECK: Resource pressure per iteration:
32 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
33 # CHECK-NEXT: - - 8.75 3.75 1.67 1.67 2.00 7.75 6.75 0.67
35 # CHECK: Resource pressure by instruction:
36 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
37 # CHECK-NEXT: - - 3.25 2.25 0.83 0.83 1.00 2.25 3.25 0.33 cmpxchg8b (%rax)
38 # CHECK-NEXT: - - 5.50 1.50 0.83 0.83 1.00 5.50 3.50 0.33 cmpxchg16b (%rax)