Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / Barcelona / int-to-fpu-forwarding-3.s
blob5cf5ca1cc8715200328f5a05cf84dda98cbc7a7b
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=500 -timeline -timeline-max-iterations=3 < %s | FileCheck %s
4 add %eax, %eax
5 pinsrw $0, %eax, %xmm0
6 pinsrw $1, %eax, %xmm0
8 # CHECK: Iterations: 500
9 # CHECK-NEXT: Instructions: 1500
10 # CHECK-NEXT: Total Cycles: 2004
11 # CHECK-NEXT: Total uOps: 2500
13 # CHECK: Dispatch Width: 4
14 # CHECK-NEXT: uOps Per Cycle: 1.25
15 # CHECK-NEXT: IPC: 0.75
16 # CHECK-NEXT: Block RThroughput: 2.0
18 # CHECK: Instruction Info:
19 # CHECK-NEXT: [1]: #uOps
20 # CHECK-NEXT: [2]: Latency
21 # CHECK-NEXT: [3]: RThroughput
22 # CHECK-NEXT: [4]: MayLoad
23 # CHECK-NEXT: [5]: MayStore
24 # CHECK-NEXT: [6]: HasSideEffects (U)
26 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
27 # CHECK-NEXT: 1 1 0.33 addl %eax, %eax
28 # CHECK-NEXT: 2 2 1.00 pinsrw $0, %eax, %xmm0
29 # CHECK-NEXT: 2 2 1.00 pinsrw $1, %eax, %xmm0
31 # CHECK: Resources:
32 # CHECK-NEXT: [0] - SBDivider
33 # CHECK-NEXT: [1] - SBFPDivider
34 # CHECK-NEXT: [2] - SBPort0
35 # CHECK-NEXT: [3] - SBPort1
36 # CHECK-NEXT: [4] - SBPort4
37 # CHECK-NEXT: [5] - SBPort5
38 # CHECK-NEXT: [6.0] - SBPort23
39 # CHECK-NEXT: [6.1] - SBPort23
41 # CHECK: Resource pressure per iteration:
42 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
43 # CHECK-NEXT: - - 0.98 2.01 - 2.01 - -
45 # CHECK: Resource pressure by instruction:
46 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
47 # CHECK-NEXT: - - 0.98 0.01 - 0.01 - - addl %eax, %eax
48 # CHECK-NEXT: - - - 1.00 - 1.00 - - pinsrw $0, %eax, %xmm0
49 # CHECK-NEXT: - - - 1.00 - 1.00 - - pinsrw $1, %eax, %xmm0
51 # CHECK: Timeline view:
52 # CHECK-NEXT: 012345
53 # CHECK-NEXT: Index 0123456789
55 # CHECK: [0,0] DeER . . . addl %eax, %eax
56 # CHECK-NEXT: [0,1] D=eeER . . pinsrw $0, %eax, %xmm0
57 # CHECK-NEXT: [0,2] .D==eeER . . pinsrw $1, %eax, %xmm0
58 # CHECK-NEXT: [1,0] .DeE---R . . addl %eax, %eax
59 # CHECK-NEXT: [1,1] . D===eeER. . pinsrw $0, %eax, %xmm0
60 # CHECK-NEXT: [1,2] . D=====eeER . pinsrw $1, %eax, %xmm0
61 # CHECK-NEXT: [2,0] . DeE-----R . addl %eax, %eax
62 # CHECK-NEXT: [2,1] . D======eeER . pinsrw $0, %eax, %xmm0
63 # CHECK-NEXT: [2,2] . D=======eeER pinsrw $1, %eax, %xmm0
65 # CHECK: Average Wait times (based on the timeline view):
66 # CHECK-NEXT: [0]: Executions
67 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
68 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
69 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
71 # CHECK: [0] [1] [2] [3]
72 # CHECK-NEXT: 0. 3 1.0 0.7 2.7 addl %eax, %eax
73 # CHECK-NEXT: 1. 3 4.3 0.0 0.0 pinsrw $0, %eax, %xmm0
74 # CHECK-NEXT: 2. 3 5.7 0.0 0.0 pinsrw $1, %eax, %xmm0