• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=slm -instruction-tables < %s | FileCheck %s
3
4cmpxchg8b  (%rax)
5cmpxchg16b (%rax)
6lock cmpxchg8b  (%rax)
7lock cmpxchg16b (%rax)
8
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)
16
17# CHECK:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
18# CHECK-NEXT:  2      4     2.00    *      *            cmpxchg8b	(%rax)
19# CHECK-NEXT:  2      4     2.00    *      *            cmpxchg16b	(%rax)
20# CHECK-NEXT:  2      4     2.00    *      *            lock		cmpxchg8b	(%rax)
21# CHECK-NEXT:  2      4     2.00    *      *            lock		cmpxchg16b	(%rax)
22
23# CHECK:      Resources:
24# CHECK-NEXT: [0]   - SLMDivider
25# CHECK-NEXT: [1]   - SLMFPDivider
26# CHECK-NEXT: [2]   - SLMFPMultiplier
27# CHECK-NEXT: [3]   - SLM_FPC_RSV0
28# CHECK-NEXT: [4]   - SLM_FPC_RSV1
29# CHECK-NEXT: [5]   - SLM_IEC_RSV0
30# CHECK-NEXT: [6]   - SLM_IEC_RSV1
31# CHECK-NEXT: [7]   - SLM_MEC_RSV
32
33# CHECK:      Resource pressure per iteration:
34# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]
35# CHECK-NEXT:  -      -      -      -      -     2.00   2.00   8.00
36
37# CHECK:      Resource pressure by instruction:
38# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]    Instructions:
39# CHECK-NEXT:  -      -      -      -      -     0.50   0.50   2.00   cmpxchg8b	(%rax)
40# CHECK-NEXT:  -      -      -      -      -     0.50   0.50   2.00   cmpxchg16b	(%rax)
41# CHECK-NEXT:  -      -      -      -      -     0.50   0.50   2.00   lock		cmpxchg8b	(%rax)
42# CHECK-NEXT:  -      -      -      -      -     0.50   0.50   2.00   lock		cmpxchg16b	(%rax)
43