50 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s3 4# The vmul can start executing 2cy in advance. That is beause the first use5# operand (i.e. %xmm1) is a ReadAfterLd. That means, the memory operand is6# evaluated before %xmm1.7 8addps %xmm0, %xmm19mulps (%rdi), %xmm110 11# CHECK: Iterations: 112# CHECK-NEXT: Instructions: 213# CHECK-NEXT: Total Cycles: 1414# CHECK-NEXT: Total uOps: 315 16# CHECK: Dispatch Width: 417# CHECK-NEXT: uOps Per Cycle: 0.2118# CHECK-NEXT: IPC: 0.1419# CHECK-NEXT: Block RThroughput: 1.020 21# CHECK: Instruction Info:22# CHECK-NEXT: [1]: #uOps23# CHECK-NEXT: [2]: Latency24# CHECK-NEXT: [3]: RThroughput25# CHECK-NEXT: [4]: MayLoad26# CHECK-NEXT: [5]: MayStore27# CHECK-NEXT: [6]: HasSideEffects (U)28 29# CHECK: [1] [2] [3] [4] [5] [6] Instructions:30# CHECK-NEXT: 1 3 1.00 addps %xmm0, %xmm131# CHECK-NEXT: 2 11 1.00 * mulps (%rdi), %xmm132 33# CHECK: Timeline view:34# CHECK-NEXT: 012335# CHECK-NEXT: Index 012345678936 37# CHECK: [0,0] DeeeER . . addps %xmm0, %xmm138# CHECK-NEXT: [0,1] DeeeeeeeeeeeER mulps (%rdi), %xmm139 40# CHECK: Average Wait times (based on the timeline view):41# CHECK-NEXT: [0]: Executions42# CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue43# CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready44# CHECK-NEXT: [3]: Average time elapsed from WB until retire stage45 46# CHECK: [0] [1] [2] [3]47# CHECK-NEXT: 0. 1 1.0 1.0 0.0 addps %xmm0, %xmm148# CHECK-NEXT: 1. 1 1.0 0.0 0.0 mulps (%rdi), %xmm149# CHECK-NEXT: 1 1.0 0.5 0.0 <total>50