xref: /llvm-project/llvm/test/tools/llvm-mca/X86/read-after-ld-3.s (revision 7ec7272b8056c70f38081aa55ccfb5e8aacf0c53)
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=sandybridge -iterations=1 -resource-pressure=false -instruction-info=false -timeline < %s | FileCheck %s -check-prefixes=ALL,SANDY
3# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -iterations=1 -resource-pressure=false -instruction-info=false -timeline < %s | FileCheck %s -check-prefixes=ALL,HASWELL
4# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=broadwell -iterations=1 -resource-pressure=false -instruction-info=false -timeline < %s | FileCheck %s -check-prefixes=ALL,BDWELL
5# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=skylake -iterations=1 -resource-pressure=false -instruction-info=false -timeline < %s | FileCheck %s -check-prefixes=ALL,SKYLAKE
6# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=icelake-server -iterations=1 -resource-pressure=false -instruction-info=false -timeline < %s | FileCheck %s -check-prefixes=ALL,SKYLAKE
7
8# PR36951
9addl    %edi, %esi
10addl    (%rdi), %esi
11
12# ALL:          Iterations:        1
13# ALL-NEXT:     Instructions:      2
14# ALL-NEXT:     Total Cycles:      9
15# ALL-NEXT:     Total uOps:        3
16
17# BDWELL:       Dispatch Width:    4
18# BDWELL-NEXT:  uOps Per Cycle:    0.33
19# BDWELL-NEXT:  IPC:               0.22
20# BDWELL-NEXT:  Block RThroughput: 0.8
21
22# HASWELL:      Dispatch Width:    4
23# HASWELL-NEXT: uOps Per Cycle:    0.33
24# HASWELL-NEXT: IPC:               0.22
25# HASWELL-NEXT: Block RThroughput: 0.8
26
27# SANDY:        Dispatch Width:    4
28# SANDY-NEXT:   uOps Per Cycle:    0.33
29# SANDY-NEXT:   IPC:               0.22
30# SANDY-NEXT:   Block RThroughput: 0.8
31
32# SKYLAKE:      Dispatch Width:    6
33# SKYLAKE-NEXT: uOps Per Cycle:    0.33
34# SKYLAKE-NEXT: IPC:               0.22
35# SKYLAKE-NEXT: Block RThroughput: 0.5
36
37# ALL:          Timeline view:
38# ALL-NEXT:     Index     012345678
39
40# ALL:          [0,0]     DeER .  .   addl	%edi, %esi
41# ALL-NEXT:     [0,1]     DeeeeeeER   addl	(%rdi), %esi
42
43# ALL:          Average Wait times (based on the timeline view):
44# ALL-NEXT:     [0]: Executions
45# ALL-NEXT:     [1]: Average time spent waiting in a scheduler's queue
46# ALL-NEXT:     [2]: Average time spent waiting in a scheduler's queue while ready
47# ALL-NEXT:     [3]: Average time elapsed from WB until retire stage
48
49# ALL:                [0]    [1]    [2]    [3]
50# ALL-NEXT:     0.     1     1.0    1.0    0.0       addl	%edi, %esi
51# ALL-NEXT:     1.     1     1.0    0.0    0.0       addl	(%rdi), %esi
52# ALL-NEXT:            1     1.0    0.5    0.0       <total>
53