1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -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 11 1.50 * * cmpxchg8b (%rax)
19 # CHECK-NEXT: 28 32 3.00 * * cmpxchg16b (%rax)
20 # CHECK-NEXT: 18 19 19.00 * * lock cmpxchg8b (%rax)
21 # CHECK-NEXT: 28 38 38.00 * * lock cmpxchg16b (%rax)
24 # CHECK-NEXT: [0] - JALU0
25 # CHECK-NEXT: [1] - JALU1
26 # CHECK-NEXT: [2] - JDiv
27 # CHECK-NEXT: [3] - JFPA
28 # CHECK-NEXT: [4] - JFPM
29 # CHECK-NEXT: [5] - JFPU0
30 # CHECK-NEXT: [6] - JFPU1
31 # CHECK-NEXT: [7] - JLAGU
32 # CHECK-NEXT: [8] - JMul
33 # CHECK-NEXT: [9] - JSAGU
34 # CHECK-NEXT: [10] - JSTC
35 # CHECK-NEXT: [11] - JVALU0
36 # CHECK-NEXT: [12] - JVALU1
37 # CHECK-NEXT: [13] - JVIMUL
39 # CHECK: Resource pressure per iteration:
40 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
41 # CHECK-NEXT: 9.00 9.00 - - - - - 59.00 - 59.00 - - - -
43 # CHECK: Resource pressure by instruction:
44 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
45 # CHECK-NEXT: 1.50 1.50 - - - - - 1.00 - 1.00 - - - - cmpxchg8b (%rax)
46 # CHECK-NEXT: 3.00 3.00 - - - - - 1.00 - 1.00 - - - - cmpxchg16b (%rax)
47 # CHECK-NEXT: 1.50 1.50 - - - - - 19.00 - 19.00 - - - - lock cmpxchg8b (%rax)
48 # CHECK-NEXT: 3.00 3.00 - - - - - 38.00 - 38.00 - - - - lock cmpxchg16b (%rax)