llvm-for-llvmta/test/tools/llvm-mca/X86/bextr-read-after-ld.s

144 lines
5.9 KiB
ArmAsm
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,HASWELL
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=broadwell -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,BDWELL
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=skylake -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,SKYLAKE
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,BDVER2
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,BTVER2
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,ZNVER1
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver2 -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,ZNVER2
add %edi, %esi
bextrl %esi, (%rdi), %eax
# ALL: Iterations: 1
# ALL-NEXT: Instructions: 2
# BDVER2-NEXT: Total Cycles: 9
# BDVER2-NEXT: Total uOps: 3
# BDWELL-NEXT: Total Cycles: 10
# BDWELL-NEXT: Total uOps: 4
# BTVER2-NEXT: Total Cycles: 7
# BTVER2-NEXT: Total uOps: 2
# HASWELL-NEXT: Total Cycles: 10
# HASWELL-NEXT: Total uOps: 4
# SKYLAKE-NEXT: Total Cycles: 10
# SKYLAKE-NEXT: Total uOps: 4
# ZNVER1-NEXT: Total Cycles: 8
# ZNVER1-NEXT: Total uOps: 3
# ZNVER2-NEXT: Total Cycles: 8
# ZNVER2-NEXT: Total uOps: 3
# BDVER2: Dispatch Width: 4
# BDVER2-NEXT: uOps Per Cycle: 0.33
# BDVER2-NEXT: IPC: 0.22
# BDVER2-NEXT: Block RThroughput: 2.0
# BDWELL: Dispatch Width: 4
# BDWELL-NEXT: uOps Per Cycle: 0.40
# BDWELL-NEXT: IPC: 0.20
# BDWELL-NEXT: Block RThroughput: 1.0
# BTVER2: Dispatch Width: 2
# BTVER2-NEXT: uOps Per Cycle: 0.29
# BTVER2-NEXT: IPC: 0.29
# BTVER2-NEXT: Block RThroughput: 1.0
# HASWELL: Dispatch Width: 4
# HASWELL-NEXT: uOps Per Cycle: 0.40
# HASWELL-NEXT: IPC: 0.20
# HASWELL-NEXT: Block RThroughput: 1.0
# SKYLAKE: Dispatch Width: 6
# SKYLAKE-NEXT: uOps Per Cycle: 0.40
# SKYLAKE-NEXT: IPC: 0.20
# SKYLAKE-NEXT: Block RThroughput: 0.7
# ZNVER1: Dispatch Width: 4
# ZNVER1-NEXT: uOps Per Cycle: 0.38
# ZNVER1-NEXT: IPC: 0.25
# ZNVER1-NEXT: Block RThroughput: 0.8
# ZNVER2: Dispatch Width: 4
# ZNVER2-NEXT: uOps Per Cycle: 0.38
# ZNVER2-NEXT: IPC: 0.25
# ZNVER2-NEXT: Block RThroughput: 0.8
# ALL: Instruction Info:
# ALL-NEXT: [1]: #uOps
# ALL-NEXT: [2]: Latency
# ALL-NEXT: [3]: RThroughput
# ALL-NEXT: [4]: MayLoad
# ALL-NEXT: [5]: MayStore
# ALL-NEXT: [6]: HasSideEffects (U)
# ALL: [1] [2] [3] [4] [5] [6] Instructions:
# BDVER2-NEXT: 1 1 1.00 addl %edi, %esi
# BDVER2-NEXT: 2 6 1.50 * bextrl %esi, (%rdi), %eax
# BDWELL-NEXT: 1 1 0.25 addl %edi, %esi
# BDWELL-NEXT: 3 7 0.50 * bextrl %esi, (%rdi), %eax
# BTVER2-NEXT: 1 1 0.50 addl %edi, %esi
# BTVER2-NEXT: 1 4 1.00 * bextrl %esi, (%rdi), %eax
# HASWELL-NEXT: 1 1 0.25 addl %edi, %esi
# HASWELL-NEXT: 3 7 0.50 * bextrl %esi, (%rdi), %eax
# SKYLAKE-NEXT: 1 1 0.25 addl %edi, %esi
# SKYLAKE-NEXT: 3 7 0.50 * bextrl %esi, (%rdi), %eax
# ZNVER1-NEXT: 1 1 0.25 addl %edi, %esi
# ZNVER1-NEXT: 2 5 0.50 * bextrl %esi, (%rdi), %eax
# ZNVER2-NEXT: 1 1 0.25 addl %edi, %esi
# ZNVER2-NEXT: 2 5 0.33 * bextrl %esi, (%rdi), %eax
# ALL: Timeline view:
# BDVER2-NEXT: Index 012345678
# BDWELL-NEXT: Index 0123456789
# BTVER2-NEXT: Index 0123456
# HASWELL-NEXT: Index 0123456789
# SKYLAKE-NEXT: Index 0123456789
# ZNVER1-NEXT: Index 01234567
# ZNVER2-NEXT: Index 01234567
# BDVER2: [0,0] DeER . . addl %edi, %esi
# BDVER2-NEXT: [0,1] DeeeeeeER bextrl %esi, (%rdi), %eax
# BDWELL: [0,0] DeER . . addl %edi, %esi
# BDWELL-NEXT: [0,1] DeeeeeeeER bextrl %esi, (%rdi), %eax
# BTVER2: [0,0] DeER .. addl %edi, %esi
# BTVER2-NEXT: [0,1] DeeeeER bextrl %esi, (%rdi), %eax
# HASWELL: [0,0] DeER . . addl %edi, %esi
# HASWELL-NEXT: [0,1] DeeeeeeeER bextrl %esi, (%rdi), %eax
# SKYLAKE: [0,0] DeER . . addl %edi, %esi
# SKYLAKE-NEXT: [0,1] DeeeeeeeER bextrl %esi, (%rdi), %eax
# ZNVER1: [0,0] DeER . . addl %edi, %esi
# ZNVER1-NEXT: [0,1] DeeeeeER bextrl %esi, (%rdi), %eax
# ZNVER2: [0,0] DeER . . addl %edi, %esi
# ZNVER2-NEXT: [0,1] DeeeeeER bextrl %esi, (%rdi), %eax
# ALL: Average Wait times (based on the timeline view):
# ALL-NEXT: [0]: Executions
# ALL-NEXT: [1]: Average time spent waiting in a scheduler's queue
# ALL-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
# ALL-NEXT: [3]: Average time elapsed from WB until retire stage
# ALL: [0] [1] [2] [3]
# ALL-NEXT: 0. 1 1.0 1.0 0.0 addl %edi, %esi
# ALL-NEXT: 1. 1 1.0 0.0 0.0 bextrl %esi, (%rdi), %eax
# ALL-NEXT: 1 1.0 0.5 0.0 <total>