1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py 2# 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 3 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 6# 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 7 8# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -iterations=1 -resource-pressure=false -instruction-info=false -timeline < %s | FileCheck %s -check-prefix=ALL -check-prefix=ZNVER1 9 10vaddps %xmm0, %xmm0, %xmm1 11vfmadd213ps (%rdi), %xmm1, %xmm2 12 13# ALL: Iterations: 1 14# ALL-NEXT: Instructions: 2 15 16# BDWELL-NEXT: Total Cycles: 13 17# BDWELL-NEXT: Dispatch Width: 4 18# BDWELL-NEXT: IPC: 0.15 19 20# HASWELL-NEXT: Total Cycles: 14 21# HASWELL-NEXT: Dispatch Width: 4 22# HASWELL-NEXT: IPC: 0.14 23 24# SKYLAKE-NEXT: Total Cycles: 13 25# SKYLAKE-NEXT: Dispatch Width: 6 26# SKYLAKE-NEXT: IPC: 0.15 27 28# ZNVER1-NEXT: Total Cycles: 15 29# ZNVER1-NEXT: Dispatch Width: 4 30# ZNVER1-NEXT: IPC: 0.13 31 32# ALL-NEXT: Block RThroughput: 1.0 33 34# ALL: Timeline view: 35 36# BDWELL-NEXT: 012 37# HASWELL-NEXT: 0123 38# SKYLAKE-NEXT: 012 39# ZNVER1-NEXT: 01234 40 41# ALL-NEXT: Index 0123456789 42 43# ZNVER1: [0,0] DeeeER . . vaddps %xmm0, %xmm0, %xmm1 44# ZNVER1-NEXT: [0,1] DeeeeeeeeeeeeER vfmadd213ps (%rdi), %xmm1, %xmm2 45 46# HASWELL: [0,0] DeeeER . . vaddps %xmm0, %xmm0, %xmm1 47# HASWELL-NEXT: [0,1] DeeeeeeeeeeeER vfmadd213ps (%rdi), %xmm1, %xmm2 48 49# BDWELL: [0,0] DeeeER . . vaddps %xmm0, %xmm0, %xmm1 50# BDWELL-NEXT: [0,1] DeeeeeeeeeeER vfmadd213ps (%rdi), %xmm1, %xmm2 51 52# SKYLAKE: [0,0] DeeeeER . . vaddps %xmm0, %xmm0, %xmm1 53# SKYLAKE-NEXT: [0,1] DeeeeeeeeeeER vfmadd213ps (%rdi), %xmm1, %xmm2 54 55# ALL: Average Wait times (based on the timeline view): 56# ALL-NEXT: [0]: Executions 57# ALL-NEXT: [1]: Average time spent waiting in a scheduler's queue 58# ALL-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready 59# ALL-NEXT: [3]: Average time elapsed from WB until retire stage 60 61# ALL: [0] [1] [2] [3] 62# ALL-NEXT: 0. 1 1.0 1.0 0.0 vaddps %xmm0, %xmm0, %xmm1 63# ALL-NEXT: 1. 1 1.0 0.0 0.0 vfmadd213ps (%rdi), %xmm1, %xmm2 64