[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / llvm-mca / X86 / BtVer2 / xchg.s
blob22edddaeef7bcfa3e0afa21b093da6e97add3289
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=2 -timeline < %s | FileCheck %s
4 xchg %ecx, (%rsp)
5 add %ecx, %ecx
6 add %ecx, %ecx
7 imul %ecx, %ecx
8 imul %ecx, %ecx
10 # CHECK: Iterations: 2
11 # CHECK-NEXT: Instructions: 10
12 # CHECK-NEXT: Total Cycles: 38
13 # CHECK-NEXT: Total uOps: 14
15 # CHECK: Dispatch Width: 2
16 # CHECK-NEXT: uOps Per Cycle: 0.37
17 # CHECK-NEXT: IPC: 0.26
18 # CHECK-NEXT: Block RThroughput: 16.0
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: 3 16 16.00 * * xchgl %ecx, (%rsp)
30 # CHECK-NEXT: 1 1 0.50 addl %ecx, %ecx
31 # CHECK-NEXT: 1 1 0.50 addl %ecx, %ecx
32 # CHECK-NEXT: 1 3 1.00 imull %ecx, %ecx
33 # CHECK-NEXT: 1 3 1.00 imull %ecx, %ecx
35 # CHECK: Resources:
36 # CHECK-NEXT: [0] - JALU0
37 # CHECK-NEXT: [1] - JALU1
38 # CHECK-NEXT: [2] - JDiv
39 # CHECK-NEXT: [3] - JFPA
40 # CHECK-NEXT: [4] - JFPM
41 # CHECK-NEXT: [5] - JFPU0
42 # CHECK-NEXT: [6] - JFPU1
43 # CHECK-NEXT: [7] - JLAGU
44 # CHECK-NEXT: [8] - JMul
45 # CHECK-NEXT: [9] - JSAGU
46 # CHECK-NEXT: [10] - JSTC
47 # CHECK-NEXT: [11] - JVALU0
48 # CHECK-NEXT: [12] - JVALU1
49 # CHECK-NEXT: [13] - JVIMUL
51 # CHECK: Resource pressure per iteration:
52 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
53 # CHECK-NEXT: 2.00 4.00 - - - - - 16.00 2.00 16.00 - - - -
55 # CHECK: Resource pressure by instruction:
56 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
57 # CHECK-NEXT: 1.00 1.00 - - - - - 16.00 - 16.00 - - - - xchgl %ecx, (%rsp)
58 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - addl %ecx, %ecx
59 # CHECK-NEXT: - 1.00 - - - - - - - - - - - - addl %ecx, %ecx
60 # CHECK-NEXT: - 1.00 - - - - - - 1.00 - - - - - imull %ecx, %ecx
61 # CHECK-NEXT: - 1.00 - - - - - - 1.00 - - - - - imull %ecx, %ecx
63 # CHECK: Timeline view:
64 # CHECK-NEXT: 0123456789 01234567
65 # CHECK-NEXT: Index 0123456789 0123456789
67 # CHECK: [0,0] DeeeeeeeeeeeeeeeeER . . . . . xchgl %ecx, (%rsp)
68 # CHECK-NEXT: [0,1] .D==========eE----R . . . . . addl %ecx, %ecx
69 # CHECK-NEXT: [0,2] . D==========eE----R. . . . . addl %ecx, %ecx
70 # CHECK-NEXT: [0,3] . D===========eeeE-R. . . . . imull %ecx, %ecx
71 # CHECK-NEXT: [0,4] . D=============eeeER . . . . imull %ecx, %ecx
72 # CHECK-NEXT: [1,0] . D============eeeeeeeeeeeeeeeeER. . xchgl %ecx, (%rsp)
73 # CHECK-NEXT: [1,1] . D======================eE----R. . addl %ecx, %ecx
74 # CHECK-NEXT: [1,2] . .D======================eE----R . addl %ecx, %ecx
75 # CHECK-NEXT: [1,3] . .D=======================eeeE-R . imull %ecx, %ecx
76 # CHECK-NEXT: [1,4] . . D=========================eeeER imull %ecx, %ecx
78 # CHECK: Average Wait times (based on the timeline view):
79 # CHECK-NEXT: [0]: Executions
80 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
81 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
82 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
84 # CHECK: [0] [1] [2] [3]
85 # CHECK-NEXT: 0. 2 7.0 0.5 0.0 xchgl %ecx, (%rsp)
86 # CHECK-NEXT: 1. 2 17.0 0.0 4.0 addl %ecx, %ecx
87 # CHECK-NEXT: 2. 2 17.0 0.0 4.0 addl %ecx, %ecx
88 # CHECK-NEXT: 3. 2 18.0 0.0 1.0 imull %ecx, %ecx
89 # CHECK-NEXT: 4. 2 20.0 0.0 0.0 imull %ecx, %ecx