[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-mca / X86 / Barcelona / resources-cmpxchg.s
blob8173c772d5bd566cec8376b59fcb41d9154e60f5
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -instruction-tables < %s | FileCheck %s
4 cmpxchg8b (%rax)
5 cmpxchg16b (%rax)
6 lock cmpxchg8b (%rax)
7 lock cmpxchg16b (%rax)
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: 3 6 1.00 * * cmpxchg8b (%rax)
19 # CHECK-NEXT: 3 6 1.00 * * cmpxchg16b (%rax)
20 # CHECK-NEXT: 3 6 1.00 * * lock cmpxchg8b (%rax)
21 # CHECK-NEXT: 3 6 1.00 * * lock cmpxchg16b (%rax)
23 # CHECK: Resources:
24 # CHECK-NEXT: [0] - SBDivider
25 # CHECK-NEXT: [1] - SBFPDivider
26 # CHECK-NEXT: [2] - SBPort0
27 # CHECK-NEXT: [3] - SBPort1
28 # CHECK-NEXT: [4] - SBPort4
29 # CHECK-NEXT: [5] - SBPort5
30 # CHECK-NEXT: [6.0] - SBPort23
31 # CHECK-NEXT: [6.1] - SBPort23
33 # CHECK: Resource pressure per iteration:
34 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
35 # CHECK-NEXT: - - 1.33 1.33 4.00 1.33 4.00 4.00
37 # CHECK: Resource pressure by instruction:
38 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
39 # CHECK-NEXT: - - 0.33 0.33 1.00 0.33 1.00 1.00 cmpxchg8b (%rax)
40 # CHECK-NEXT: - - 0.33 0.33 1.00 0.33 1.00 1.00 cmpxchg16b (%rax)
41 # CHECK-NEXT: - - 0.33 0.33 1.00 0.33 1.00 1.00 lock cmpxchg8b (%rax)
42 # CHECK-NEXT: - - 0.33 0.33 1.00 0.33 1.00 1.00 lock cmpxchg16b (%rax)