[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-mca / X86 / Barcelona / partial-reg-update-3.s
blob6cf7d93cb748ea44f9c5371d339e353d023b420e
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 ILP is limited by the false dependency on %dx. So, the mov cannot execute
5 # in parallel with the add.
7 add %cx, %dx
8 mov %ax, %dx
9 xor %bx, %dx
11 # CHECK: Iterations: 1500
12 # CHECK-NEXT: Instructions: 4500
13 # CHECK-NEXT: Total Cycles: 1504
14 # CHECK-NEXT: Total uOps: 4500
16 # CHECK: Dispatch Width: 4
17 # CHECK-NEXT: uOps Per Cycle: 2.99
18 # CHECK-NEXT: IPC: 2.99
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 1 0.33 addw %cx, %dx
31 # CHECK-NEXT: 1 1 0.33 movw %ax, %dx
32 # CHECK-NEXT: 1 1 0.33 xorw %bx, %dx
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: - - 1.00 1.00 - 1.00 - -
48 # CHECK: Resource pressure by instruction:
49 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
50 # CHECK-NEXT: - - 0.67 - - 0.33 - - addw %cx, %dx
51 # CHECK-NEXT: - - - 0.67 - 0.33 - - movw %ax, %dx
52 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - xorw %bx, %dx
54 # CHECK: Timeline view:
55 # CHECK-NEXT: Index 0123456
57 # CHECK: [0,0] DeER .. addw %cx, %dx
58 # CHECK-NEXT: [0,1] DeER .. movw %ax, %dx
59 # CHECK-NEXT: [0,2] D=eER.. xorw %bx, %dx
60 # CHECK-NEXT: [1,0] D==eER. addw %cx, %dx
61 # CHECK-NEXT: [1,1] .DeE-R. movw %ax, %dx
62 # CHECK-NEXT: [1,2] .D=eER. xorw %bx, %dx
63 # CHECK-NEXT: [2,0] .D==eER addw %cx, %dx
64 # CHECK-NEXT: [2,1] .DeE--R movw %ax, %dx
65 # CHECK-NEXT: [2,2] . DeE-R xorw %bx, %dx
67 # CHECK: Average Wait times (based on the timeline view):
68 # CHECK-NEXT: [0]: Executions
69 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
70 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
71 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
73 # CHECK: [0] [1] [2] [3]
74 # CHECK-NEXT: 0. 3 2.3 0.3 0.0 addw %cx, %dx
75 # CHECK-NEXT: 1. 3 1.0 1.0 1.0 movw %ax, %dx
76 # CHECK-NEXT: 2. 3 1.7 0.0 0.3 xorw %bx, %dx
77 # CHECK-NEXT: 3 1.7 0.4 0.4 <total>