1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -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 3 26.00 * * cmpxchg8b (%rax)
19 # CHECK-NEXT: 22 3 69.00 * * cmpxchg16b (%rax)
20 # CHECK-NEXT: 18 3 26.00 * * lock cmpxchg8b (%rax)
21 # CHECK-NEXT: 22 3 69.00 * * lock cmpxchg16b (%rax)
24 # CHECK-NEXT: [0.0] - PdAGLU01
25 # CHECK-NEXT: [0.1] - PdAGLU01
26 # CHECK-NEXT: [1] - PdBranch
27 # CHECK-NEXT: [2] - PdCount
28 # CHECK-NEXT: [3] - PdDiv
29 # CHECK-NEXT: [4] - PdEX0
30 # CHECK-NEXT: [5] - PdEX1
31 # CHECK-NEXT: [6] - PdFPCVT
32 # CHECK-NEXT: [7.0] - PdFPFMA
33 # CHECK-NEXT: [7.1] - PdFPFMA
34 # CHECK-NEXT: [8.0] - PdFPMAL
35 # CHECK-NEXT: [8.1] - PdFPMAL
36 # CHECK-NEXT: [9] - PdFPMMA
37 # CHECK-NEXT: [10] - PdFPSTO
38 # CHECK-NEXT: [11] - PdFPU0
39 # CHECK-NEXT: [12] - PdFPU1
40 # CHECK-NEXT: [13] - PdFPU2
41 # CHECK-NEXT: [14] - PdFPU3
42 # CHECK-NEXT: [15] - PdFPXBR
43 # CHECK-NEXT: [16.0] - PdLoad
44 # CHECK-NEXT: [16.1] - PdLoad
45 # CHECK-NEXT: [17] - PdMul
46 # CHECK-NEXT: [18] - PdStore
48 # CHECK: Resource pressure per iteration:
49 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18]
50 # CHECK-NEXT: - - - - - - 190.00 - - - - - - - - - - - - - - - -
52 # CHECK: Resource pressure by instruction:
53 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18] Instructions:
54 # CHECK-NEXT: - - - - - - 26.00 - - - - - - - - - - - - - - - - cmpxchg8b (%rax)
55 # CHECK-NEXT: - - - - - - 69.00 - - - - - - - - - - - - - - - - cmpxchg16b (%rax)
56 # CHECK-NEXT: - - - - - - 26.00 - - - - - - - - - - - - - - - - lock cmpxchg8b (%rax)
57 # CHECK-NEXT: - - - - - - 69.00 - - - - - - - - - - - - - - - - lock cmpxchg16b (%rax)