1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py 2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -timeline -timeline-max-iterations=3 -iterations=1500 < %s | FileCheck %s 3 4 # perf stat reports an IPC of 2.00 for this block of code. 5 6 # All of the vector packed compares from this test are zero idioms. These zero 7 # idioms are all detected and removed by the register renamer. That means, no 8 # uOp is executed, and there is no RAW dependency for any of the packed 9 # compares. 10 11 vpcmpgtb %xmm0, %xmm0, %xmm1 12 vpcmpgtw %xmm1, %xmm1, %xmm2 13 vpcmpgtd %xmm2, %xmm2, %xmm3 14 vpcmpgtq %xmm3, %xmm3, %xmm0 15 16 # CHECK: Iterations: 1500 17 # CHECK-NEXT: Instructions: 6000 18 # CHECK-NEXT: Total Cycles: 3001 19 # CHECK-NEXT: Dispatch Width: 2 20 # CHECK-NEXT: IPC: 2.00 21 # CHECK-NEXT: Block RThroughput: 2.0 22 23 # CHECK: Instruction Info: 24 # CHECK-NEXT: [1]: #uOps 25 # CHECK-NEXT: [2]: Latency 26 # CHECK-NEXT: [3]: RThroughput 27 # CHECK-NEXT: [4]: MayLoad 28 # CHECK-NEXT: [5]: MayStore 29 # CHECK-NEXT: [6]: HasSideEffects (U) 30 31 # CHECK: [1] [2] [3] [4] [5] [6] Instructions: 32 # CHECK-NEXT: 1 0 0.50 vpcmpgtb %xmm0, %xmm0, %xmm1 33 # CHECK-NEXT: 1 0 0.50 vpcmpgtw %xmm1, %xmm1, %xmm2 34 # CHECK-NEXT: 1 0 0.50 vpcmpgtd %xmm2, %xmm2, %xmm3 35 # CHECK-NEXT: 1 0 0.50 vpcmpgtq %xmm3, %xmm3, %xmm0 36 37 # CHECK: Resources: 38 # CHECK-NEXT: [0] - JALU0 39 # CHECK-NEXT: [1] - JALU1 40 # CHECK-NEXT: [2] - JDiv 41 # CHECK-NEXT: [3] - JFPA 42 # CHECK-NEXT: [4] - JFPM 43 # CHECK-NEXT: [5] - JFPU0 44 # CHECK-NEXT: [6] - JFPU1 45 # CHECK-NEXT: [7] - JLAGU 46 # CHECK-NEXT: [8] - JMul 47 # CHECK-NEXT: [9] - JSAGU 48 # CHECK-NEXT: [10] - JSTC 49 # CHECK-NEXT: [11] - JVALU0 50 # CHECK-NEXT: [12] - JVALU1 51 # CHECK-NEXT: [13] - JVIMUL 52 53 # CHECK: Resource pressure per iteration: 54 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] 55 # CHECK-NEXT: - - - - - - - - - - - - - - 56 57 # CHECK: Resource pressure by instruction: 58 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions: 59 # CHECK-NEXT: - - - - - - - - - - - - - - vpcmpgtb %xmm0, %xmm0, %xmm1 60 # CHECK-NEXT: - - - - - - - - - - - - - - vpcmpgtw %xmm1, %xmm1, %xmm2 61 # CHECK-NEXT: - - - - - - - - - - - - - - vpcmpgtd %xmm2, %xmm2, %xmm3 62 # CHECK-NEXT: - - - - - - - - - - - - - - vpcmpgtq %xmm3, %xmm3, %xmm0 63 64 # CHECK: Timeline view: 65 # CHECK-NEXT: Index 0123456 66 67 # CHECK: [0,0] DR .. vpcmpgtb %xmm0, %xmm0, %xmm1 68 # CHECK-NEXT: [0,1] DR .. vpcmpgtw %xmm1, %xmm1, %xmm2 69 # CHECK-NEXT: [0,2] .DR .. vpcmpgtd %xmm2, %xmm2, %xmm3 70 # CHECK-NEXT: [0,3] .DR .. vpcmpgtq %xmm3, %xmm3, %xmm0 71 # CHECK-NEXT: [1,0] . DR .. vpcmpgtb %xmm0, %xmm0, %xmm1 72 # CHECK-NEXT: [1,1] . DR .. vpcmpgtw %xmm1, %xmm1, %xmm2 73 # CHECK-NEXT: [1,2] . DR.. vpcmpgtd %xmm2, %xmm2, %xmm3 74 # CHECK-NEXT: [1,3] . DR.. vpcmpgtq %xmm3, %xmm3, %xmm0 75 # CHECK-NEXT: [2,0] . DR. vpcmpgtb %xmm0, %xmm0, %xmm1 76 # CHECK-NEXT: [2,1] . DR. vpcmpgtw %xmm1, %xmm1, %xmm2 77 # CHECK-NEXT: [2,2] . DR vpcmpgtd %xmm2, %xmm2, %xmm3 78 # CHECK-NEXT: [2,3] . DR vpcmpgtq %xmm3, %xmm3, %xmm0 79 80 # CHECK: Average Wait times (based on the timeline view): 81 # CHECK-NEXT: [0]: Executions 82 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue 83 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready 84 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage 85 86 # CHECK: [0] [1] [2] [3] 87 # CHECK-NEXT: 0. 3 0.0 0.0 0.0 vpcmpgtb %xmm0, %xmm0, %xmm1 88 # CHECK-NEXT: 1. 3 0.0 0.0 0.0 vpcmpgtw %xmm1, %xmm1, %xmm2 89 # CHECK-NEXT: 2. 3 0.0 0.0 0.0 vpcmpgtd %xmm2, %xmm2, %xmm3 90 # CHECK-NEXT: 3. 3 0.0 0.0 0.0 vpcmpgtq %xmm3, %xmm3, %xmm0 91