[ARM] Adjust how NEON shifts are lowered
[llvm-core.git] / test / tools / llvm-mca / AArch64 / Exynos / pr38575.s
blob9eb3f961dd6b7c0b659aa5bd58e43927b49e7685
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -march=aarch64 -mcpu=exynos-m3 < %s | FileCheck %s
4 # Check that llvm-mca doesn't crash when analyzing this block of code.
6 # This test is related to PR38575.
7 # The crash was indirectly cause by an incorrectly truncation of a processor
8 # resource mask value (an uint64_t) to int value.
9 # The problem can only be observed on targets that declare more than 32
10 # resources (like exynos-m3).
12 ror x1, x2, x3
14 # CHECK: Iterations: 100
15 # CHECK-NEXT: Instructions: 100
16 # CHECK-NEXT: Total Cycles: 28
17 # CHECK-NEXT: Total uOps: 100
19 # CHECK: Dispatch Width: 6
20 # CHECK-NEXT: uOps Per Cycle: 3.57
21 # CHECK-NEXT: IPC: 3.57
22 # CHECK-NEXT: Block RThroughput: 0.3
24 # CHECK: Instruction Info:
25 # CHECK-NEXT: [1]: #uOps
26 # CHECK-NEXT: [2]: Latency
27 # CHECK-NEXT: [3]: RThroughput
28 # CHECK-NEXT: [4]: MayLoad
29 # CHECK-NEXT: [5]: MayStore
30 # CHECK-NEXT: [6]: HasSideEffects (U)
32 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
33 # CHECK-NEXT: 1 1 0.25 ror x1, x2, x3
35 # CHECK: Resources:
36 # CHECK-NEXT: [0] - M3PipeF0
37 # CHECK-NEXT: [1] - M3PipeF1
38 # CHECK-NEXT: [2] - M3PipeF2
39 # CHECK-NEXT: [3.0] - M3UnitA
40 # CHECK-NEXT: [3.1] - M3UnitA
41 # CHECK-NEXT: [4.0] - M3UnitB
42 # CHECK-NEXT: [4.1] - M3UnitB
43 # CHECK-NEXT: [5.0] - M3UnitC
44 # CHECK-NEXT: [5.1] - M3UnitC
45 # CHECK-NEXT: [6] - M3UnitD
46 # CHECK-NEXT: [7] - M3UnitFADD0
47 # CHECK-NEXT: [8] - M3UnitFADD1
48 # CHECK-NEXT: [9] - M3UnitFADD2
49 # CHECK-NEXT: [10] - M3UnitFCVT0
50 # CHECK-NEXT: [11] - M3UnitFCVT1
51 # CHECK-NEXT: [12.0] - M3UnitFDIV0
52 # CHECK-NEXT: [12.1] - M3UnitFDIV0
53 # CHECK-NEXT: [13.0] - M3UnitFDIV1
54 # CHECK-NEXT: [13.1] - M3UnitFDIV1
55 # CHECK-NEXT: [14] - M3UnitFMAC0
56 # CHECK-NEXT: [15] - M3UnitFMAC1
57 # CHECK-NEXT: [16] - M3UnitFMAC2
58 # CHECK-NEXT: [17.0] - M3UnitFSQR
59 # CHECK-NEXT: [17.1] - M3UnitFSQR
60 # CHECK-NEXT: [18] - M3UnitFST0
61 # CHECK-NEXT: [19] - M3UnitFST1
62 # CHECK-NEXT: [20.0] - M3UnitL
63 # CHECK-NEXT: [20.1] - M3UnitL
64 # CHECK-NEXT: [21] - M3UnitNALU0
65 # CHECK-NEXT: [22] - M3UnitNALU1
66 # CHECK-NEXT: [23] - M3UnitNALU2
67 # CHECK-NEXT: [24] - M3UnitNCRY0
68 # CHECK-NEXT: [25] - M3UnitNCRY1
69 # CHECK-NEXT: [26] - M3UnitNMSC
70 # CHECK-NEXT: [27] - M3UnitNMUL
71 # CHECK-NEXT: [28] - M3UnitNSHF0
72 # CHECK-NEXT: [29] - M3UnitNSHF1
73 # CHECK-NEXT: [30] - M3UnitNSHF2
74 # CHECK-NEXT: [31] - M3UnitNSHT0
75 # CHECK-NEXT: [32] - M3UnitNSHT1
76 # CHECK-NEXT: [33] - M3UnitNSHT2
77 # CHECK-NEXT: [34] - M3UnitS
79 # CHECK: Resource pressure per iteration:
80 # CHECK-NEXT: [0] [1] [2] [3.0] [3.1] [4.0] [4.1] [5.0] [5.1] [6] [7] [8] [9] [10] [11] [12.0] [12.1] [13.0] [13.1] [14] [15] [16] [17.0] [17.1] [18] [19] [20.0] [20.1] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34]
81 # CHECK-NEXT: - - - 0.25 0.25 - - 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
83 # CHECK: Resource pressure by instruction:
84 # CHECK-NEXT: [0] [1] [2] [3.0] [3.1] [4.0] [4.1] [5.0] [5.1] [6] [7] [8] [9] [10] [11] [12.0] [12.1] [13.0] [13.1] [14] [15] [16] [17.0] [17.1] [18] [19] [20.0] [20.1] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] Instructions:
85 # CHECK-NEXT: - - - 0.25 0.25 - - 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ror x1, x2, x3