[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / BdVer2 / xop-super-registers-2.s
blob33ea990b57b5e6844187bf653a20080088c7676f
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 vpermil2pd $15, %xmm3, %xmm5, %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: 614
14 # CHECK-NEXT: Total uOps: 1100
16 # CHECK: Dispatch Width: 4
17 # CHECK-NEXT: uOps Per Cycle: 1.79
18 # CHECK-NEXT: IPC: 0.98
19 # CHECK-NEXT: Block RThroughput: 6.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: 1 3 1.00 vpermil2pd $15, %xmm3, %xmm5, %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: - - - - - - - - 6.00 6.00 - - - - 2.61 3.39 - - - - - - -
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: - - - - - - - - 1.58 0.42 - - - - - 1.00 - - - - - - - vmulps %ymm0, %ymm1, %ymm2
69 # CHECK-NEXT: - - - - - - - - 0.44 1.56 - - - - 0.61 0.39 - - - - - - - vpermil2pd $15, %xmm3, %xmm5, %xmm1, %xmm2
70 # CHECK-NEXT: - - - - - - - - 1.58 0.42 - - - - - 1.00 - - - - - - - vmulps %ymm2, %ymm3, %ymm4
71 # CHECK-NEXT: - - - - - - - - 0.40 1.60 - - - - 1.00 - - - - - - - - vaddps %ymm4, %ymm5, %ymm6
72 # CHECK-NEXT: - - - - - - - - 1.58 0.42 - - - - - 1.00 - - - - - - - vmulps %ymm6, %ymm3, %ymm4
73 # CHECK-NEXT: - - - - - - - - 0.42 1.58 - - - - 1.00 - - - - - - - - vaddps %ymm4, %ymm5, %ymm0
75 # CHECK: Timeline view:
76 # CHECK-NEXT: 0123456789 01
77 # CHECK-NEXT: Index 0123456789 0123456789
79 # CHECK: [0,0] DeeeeeER . . . . .. vmulps %ymm0, %ymm1, %ymm2
80 # CHECK-NEXT: [0,1] DeeeE--R . . . . .. vpermil2pd $15, %xmm3, %xmm5, %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] . DeeeE----------------------R. vpermil2pd $15, %xmm3, %xmm5, %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 11.0 0.5 0.0 vmulps %ymm0, %ymm1, %ymm2
100 # CHECK-NEXT: 1. 2 1.0 1.0 12.0 vpermil2pd $15, %xmm3, %xmm5, %xmm1, %xmm2
101 # CHECK-NEXT: 2. 2 3.0 0.0 8.5 vmulps %ymm2, %ymm3, %ymm4
102 # CHECK-NEXT: 3. 2 8.0 0.0 6.0 vaddps %ymm4, %ymm5, %ymm6
103 # CHECK-NEXT: 4. 2 12.0 0.0 4.0 vmulps %ymm6, %ymm3, %ymm4
104 # CHECK-NEXT: 5. 2 17.0 0.0 1.5 vaddps %ymm4, %ymm5, %ymm0
105 # CHECK-NEXT: 2 8.7 0.3 5.3 <total>