1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=thumbv7-gnueabihf-linux -mcpu=cortex-a57 -timeline -iterations=10 < %s | FileCheck %s
4 # Test case from PR50174.
5 # NOP consumes zero resources, and it is 0 uOPs.
7 pop
{r3, r4, r5, r6, r7, pc
}
10 # CHECK: Iterations: 10
11 # CHECK-NEXT: Instructions: 20
12 # CHECK-NEXT: Total Cycles: 43
13 # CHECK-NEXT: Total uOps: 80
15 # CHECK: Dispatch Width: 3
16 # CHECK-NEXT: uOps Per Cycle: 1.86
17 # CHECK-NEXT: IPC: 0.47
18 # CHECK-NEXT: Block RThroughput: 4.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: 8 4 4.00 * U pop {r3, r4, r5, r6, r7, pc}
30 # CHECK-NEXT: 0 0 0.00 * * U nop
33 # CHECK-NEXT: [0] - A57UnitB
34 # CHECK-NEXT: [1.0] - A57UnitI
35 # CHECK-NEXT: [1.1] - A57UnitI
36 # CHECK-NEXT: [2] - A57UnitL
37 # CHECK-NEXT: [3] - A57UnitM
38 # CHECK-NEXT: [4] - A57UnitS
39 # CHECK-NEXT: [5] - A57UnitW
40 # CHECK-NEXT: [6] - A57UnitX
42 # CHECK: Resource pressure per iteration:
43 # CHECK-NEXT: [0] [1.0] [1.1] [2] [3] [4] [5] [6]
44 # CHECK-NEXT: - 2.00 2.00 4.00 - - - -
46 # CHECK: Resource pressure by instruction:
47 # CHECK-NEXT: [0] [1.0] [1.1] [2] [3] [4] [5] [6] Instructions:
48 # CHECK-NEXT: - 2.00 2.00 4.00 - - - - pop {r3, r4, r5, r6, r7, pc}
49 # CHECK-NEXT: - - - - - - - - nop
51 # CHECK: Timeline view:
52 # CHECK-NEXT: 0123456789 0123456789
53 # CHECK-NEXT: Index 0123456789 0123456789 012
55 # CHECK: [0,0] DeeeeER . . . . . . . . pop {r3, r4, r5, r6, r7, pc}
56 # CHECK-NEXT: [0,1] . D---R . . . . . . . . nop
57 # CHECK-NEXT: [1,0] . D=eeeeER . . . . . . . pop {r3, r4, r5, r6, r7, pc}
58 # CHECK-NEXT: [1,1] . D----R . . . . . . . nop
59 # CHECK-NEXT: [2,0] . .D==eeeeER. . . . . . . pop {r3, r4, r5, r6, r7, pc}
60 # CHECK-NEXT: [2,1] . . DE----R. . . . . . . nop
61 # CHECK-NEXT: [3,0] . . D===eeeeER . . . . . . pop {r3, r4, r5, r6, r7, pc}
62 # CHECK-NEXT: [3,1] . . .D=E----R . . . . . . nop
63 # CHECK-NEXT: [4,0] . . . D====eeeeER . . . . . pop {r3, r4, r5, r6, r7, pc}
64 # CHECK-NEXT: [4,1] . . . D==E----R . . . . . nop
65 # CHECK-NEXT: [5,0] . . . D=====eeeeER . . . . pop {r3, r4, r5, r6, r7, pc}
66 # CHECK-NEXT: [5,1] . . . . D===E----R . . . . nop
67 # CHECK-NEXT: [6,0] . . . . D======eeeeER . . . pop {r3, r4, r5, r6, r7, pc}
68 # CHECK-NEXT: [6,1] . . . . D====E----R . . . nop
69 # CHECK-NEXT: [7,0] . . . . .D=======eeeeER. . . pop {r3, r4, r5, r6, r7, pc}
70 # CHECK-NEXT: [7,1] . . . . . D=====E----R. . . nop
71 # CHECK-NEXT: [8,0] . . . . . D========eeeeER . . pop {r3, r4, r5, r6, r7, pc}
72 # CHECK-NEXT: [8,1] . . . . . .D======E----R . . nop
73 # CHECK-NEXT: [9,0] . . . . . . D=========eeeeER pop {r3, r4, r5, r6, r7, pc}
74 # CHECK-NEXT: [9,1] . . . . . . D=======E----R nop
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. 10 5.5 2.7 0.0 pop {r3, r4, r5, r6, r7, pc}
84 # CHECK-NEXT: 1. 10 3.6 0.0 3.9 nop
85 # CHECK-NEXT: 10 4.6 1.4 2.0 <total>