[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / Barcelona / read-advance-1.s
blobdeb69273d7c3172ec683e55d1c6d0ced09a8a2cf
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=1 -timeline -resource-pressure=false < %s | FileCheck %s
4 # The vmul can start executing 2cy in advance. That is beause the first use
5 # operand (i.e. %xmm1) is a ReadAfterLd. That means, the memory operand is
6 # evaluated before %xmm1.
8 addps %xmm0, %xmm1
9 mulps (%rdi), %xmm1
11 # CHECK: Iterations: 1
12 # CHECK-NEXT: Instructions: 2
13 # CHECK-NEXT: Total Cycles: 14
14 # CHECK-NEXT: Total uOps: 3
16 # CHECK: Dispatch Width: 4
17 # CHECK-NEXT: uOps Per Cycle: 0.21
18 # CHECK-NEXT: IPC: 0.14
19 # CHECK-NEXT: Block RThroughput: 1.0
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)
29 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
30 # CHECK-NEXT: 1 3 1.00 addps %xmm0, %xmm1
31 # CHECK-NEXT: 2 11 1.00 * mulps (%rdi), %xmm1
33 # CHECK: Timeline view:
34 # CHECK-NEXT: 0123
35 # CHECK-NEXT: Index 0123456789
37 # CHECK: [0,0] DeeeER . . addps %xmm0, %xmm1
38 # CHECK-NEXT: [0,1] DeeeeeeeeeeeER mulps (%rdi), %xmm1
40 # CHECK: Average Wait times (based on the timeline view):
41 # CHECK-NEXT: [0]: Executions
42 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
43 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
44 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
46 # CHECK: [0] [1] [2] [3]
47 # CHECK-NEXT: 0. 1 1.0 1.0 0.0 addps %xmm0, %xmm1
48 # CHECK-NEXT: 1. 1 1.0 0.0 0.0 mulps (%rdi), %xmm1
49 # CHECK-NEXT: 1 1.0 0.5 0.0 <total>