49 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -iterations=1 -resource-pressure=false -timeline < %s | FileCheck %s3 4imul %ax, %cx5add %al, %cl6add %ecx, %ebx7 8# CHECK: Iterations: 19# CHECK-NEXT: Instructions: 310# CHECK-NEXT: Total Cycles: 911# CHECK-NEXT: Total uOps: 312 13# CHECK: Dispatch Width: 414# CHECK-NEXT: uOps Per Cycle: 0.3315# CHECK-NEXT: IPC: 0.3316# CHECK-NEXT: Block RThroughput: 2.017 18# CHECK: Instruction Info:19# CHECK-NEXT: [1]: #uOps20# CHECK-NEXT: [2]: Latency21# CHECK-NEXT: [3]: RThroughput22# CHECK-NEXT: [4]: MayLoad23# CHECK-NEXT: [5]: MayStore24# CHECK-NEXT: [6]: HasSideEffects (U)25 26# CHECK: [1] [2] [3] [4] [5] [6] Instructions:27# CHECK-NEXT: 1 4 2.00 imulw %ax, %cx28# CHECK-NEXT: 1 1 1.00 addb %al, %cl29# CHECK-NEXT: 1 1 1.00 addl %ecx, %ebx30 31# CHECK: Timeline view:32# CHECK-NEXT: Index 01234567833 34# CHECK: [0,0] DeeeeER . imulw %ax, %cx35# CHECK-NEXT: [0,1] D====eER. addb %al, %cl36# CHECK-NEXT: [0,2] D=====eER addl %ecx, %ebx37 38# CHECK: Average Wait times (based on the timeline view):39# CHECK-NEXT: [0]: Executions40# CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue41# CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready42# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage43 44# CHECK: [0] [1] [2] [3]45# CHECK-NEXT: 0. 1 1.0 1.0 0.0 imulw %ax, %cx46# CHECK-NEXT: 1. 1 5.0 0.0 0.0 addb %al, %cl47# CHECK-NEXT: 2. 1 6.0 0.0 0.0 addl %ecx, %ebx48# CHECK-NEXT: 1 4.0 0.3 0.0 <total>49