1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py 2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -iterations=1500 -timeline -timeline-max-iterations=3 < %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: 1505 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: 1.0 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 3 1.00 lzcntw %ax, %bx 26 27# CHECK: Resources: 28# CHECK-NEXT: [0] - SBDivider 29# CHECK-NEXT: [1] - SBFPDivider 30# CHECK-NEXT: [2] - SBPort0 31# CHECK-NEXT: [3] - SBPort1 32# CHECK-NEXT: [4] - SBPort4 33# CHECK-NEXT: [5] - SBPort5 34# CHECK-NEXT: [6.0] - SBPort23 35# CHECK-NEXT: [6.1] - SBPort23 36 37# CHECK: Resource pressure per iteration: 38# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] 39# CHECK-NEXT: - - - 1.00 - - - - 40 41# CHECK: Resource pressure by instruction: 42# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions: 43# CHECK-NEXT: - - - 1.00 - - - - lzcntw %ax, %bx 44 45# CHECK: Timeline view: 46# CHECK-NEXT: Index 01234567 47 48# CHECK: [0,0] DeeeER . lzcntw %ax, %bx 49# CHECK-NEXT: [1,0] D=eeeER. lzcntw %ax, %bx 50# CHECK-NEXT: [2,0] D==eeeER lzcntw %ax, %bx 51 52# CHECK: Average Wait times (based on the timeline view): 53# CHECK-NEXT: [0]: Executions 54# CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue 55# CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready 56# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage 57 58# CHECK: [0] [1] [2] [3] 59# CHECK-NEXT: 0. 3 2.0 2.0 0.0 lzcntw %ax, %bx 60