1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py 2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=1500 -timeline -timeline-max-iterations=3 < %s | FileCheck %s 3 4# perf stat reports a throughput of 1.00 IPC for this code snippet. 5 6lzcnt %ax, %bx ## partial register stall. 7 8# CHECK: Iterations: 1500 9# CHECK-NEXT: Instructions: 1500 10# CHECK-NEXT: Total Cycles: 1503 11# CHECK-NEXT: Total uOps: 1500 12 13# CHECK: Dispatch Width: 2 14# CHECK-NEXT: uOps Per Cycle: 1.00 15# CHECK-NEXT: IPC: 1.00 16# CHECK-NEXT: Block RThroughput: 0.5 17 18# CHECK: Instruction Info: 19# CHECK-NEXT: [1]: #uOps 20# CHECK-NEXT: [2]: Latency 21# CHECK-NEXT: [3]: RThroughput 22# CHECK-NEXT: [4]: MayLoad 23# CHECK-NEXT: [5]: MayStore 24# CHECK-NEXT: [6]: HasSideEffects (U) 25 26# CHECK: [1] [2] [3] [4] [5] [6] Instructions: 27# CHECK-NEXT: 1 1 0.50 lzcntw %ax, %bx 28 29# CHECK: Resources: 30# CHECK-NEXT: [0] - JALU0 31# CHECK-NEXT: [1] - JALU1 32# CHECK-NEXT: [2] - JDiv 33# CHECK-NEXT: [3] - JFPA 34# CHECK-NEXT: [4] - JFPM 35# CHECK-NEXT: [5] - JFPU0 36# CHECK-NEXT: [6] - JFPU1 37# CHECK-NEXT: [7] - JLAGU 38# CHECK-NEXT: [8] - JMul 39# CHECK-NEXT: [9] - JSAGU 40# CHECK-NEXT: [10] - JSTC 41# CHECK-NEXT: [11] - JVALU0 42# CHECK-NEXT: [12] - JVALU1 43# CHECK-NEXT: [13] - JVIMUL 44 45# CHECK: Resource pressure per iteration: 46# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] 47# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - 48 49# CHECK: Resource pressure by instruction: 50# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions: 51# CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - lzcntw %ax, %bx 52 53# CHECK: Timeline view: 54# CHECK-NEXT: Index 012345 55 56# CHECK: [0,0] DeER . lzcntw %ax, %bx 57# CHECK-NEXT: [1,0] D=eER. lzcntw %ax, %bx 58# CHECK-NEXT: [2,0] .D=eER lzcntw %ax, %bx 59 60# CHECK: Average Wait times (based on the timeline view): 61# CHECK-NEXT: [0]: Executions 62# CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue 63# CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready 64# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage 65 66# CHECK: [0] [1] [2] [3] 67# CHECK-NEXT: 0. 3 1.7 0.3 0.0 lzcntw %ax, %bx 68