[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / llvm-mca / X86 / BtVer2 / partial-reg-update-3.s
blobf5ad0be561053e410c343f6c0f6d5c3ff60172a9
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=1500 -timeline -timeline-max-iterations=3 < %s | FileCheck %s
4 # perf stat reports a throughput of 1.00 IPC for this code snippet.
6 # The ILP is limited by the false dependency on %dx. So, the mov cannot execute
7 # in parallel with the add.
9 add %cx, %dx
10 mov %ax, %dx
11 xor %bx, %dx
13 # CHECK: Iterations: 1500
14 # CHECK-NEXT: Instructions: 4500
15 # CHECK-NEXT: Total Cycles: 4503
16 # CHECK-NEXT: Total uOps: 4500
18 # CHECK: Dispatch Width: 2
19 # CHECK-NEXT: uOps Per Cycle: 1.00
20 # CHECK-NEXT: IPC: 1.00
21 # CHECK-NEXT: Block RThroughput: 1.5
23 # CHECK: Instruction Info:
24 # CHECK-NEXT: [1]: #uOps
25 # CHECK-NEXT: [2]: Latency
26 # CHECK-NEXT: [3]: RThroughput
27 # CHECK-NEXT: [4]: MayLoad
28 # CHECK-NEXT: [5]: MayStore
29 # CHECK-NEXT: [6]: HasSideEffects (U)
31 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
32 # CHECK-NEXT: 1 1 0.50 addw %cx, %dx
33 # CHECK-NEXT: 1 1 0.50 movw %ax, %dx
34 # CHECK-NEXT: 1 1 0.50 xorw %bx, %dx
36 # CHECK: Resources:
37 # CHECK-NEXT: [0] - JALU0
38 # CHECK-NEXT: [1] - JALU1
39 # CHECK-NEXT: [2] - JDiv
40 # CHECK-NEXT: [3] - JFPA
41 # CHECK-NEXT: [4] - JFPM
42 # CHECK-NEXT: [5] - JFPU0
43 # CHECK-NEXT: [6] - JFPU1
44 # CHECK-NEXT: [7] - JLAGU
45 # CHECK-NEXT: [8] - JMul
46 # CHECK-NEXT: [9] - JSAGU
47 # CHECK-NEXT: [10] - JSTC
48 # CHECK-NEXT: [11] - JVALU0
49 # CHECK-NEXT: [12] - JVALU1
50 # CHECK-NEXT: [13] - JVIMUL
52 # CHECK: Resource pressure per iteration:
53 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
54 # CHECK-NEXT: 1.50 1.50 - - - - - - - - - - - -
56 # CHECK: Resource pressure by instruction:
57 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
58 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - addw %cx, %dx
59 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - movw %ax, %dx
60 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - xorw %bx, %dx
62 # CHECK: Timeline view:
63 # CHECK-NEXT: 01
64 # CHECK-NEXT: Index 0123456789
66 # CHECK: [0,0] DeER . .. addw %cx, %dx
67 # CHECK-NEXT: [0,1] D=eER. .. movw %ax, %dx
68 # CHECK-NEXT: [0,2] .D=eER .. xorw %bx, %dx
69 # CHECK-NEXT: [1,0] .D==eER .. addw %cx, %dx
70 # CHECK-NEXT: [1,1] . D==eER .. movw %ax, %dx
71 # CHECK-NEXT: [1,2] . D===eER .. xorw %bx, %dx
72 # CHECK-NEXT: [2,0] . D===eER.. addw %cx, %dx
73 # CHECK-NEXT: [2,1] . D====eER. movw %ax, %dx
74 # CHECK-NEXT: [2,2] . D====eER xorw %bx, %dx
76 # CHECK: Average Wait times (based on the timeline view):
77 # CHECK-NEXT: [0]: Executions
78 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
79 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
80 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
82 # CHECK: [0] [1] [2] [3]
83 # CHECK-NEXT: 0. 3 2.7 0.3 0.0 addw %cx, %dx
84 # CHECK-NEXT: 1. 3 3.3 0.0 0.0 movw %ax, %dx
85 # CHECK-NEXT: 2. 3 3.7 0.0 0.0 xorw %bx, %dx