[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-mca / X86 / Barcelona / partial-reg-update-7.s
blob58981f9a3a914fdf58280f0ff4158684e2347cf1
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 -timeline -timeline-max-iterations=5 < %s | FileCheck %s
4 sete %r9b
5 movzbl %al, %eax
6 shll $2, %eax
7 imull %ecx, %eax
8 cmpl $1025, %eax
10 # CHECK: Iterations: 100
11 # CHECK-NEXT: Instructions: 500
12 # CHECK-NEXT: Total Cycles: 504
13 # CHECK-NEXT: Total uOps: 500
15 # CHECK: Dispatch Width: 4
16 # CHECK-NEXT: uOps Per Cycle: 0.99
17 # CHECK-NEXT: IPC: 0.99
18 # CHECK-NEXT: Block RThroughput: 1.3
20 # CHECK: Instruction Info:
21 # CHECK-NEXT: [1]: #uOps
22 # CHECK-NEXT: [2]: Latency
23 # CHECK-NEXT: [3]: RThroughput
24 # CHECK-NEXT: [4]: MayLoad
25 # CHECK-NEXT: [5]: MayStore
26 # CHECK-NEXT: [6]: HasSideEffects (U)
28 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
29 # CHECK-NEXT: 1 1 0.50 sete %r9b
30 # CHECK-NEXT: 1 1 0.33 movzbl %al, %eax
31 # CHECK-NEXT: 1 1 0.50 shll $2, %eax
32 # CHECK-NEXT: 1 3 1.00 imull %ecx, %eax
33 # CHECK-NEXT: 1 1 0.33 cmpl $1025, %eax
35 # CHECK: Resources:
36 # CHECK-NEXT: [0] - SBDivider
37 # CHECK-NEXT: [1] - SBFPDivider
38 # CHECK-NEXT: [2] - SBPort0
39 # CHECK-NEXT: [3] - SBPort1
40 # CHECK-NEXT: [4] - SBPort4
41 # CHECK-NEXT: [5] - SBPort5
42 # CHECK-NEXT: [6.0] - SBPort23
43 # CHECK-NEXT: [6.1] - SBPort23
45 # CHECK: Resource pressure per iteration:
46 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
47 # CHECK-NEXT: - - 1.66 1.67 - 1.67 - -
49 # CHECK: Resource pressure by instruction:
50 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
51 # CHECK-NEXT: - - 0.66 - - 0.34 - - sete %r9b
52 # CHECK-NEXT: - - 0.33 0.34 - 0.33 - - movzbl %al, %eax
53 # CHECK-NEXT: - - 0.34 - - 0.66 - - shll $2, %eax
54 # CHECK-NEXT: - - - 1.00 - - - - imull %ecx, %eax
55 # CHECK-NEXT: - - 0.33 0.33 - 0.34 - - cmpl $1025, %eax
57 # CHECK: Timeline view:
58 # CHECK-NEXT: 0123456789
59 # CHECK-NEXT: Index 0123456789 012345678
61 # CHECK: [0,0] DeER . . . . . . sete %r9b
62 # CHECK-NEXT: [0,1] DeER . . . . . . movzbl %al, %eax
63 # CHECK-NEXT: [0,2] D=eER. . . . . . shll $2, %eax
64 # CHECK-NEXT: [0,3] D==eeeER . . . . . imull %ecx, %eax
65 # CHECK-NEXT: [0,4] .D====eER . . . . . cmpl $1025, %eax
66 # CHECK-NEXT: [1,0] .D=====eER. . . . . sete %r9b
67 # CHECK-NEXT: [1,1] .D====eE-R. . . . . movzbl %al, %eax
68 # CHECK-NEXT: [1,2] .D=====eER. . . . . shll $2, %eax
69 # CHECK-NEXT: [1,3] . D=====eeeER . . . . imull %ecx, %eax
70 # CHECK-NEXT: [1,4] . D========eER . . . . cmpl $1025, %eax
71 # CHECK-NEXT: [2,0] . D=========eER. . . . sete %r9b
72 # CHECK-NEXT: [2,1] . D========eE-R. . . . movzbl %al, %eax
73 # CHECK-NEXT: [2,2] . D========eER. . . . shll $2, %eax
74 # CHECK-NEXT: [2,3] . D=========eeeER . . . imull %ecx, %eax
75 # CHECK-NEXT: [2,4] . D============eER . . . cmpl $1025, %eax
76 # CHECK-NEXT: [3,0] . D=============eER. . . sete %r9b
77 # CHECK-NEXT: [3,1] . D===========eE-R. . . movzbl %al, %eax
78 # CHECK-NEXT: [3,2] . D============eER. . . shll $2, %eax
79 # CHECK-NEXT: [3,3] . D=============eeeER . . imull %ecx, %eax
80 # CHECK-NEXT: [3,4] . D================eER . . cmpl $1025, %eax
81 # CHECK-NEXT: [4,0] . D================eER. . sete %r9b
82 # CHECK-NEXT: [4,1] . D===============eE-R. . movzbl %al, %eax
83 # CHECK-NEXT: [4,2] . D================eER. . shll $2, %eax
84 # CHECK-NEXT: [4,3] . D=================eeeER. imull %ecx, %eax
85 # CHECK-NEXT: [4,4] . .D===================eER cmpl $1025, %eax
87 # CHECK: Average Wait times (based on the timeline view):
88 # CHECK-NEXT: [0]: Executions
89 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
90 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
91 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
93 # CHECK: [0] [1] [2] [3]
94 # CHECK-NEXT: 0. 5 9.6 0.2 0.0 sete %r9b
95 # CHECK-NEXT: 1. 5 8.6 0.2 0.8 movzbl %al, %eax
96 # CHECK-NEXT: 2. 5 9.4 0.0 0.0 shll $2, %eax
97 # CHECK-NEXT: 3. 5 10.2 0.0 0.0 imull %ecx, %eax
98 # CHECK-NEXT: 4. 5 12.8 0.0 0.0 cmpl $1025, %eax
99 # CHECK-NEXT: 5 10.1 0.1 0.2 <total>