Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / BtVer2 / resources-cmpxchg.s
blob23ee46cfddd46dd9808149d9aa8d416946938309
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
4 cmpxchg8b (%rax)
5 cmpxchg16b (%rax)
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: 2 4 1.00 * * cmpxchg8b (%rax)
17 # CHECK-NEXT: 2 4 1.00 * * cmpxchg16b (%rax)
19 # CHECK: Resources:
20 # CHECK-NEXT: [0] - JALU0
21 # CHECK-NEXT: [1] - JALU1
22 # CHECK-NEXT: [2] - JDiv
23 # CHECK-NEXT: [3] - JFPA
24 # CHECK-NEXT: [4] - JFPM
25 # CHECK-NEXT: [5] - JFPU0
26 # CHECK-NEXT: [6] - JFPU1
27 # CHECK-NEXT: [7] - JLAGU
28 # CHECK-NEXT: [8] - JMul
29 # CHECK-NEXT: [9] - JSAGU
30 # CHECK-NEXT: [10] - JSTC
31 # CHECK-NEXT: [11] - JVALU0
32 # CHECK-NEXT: [12] - JVALU1
33 # CHECK-NEXT: [13] - JVIMUL
35 # CHECK: Resource pressure per iteration:
36 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
37 # CHECK-NEXT: 1.00 1.00 - - - - - 2.00 - 2.00 - - - -
39 # CHECK: Resource pressure by instruction:
40 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
41 # CHECK-NEXT: 0.50 0.50 - - - - - 1.00 - 1.00 - - - - cmpxchg8b (%rax)
42 # CHECK-NEXT: 0.50 0.50 - - - - - 1.00 - 1.00 - - - - cmpxchg16b (%rax)