[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / BdVer2 / xop-super-registers-1.s
blobf694a0429e2a18e16107c7d5af02a1d7b9a0d003
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -timeline -timeline-max-iterations=2 < %s | FileCheck %s
4 vmulps %ymm0, %ymm1, %ymm2
5 vfrczpd %xmm1, %xmm2
6 vmulps %ymm2, %ymm3, %ymm4
7 vaddps %ymm4, %ymm5, %ymm6
8 vmulps %ymm6, %ymm3, %ymm4
9 vaddps %ymm4, %ymm5, %ymm0
11 # CHECK: Iterations: 100
12 # CHECK-NEXT: Instructions: 600
13 # CHECK-NEXT: Total Cycles: 550
14 # CHECK-NEXT: Total uOps: 1200
16 # CHECK: Dispatch Width: 4
17 # CHECK-NEXT: uOps Per Cycle: 2.18
18 # CHECK-NEXT: IPC: 1.09
19 # CHECK-NEXT: Block RThroughput: 5.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: 2 5 1.00 vmulps %ymm0, %ymm1, %ymm2
31 # CHECK-NEXT: 2 10 2.00 vfrczpd %xmm1, %xmm2
32 # CHECK-NEXT: 2 5 1.00 vmulps %ymm2, %ymm3, %ymm4
33 # CHECK-NEXT: 2 5 1.00 vaddps %ymm4, %ymm5, %ymm6
34 # CHECK-NEXT: 2 5 1.00 vmulps %ymm6, %ymm3, %ymm4
35 # CHECK-NEXT: 2 5 1.00 vaddps %ymm4, %ymm5, %ymm0
37 # CHECK: Resources:
38 # CHECK-NEXT: [0.0] - PdAGLU01
39 # CHECK-NEXT: [0.1] - PdAGLU01
40 # CHECK-NEXT: [1] - PdBranch
41 # CHECK-NEXT: [2] - PdCount
42 # CHECK-NEXT: [3] - PdDiv
43 # CHECK-NEXT: [4] - PdEX0
44 # CHECK-NEXT: [5] - PdEX1
45 # CHECK-NEXT: [6] - PdFPCVT
46 # CHECK-NEXT: [7.0] - PdFPFMA
47 # CHECK-NEXT: [7.1] - PdFPFMA
48 # CHECK-NEXT: [8.0] - PdFPMAL
49 # CHECK-NEXT: [8.1] - PdFPMAL
50 # CHECK-NEXT: [9] - PdFPMMA
51 # CHECK-NEXT: [10] - PdFPSTO
52 # CHECK-NEXT: [11] - PdFPU0
53 # CHECK-NEXT: [12] - PdFPU1
54 # CHECK-NEXT: [13] - PdFPU2
55 # CHECK-NEXT: [14] - PdFPU3
56 # CHECK-NEXT: [15] - PdFPXBR
57 # CHECK-NEXT: [16.0] - PdLoad
58 # CHECK-NEXT: [16.1] - PdLoad
59 # CHECK-NEXT: [17] - PdMul
60 # CHECK-NEXT: [18] - PdStore
62 # CHECK: Resource pressure per iteration:
63 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18]
64 # CHECK-NEXT: - - - - - - - - 5.00 5.00 - - - 1.00 2.00 5.00 - - - - - - -
66 # CHECK: Resource pressure by instruction:
67 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18] Instructions:
68 # CHECK-NEXT: - - - - - - - - 0.98 1.02 - - - - - 1.00 - - - - - - - vmulps %ymm0, %ymm1, %ymm2
69 # CHECK-NEXT: - - - - - - - - - - - - - 1.00 - 2.00 - - - - - - - vfrczpd %xmm1, %xmm2
70 # CHECK-NEXT: - - - - - - - - 0.98 1.02 - - - - - 1.00 - - - - - - - vmulps %ymm2, %ymm3, %ymm4
71 # CHECK-NEXT: - - - - - - - - 1.02 0.98 - - - - 1.00 - - - - - - - - vaddps %ymm4, %ymm5, %ymm6
72 # CHECK-NEXT: - - - - - - - - 1.02 0.98 - - - - - 1.00 - - - - - - - vmulps %ymm6, %ymm3, %ymm4
73 # CHECK-NEXT: - - - - - - - - 1.00 1.00 - - - - 1.00 - - - - - - - - vaddps %ymm4, %ymm5, %ymm0
75 # CHECK: Timeline view:
76 # CHECK-NEXT: 0123456789 0123456789
77 # CHECK-NEXT: Index 0123456789 0123456789
79 # CHECK: [0,0] DeeeeeER . . . . . . . vmulps %ymm0, %ymm1, %ymm2
80 # CHECK-NEXT: [0,1] D=eeeeeeeeeeER . . . . . . vfrczpd %xmm1, %xmm2
81 # CHECK-NEXT: [0,2] .D==========eeeeeER . . . . . vmulps %ymm2, %ymm3, %ymm4
82 # CHECK-NEXT: [0,3] .D===============eeeeeER . . . . vaddps %ymm4, %ymm5, %ymm6
83 # CHECK-NEXT: [0,4] . D===================eeeeeER . . . vmulps %ymm6, %ymm3, %ymm4
84 # CHECK-NEXT: [0,5] . D========================eeeeeER . . vaddps %ymm4, %ymm5, %ymm0
85 # CHECK-NEXT: [1,0] . D============================eeeeeER. vmulps %ymm0, %ymm1, %ymm2
86 # CHECK-NEXT: [1,1] . DeeeeeeeeeeE-----------------------R. vfrczpd %xmm1, %xmm2
87 # CHECK-NEXT: [1,2] . D==========eeeeeE-----------------R. vmulps %ymm2, %ymm3, %ymm4
88 # CHECK-NEXT: [1,3] . D===============eeeeeE------------R. vaddps %ymm4, %ymm5, %ymm6
89 # CHECK-NEXT: [1,4] . D===================eeeeeE--------R vmulps %ymm6, %ymm3, %ymm4
90 # CHECK-NEXT: [1,5] . D========================eeeeeE---R vaddps %ymm4, %ymm5, %ymm0
92 # CHECK: Average Wait times (based on the timeline view):
93 # CHECK-NEXT: [0]: Executions
94 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
95 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
96 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
98 # CHECK: [0] [1] [2] [3]
99 # CHECK-NEXT: 0. 2 15.0 0.5 0.0 vmulps %ymm0, %ymm1, %ymm2
100 # CHECK-NEXT: 1. 2 1.5 1.5 11.5 vfrczpd %xmm1, %xmm2
101 # CHECK-NEXT: 2. 2 11.0 0.5 8.5 vmulps %ymm2, %ymm3, %ymm4
102 # CHECK-NEXT: 3. 2 16.0 0.0 6.0 vaddps %ymm4, %ymm5, %ymm6
103 # CHECK-NEXT: 4. 2 20.0 0.0 4.0 vmulps %ymm6, %ymm3, %ymm4
104 # CHECK-NEXT: 5. 2 25.0 0.0 1.5 vaddps %ymm4, %ymm5, %ymm0
105 # CHECK-NEXT: 2 14.8 0.4 5.3 <total>