1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -instruction-tables < %s | FileCheck %s
9 # CHECK: Instruction Info:
10 # CHECK-NEXT: [1]: #uOps
11 # CHECK-NEXT: [2]: Latency
12 # CHECK-NEXT: [3]: RThroughput
13 # CHECK-NEXT: [4]: MayLoad
14 # CHECK-NEXT: [5]: MayStore
15 # CHECK-NEXT: [6]: HasSideEffects (U)
17 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
18 # CHECK-NEXT: 18 1 0.50 * * cmpxchg8b (%rax)
19 # CHECK-NEXT: 1 100 0.25 * * cmpxchg16b (%rax)
20 # CHECK-NEXT: 18 1 0.50 * * lock cmpxchg8b (%rax)
21 # CHECK-NEXT: 1 100 0.25 * * lock cmpxchg16b (%rax)
24 # CHECK-NEXT: [0] - ZnAGU0
25 # CHECK-NEXT: [1] - ZnAGU1
26 # CHECK-NEXT: [2] - ZnALU0
27 # CHECK-NEXT: [3] - ZnALU1
28 # CHECK-NEXT: [4] - ZnALU2
29 # CHECK-NEXT: [5] - ZnALU3
30 # CHECK-NEXT: [6] - ZnDivider
31 # CHECK-NEXT: [7] - ZnFPU0
32 # CHECK-NEXT: [8] - ZnFPU1
33 # CHECK-NEXT: [9] - ZnFPU2
34 # CHECK-NEXT: [10] - ZnFPU3
35 # CHECK-NEXT: [11] - ZnMultiplier
37 # CHECK: Resource pressure per iteration:
38 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
39 # CHECK-NEXT: 1.00 1.00 0.50 0.50 0.50 0.50 - - - - - -
41 # CHECK: Resource pressure by instruction:
42 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] Instructions:
43 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - cmpxchg8b (%rax)
44 # CHECK-NEXT: - - - - - - - - - - - - cmpxchg16b (%rax)
45 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - lock cmpxchg8b (%rax)
46 # CHECK-NEXT: - - - - - - - - - - - - lock cmpxchg16b (%rax)