[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / Barcelona / partial-reg-update-4.s
blobf349c3e0e61eecd1289325e96f491ccfe81c1bb5
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=1500 -timeline -timeline-max-iterations=3 < %s | FileCheck %s
4 # The lzcnt cannot execute in parallel with the imul because there is a false
5 # dependency on %bx.
7 imul %ax, %bx
8 lzcnt %ax, %bx
9 add %cx, %bx
11 # CHECK: Iterations: 1500
12 # CHECK-NEXT: Instructions: 4500
13 # CHECK-NEXT: Total Cycles: 3005
14 # CHECK-NEXT: Total uOps: 4500
16 # CHECK: Dispatch Width: 4
17 # CHECK-NEXT: uOps Per Cycle: 1.50
18 # CHECK-NEXT: IPC: 1.50
19 # CHECK-NEXT: Block RThroughput: 2.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 imulw %ax, %bx
31 # CHECK-NEXT: 1 3 1.00 lzcntw %ax, %bx
32 # CHECK-NEXT: 1 1 0.33 addw %cx, %bx
34 # CHECK: Resources:
35 # CHECK-NEXT: [0] - SBDivider
36 # CHECK-NEXT: [1] - SBFPDivider
37 # CHECK-NEXT: [2] - SBPort0
38 # CHECK-NEXT: [3] - SBPort1
39 # CHECK-NEXT: [4] - SBPort4
40 # CHECK-NEXT: [5] - SBPort5
41 # CHECK-NEXT: [6.0] - SBPort23
42 # CHECK-NEXT: [6.1] - SBPort23
44 # CHECK: Resource pressure per iteration:
45 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
46 # CHECK-NEXT: - - 0.50 2.00 - 0.50 - -
48 # CHECK: Resource pressure by instruction:
49 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
50 # CHECK-NEXT: - - - 1.00 - - - - imulw %ax, %bx
51 # CHECK-NEXT: - - - 1.00 - - - - lzcntw %ax, %bx
52 # CHECK-NEXT: - - 0.50 - - 0.50 - - addw %cx, %bx
54 # CHECK: Timeline view:
55 # CHECK-NEXT: 01
56 # CHECK-NEXT: Index 0123456789
58 # CHECK: [0,0] DeeeER .. imulw %ax, %bx
59 # CHECK-NEXT: [0,1] D=eeeER .. lzcntw %ax, %bx
60 # CHECK-NEXT: [0,2] D====eER .. addw %cx, %bx
61 # CHECK-NEXT: [1,0] D=====eeeER. imulw %ax, %bx
62 # CHECK-NEXT: [1,1] .D=eeeE---R. lzcntw %ax, %bx
63 # CHECK-NEXT: [1,2] .D====eE--R. addw %cx, %bx
64 # CHECK-NEXT: [2,0] .D=====eeeER imulw %ax, %bx
65 # CHECK-NEXT: [2,1] .D==eeeE---R lzcntw %ax, %bx
66 # CHECK-NEXT: [2,2] . D====eE--R addw %cx, %bx
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
74 # CHECK: [0] [1] [2] [3]
75 # CHECK-NEXT: 0. 3 4.3 0.3 0.0 imulw %ax, %bx
76 # CHECK-NEXT: 1. 3 2.3 2.3 2.0 lzcntw %ax, %bx
77 # CHECK-NEXT: 2. 3 5.0 0.0 1.3 addw %cx, %bx
78 # CHECK-NEXT: 3 3.9 0.9 1.1 <total>