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=300 -timeline -timeline-max-iterations=3 < %s | FileCheck %s 3 4vmulps %xmm0, %xmm1, %xmm2 5vhaddps %xmm2, %xmm2, %xmm3 6vhaddps %xmm3, %xmm3, %xmm4 7 8# CHECK: Iterations: 300 9# CHECK-NEXT: Instructions: 900 10# CHECK-NEXT: Total Cycles: 610 11# CHECK-NEXT: Dispatch Width: 2 12# CHECK-NEXT: IPC: 1.48 13# CHECK-NEXT: Block RThroughput: 2.0 14 15# CHECK: Instruction Info: 16# CHECK-NEXT: [1]: #uOps 17# CHECK-NEXT: [2]: Latency 18# CHECK-NEXT: [3]: RThroughput 19# CHECK-NEXT: [4]: MayLoad 20# CHECK-NEXT: [5]: MayStore 21# CHECK-NEXT: [6]: HasSideEffects (U) 22 23# CHECK: [1] [2] [3] [4] [5] [6] Instructions: 24# CHECK-NEXT: 1 2 1.00 vmulps %xmm0, %xmm1, %xmm2 25# CHECK-NEXT: 1 3 1.00 vhaddps %xmm2, %xmm2, %xmm3 26# CHECK-NEXT: 1 3 1.00 vhaddps %xmm3, %xmm3, %xmm4 27 28# CHECK: Resources: 29# CHECK-NEXT: [0] - JALU0 30# CHECK-NEXT: [1] - JALU1 31# CHECK-NEXT: [2] - JDiv 32# CHECK-NEXT: [3] - JFPA 33# CHECK-NEXT: [4] - JFPM 34# CHECK-NEXT: [5] - JFPU0 35# CHECK-NEXT: [6] - JFPU1 36# CHECK-NEXT: [7] - JLAGU 37# CHECK-NEXT: [8] - JMul 38# CHECK-NEXT: [9] - JSAGU 39# CHECK-NEXT: [10] - JSTC 40# CHECK-NEXT: [11] - JVALU0 41# CHECK-NEXT: [12] - JVALU1 42# CHECK-NEXT: [13] - JVIMUL 43 44# CHECK: Resource pressure per iteration: 45# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] 46# CHECK-NEXT: - - - 2.00 1.00 2.00 1.00 - - - - - - - 47 48# CHECK: Resource pressure by instruction: 49# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions: 50# CHECK-NEXT: - - - - 1.00 - 1.00 - - - - - - - vmulps %xmm0, %xmm1, %xmm2 51# CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - vhaddps %xmm2, %xmm2, %xmm3 52# CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - vhaddps %xmm3, %xmm3, %xmm4 53 54# CHECK: Timeline view: 55# CHECK-NEXT: 012345 56# CHECK-NEXT: Index 0123456789 57 58# CHECK: [0,0] DeeER. . . vmulps %xmm0, %xmm1, %xmm2 59# CHECK-NEXT: [0,1] D==eeeER . . vhaddps %xmm2, %xmm2, %xmm3 60# CHECK-NEXT: [0,2] .D====eeeER . vhaddps %xmm3, %xmm3, %xmm4 61# CHECK-NEXT: [1,0] .DeeE-----R . vmulps %xmm0, %xmm1, %xmm2 62# CHECK-NEXT: [1,1] . D=eeeE---R . vhaddps %xmm2, %xmm2, %xmm3 63# CHECK-NEXT: [1,2] . D====eeeER . vhaddps %xmm3, %xmm3, %xmm4 64# CHECK-NEXT: [2,0] . DeeE-----R . vmulps %xmm0, %xmm1, %xmm2 65# CHECK-NEXT: [2,1] . D====eeeER . vhaddps %xmm2, %xmm2, %xmm3 66# CHECK-NEXT: [2,2] . D======eeeER vhaddps %xmm3, %xmm3, %xmm4 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 1.0 1.0 3.3 vmulps %xmm0, %xmm1, %xmm2 76# CHECK-NEXT: 1. 3 3.3 0.7 1.0 vhaddps %xmm2, %xmm2, %xmm3 77# CHECK-NEXT: 2. 3 5.7 0.0 0.0 vhaddps %xmm3, %xmm3, %xmm4 78