1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver4 -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: 19 3 6.00 * * cmpxchg8b (%rax)
19 # CHECK-NEXT: 28 4 14.75 * * cmpxchg16b (%rax)
20 # CHECK-NEXT: 19 3 6.00 * * lock cmpxchg8b (%rax)
21 # CHECK-NEXT: 28 4 14.75 * * lock cmpxchg16b (%rax)
24 # CHECK-NEXT: [0] - Zn4AGU0
25 # CHECK-NEXT: [1] - Zn4AGU1
26 # CHECK-NEXT: [2] - Zn4AGU2
27 # CHECK-NEXT: [3] - Zn4ALU0
28 # CHECK-NEXT: [4] - Zn4ALU1
29 # CHECK-NEXT: [5] - Zn4ALU2
30 # CHECK-NEXT: [6] - Zn4ALU3
31 # CHECK-NEXT: [7] - Zn4BRU1
32 # CHECK-NEXT: [8] - Zn4FP0
33 # CHECK-NEXT: [9] - Zn4FP1
34 # CHECK-NEXT: [10] - Zn4FP2
35 # CHECK-NEXT: [11] - Zn4FP3
36 # CHECK-NEXT: [12.0] - Zn4FP45
37 # CHECK-NEXT: [12.1] - Zn4FP45
38 # CHECK-NEXT: [13] - Zn4FPSt
39 # CHECK-NEXT: [14.0] - Zn4LSU
40 # CHECK-NEXT: [14.1] - Zn4LSU
41 # CHECK-NEXT: [14.2] - Zn4LSU
42 # CHECK-NEXT: [15.0] - Zn4Load
43 # CHECK-NEXT: [15.1] - Zn4Load
44 # CHECK-NEXT: [15.2] - Zn4Load
45 # CHECK-NEXT: [16.0] - Zn4Store
46 # CHECK-NEXT: [16.1] - Zn4Store
48 # CHECK: Resource pressure per iteration:
49 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12.0] [12.1] [13] [14.0] [14.1] [14.2] [15.0] [15.1] [15.2] [16.0] [16.1]
50 # CHECK-NEXT: - - - 41.50 41.50 41.50 41.50 - - - - - - - - - - - - - - - -
52 # CHECK: Resource pressure by instruction:
53 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12.0] [12.1] [13] [14.0] [14.1] [14.2] [15.0] [15.1] [15.2] [16.0] [16.1] Instructions:
54 # CHECK-NEXT: - - - 6.00 6.00 6.00 6.00 - - - - - - - - - - - - - - - - cmpxchg8b (%rax)
55 # CHECK-NEXT: - - - 14.75 14.75 14.75 14.75 - - - - - - - - - - - - - - - - cmpxchg16b (%rax)
56 # CHECK-NEXT: - - - 6.00 6.00 6.00 6.00 - - - - - - - - - - - - - - - - lock cmpxchg8b (%rax)
57 # CHECK-NEXT: - - - 14.75 14.75 14.75 14.75 - - - - - - - - - - - - - - - - lock cmpxchg16b (%rax)