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 4# The lzcnt cannot execute in parallel with the imul because there is a false 5# dependency on %bx. 6 7imul %ax, %bx 8lzcnt %ax, %bx 9add %cx, %bx 10 11# CHECK: Iterations: 1500 12# CHECK-NEXT: Instructions: 4500 13# CHECK-NEXT: Total Cycles: 3005 14# CHECK-NEXT: Total uOps: 4500 15 16# CHECK: Dispatch Width: 4 17# CHECK-NEXT: uOps Per Cycle: 1.50 18# CHECK-NEXT: IPC: 1.50 19# CHECK-NEXT: Block RThroughput: 2.0 20 21# CHECK: Instruction Info: 22# CHECK-NEXT: [1]: #uOps 23# CHECK-NEXT: [2]: Latency 24# CHECK-NEXT: [3]: RThroughput 25# CHECK-NEXT: [4]: MayLoad 26# CHECK-NEXT: [5]: MayStore 27# CHECK-NEXT: [6]: HasSideEffects (U) 28 29# CHECK: [1] [2] [3] [4] [5] [6] Instructions: 30# CHECK-NEXT: 1 3 1.00 imulw %ax, %bx 31# CHECK-NEXT: 1 3 1.00 lzcntw %ax, %bx 32# CHECK-NEXT: 1 1 0.33 addw %cx, %bx 33 34# CHECK: Resources: 35# CHECK-NEXT: [0] - SBDivider 36# CHECK-NEXT: [1] - SBFPDivider 37# CHECK-NEXT: [2] - SBPort0 38# CHECK-NEXT: [3] - SBPort1 39# CHECK-NEXT: [4] - SBPort4 40# CHECK-NEXT: [5] - SBPort5 41# CHECK-NEXT: [6.0] - SBPort23 42# CHECK-NEXT: [6.1] - SBPort23 43 44# CHECK: Resource pressure per iteration: 45# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] 46# CHECK-NEXT: - - 0.50 2.00 - 0.50 - - 47 48# CHECK: Resource pressure by instruction: 49# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions: 50# CHECK-NEXT: - - - 1.00 - - - - imulw %ax, %bx 51# CHECK-NEXT: - - - 1.00 - - - - lzcntw %ax, %bx 52# CHECK-NEXT: - - 0.50 - - 0.50 - - addw %cx, %bx 53 54# CHECK: Timeline view: 55# CHECK-NEXT: 01 56# CHECK-NEXT: Index 0123456789 57 58# CHECK: [0,0] DeeeER .. imulw %ax, %bx 59# CHECK-NEXT: [0,1] D=eeeER .. lzcntw %ax, %bx 60# CHECK-NEXT: [0,2] D====eER .. addw %cx, %bx 61# CHECK-NEXT: [1,0] D=====eeeER. imulw %ax, %bx 62# CHECK-NEXT: [1,1] .D=eeeE---R. lzcntw %ax, %bx 63# CHECK-NEXT: [1,2] .D====eE--R. addw %cx, %bx 64# CHECK-NEXT: [2,0] .D=====eeeER imulw %ax, %bx 65# CHECK-NEXT: [2,1] .D==eeeE---R lzcntw %ax, %bx 66# CHECK-NEXT: [2,2] . D====eE--R addw %cx, %bx 67 68# CHECK: Average Wait times (based on the timeline view): 69# CHECK-NEXT: [0]: Executions 70# CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue 71# CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready 72# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage 73 74# CHECK: [0] [1] [2] [3] 75# CHECK-NEXT: 0. 3 4.3 0.3 0.0 imulw %ax, %bx 76# CHECK-NEXT: 1. 3 2.3 2.3 2.0 lzcntw %ax, %bx 77# CHECK-NEXT: 2. 3 5.0 0.0 1.3 addw %cx, %bx 78# CHECK-NEXT: 3 3.9 0.9 1.1 <total> 79