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-prefix=ALL -check-prefix=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-prefix=ALL -check-prefix=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-prefix=ALL -check-prefix=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-prefix=ALL -check-prefix=SKYLAKE
12 # ALL-NEXT: Instructions: 2
13 # ALL-NEXT: Total Cycles: 9
14 # ALL-NEXT: Total uOps: 3
16 # BDWELL: Dispatch Width: 4
17 # BDWELL-NEXT: uOps Per Cycle: 0.33
18 # BDWELL-NEXT: IPC: 0.22
19 # BDWELL-NEXT: Block RThroughput: 0.8
21 # HASWELL: Dispatch Width: 4
22 # HASWELL-NEXT: uOps Per Cycle: 0.33
23 # HASWELL-NEXT: IPC: 0.22
24 # HASWELL-NEXT: Block RThroughput: 0.8
26 # SANDY: Dispatch Width: 4
27 # SANDY-NEXT: uOps Per Cycle: 0.33
28 # SANDY-NEXT: IPC: 0.22
29 # SANDY-NEXT: Block RThroughput: 0.8
31 # SKYLAKE: Dispatch Width: 6
32 # SKYLAKE-NEXT: uOps Per Cycle: 0.33
33 # SKYLAKE-NEXT: IPC: 0.22
34 # SKYLAKE-NEXT: Block RThroughput: 0.5
37 # ALL-NEXT: Index 012345678
39 # ALL: [0,0] DeER . . addl %edi, %esi
40 # ALL-NEXT: [0,1] DeeeeeeER addl (%rdi), %esi
42 # ALL: Average Wait times (based on the timeline view):
43 # ALL-NEXT: [0]: Executions
44 # ALL-NEXT: [1]: Average time spent waiting in a scheduler's queue
45 # ALL-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
46 # ALL-NEXT: [3]: Average time elapsed from WB until retire stage
48 # ALL: [0] [1] [2] [3]
49 # ALL-NEXT: 0. 1 1.0 1.0 0.0 addl %edi, %esi
50 # ALL-NEXT: 1. 1 1.0 0.0 0.0 addl (%rdi), %esi
51 # ALL-NEXT: 1 1.0 0.5 0.0 <total>