1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py 2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver2 -iterations=1500 -timeline -timeline-max-iterations=8 < %s | FileCheck %s 3 4lzcnt %ax, %bx ## partial register stall. 5 6# CHECK: Iterations: 1500 7# CHECK-NEXT: Instructions: 1500 8# CHECK-NEXT: Total Cycles: 1503 9# CHECK-NEXT: Total uOps: 1500 10 11# CHECK: Dispatch Width: 4 12# CHECK-NEXT: uOps Per Cycle: 1.00 13# CHECK-NEXT: IPC: 1.00 14# CHECK-NEXT: Block RThroughput: 0.3 15 16# CHECK: Instruction Info: 17# CHECK-NEXT: [1]: #uOps 18# CHECK-NEXT: [2]: Latency 19# CHECK-NEXT: [3]: RThroughput 20# CHECK-NEXT: [4]: MayLoad 21# CHECK-NEXT: [5]: MayStore 22# CHECK-NEXT: [6]: HasSideEffects (U) 23 24# CHECK: [1] [2] [3] [4] [5] [6] Instructions: 25# CHECK-NEXT: 1 1 0.25 lzcntw %ax, %bx 26 27# CHECK: Resources: 28# CHECK-NEXT: [0] - Zn2AGU0 29# CHECK-NEXT: [1] - Zn2AGU1 30# CHECK-NEXT: [2] - Zn2AGU2 31# CHECK-NEXT: [3] - Zn2ALU0 32# CHECK-NEXT: [4] - Zn2ALU1 33# CHECK-NEXT: [5] - Zn2ALU2 34# CHECK-NEXT: [6] - Zn2ALU3 35# CHECK-NEXT: [7] - Zn2Divider 36# CHECK-NEXT: [8] - Zn2FPU0 37# CHECK-NEXT: [9] - Zn2FPU1 38# CHECK-NEXT: [10] - Zn2FPU2 39# CHECK-NEXT: [11] - Zn2FPU3 40# CHECK-NEXT: [12] - Zn2Multiplier 41 42# CHECK: Resource pressure per iteration: 43# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] 44# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - 45 46# CHECK: Resource pressure by instruction: 47# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] Instructions: 48# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - lzcntw %ax, %bx 49 50# CHECK: Timeline view: 51# CHECK-NEXT: 0 52# CHECK-NEXT: Index 0123456789 53 54# CHECK: [0,0] DeER . . lzcntw %ax, %bx 55# CHECK-NEXT: [1,0] D=eER. . lzcntw %ax, %bx 56# CHECK-NEXT: [2,0] D==eER . lzcntw %ax, %bx 57# CHECK-NEXT: [3,0] D===eER . lzcntw %ax, %bx 58# CHECK-NEXT: [4,0] .D===eER . lzcntw %ax, %bx 59# CHECK-NEXT: [5,0] .D====eER . lzcntw %ax, %bx 60# CHECK-NEXT: [6,0] .D=====eER. lzcntw %ax, %bx 61# CHECK-NEXT: [7,0] .D======eER lzcntw %ax, %bx 62 63# CHECK: Average Wait times (based on the timeline view): 64# CHECK-NEXT: [0]: Executions 65# CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue 66# CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready 67# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage 68 69# CHECK: [0] [1] [2] [3] 70# CHECK-NEXT: 0. 8 4.0 0.1 0.0 lzcntw %ax, %bx 71