[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / llvm-mca / X86 / Znver1 / resources-sha.s
blob57839d03348152929e716c5f6f1a792a10b3deab
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -instruction-tables < %s | FileCheck %s
4 sha1msg1 %xmm0, %xmm2
5 sha1msg1 (%rax), %xmm2
7 sha1msg2 %xmm0, %xmm2
8 sha1msg2 (%rax), %xmm2
10 sha1nexte %xmm0, %xmm2
11 sha1nexte (%rax), %xmm2
13 sha1rnds4 $3, %xmm0, %xmm2
14 sha1rnds4 $3, (%rax), %xmm2
16 sha256msg1 %xmm0, %xmm2
17 sha256msg1 (%rax), %xmm2
19 sha256msg2 %xmm0, %xmm2
20 sha256msg2 (%rax), %xmm2
22 sha256rnds2 %xmm0, %xmm2
23 sha256rnds2 (%rax), %xmm2
25 # CHECK: Instruction Info:
26 # CHECK-NEXT: [1]: #uOps
27 # CHECK-NEXT: [2]: Latency
28 # CHECK-NEXT: [3]: RThroughput
29 # CHECK-NEXT: [4]: MayLoad
30 # CHECK-NEXT: [5]: MayStore
31 # CHECK-NEXT: [6]: HasSideEffects (U)
33 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
34 # CHECK-NEXT: 1 2 1.00 sha1msg1 %xmm0, %xmm2
35 # CHECK-NEXT: 1 9 1.00 * sha1msg1 (%rax), %xmm2
36 # CHECK-NEXT: 1 1 0.50 sha1msg2 %xmm0, %xmm2
37 # CHECK-NEXT: 1 8 0.50 * sha1msg2 (%rax), %xmm2
38 # CHECK-NEXT: 1 1 1.00 sha1nexte %xmm0, %xmm2
39 # CHECK-NEXT: 1 8 1.00 * sha1nexte (%rax), %xmm2
40 # CHECK-NEXT: 1 6 1.00 sha1rnds4 $3, %xmm0, %xmm2
41 # CHECK-NEXT: 1 13 1.00 * sha1rnds4 $3, (%rax), %xmm2
42 # CHECK-NEXT: 1 2 1.00 sha256msg1 %xmm0, %xmm2
43 # CHECK-NEXT: 1 9 1.00 * sha256msg1 (%rax), %xmm2
44 # CHECK-NEXT: 1 100 0.25 sha256msg2 %xmm0, %xmm2
45 # CHECK-NEXT: 1 100 0.25 * sha256msg2 (%rax), %xmm2
46 # CHECK-NEXT: 1 4 1.00 sha256rnds2 %xmm0, %xmm0, %xmm2
47 # CHECK-NEXT: 1 11 1.00 * sha256rnds2 %xmm0, (%rax), %xmm2
49 # CHECK: Resources:
50 # CHECK-NEXT: [0] - ZnAGU0
51 # CHECK-NEXT: [1] - ZnAGU1
52 # CHECK-NEXT: [2] - ZnALU0
53 # CHECK-NEXT: [3] - ZnALU1
54 # CHECK-NEXT: [4] - ZnALU2
55 # CHECK-NEXT: [5] - ZnALU3
56 # CHECK-NEXT: [6] - ZnDivider
57 # CHECK-NEXT: [7] - ZnFPU0
58 # CHECK-NEXT: [8] - ZnFPU1
59 # CHECK-NEXT: [9] - ZnFPU2
60 # CHECK-NEXT: [10] - ZnFPU3
61 # CHECK-NEXT: [11] - ZnMultiplier
63 # CHECK: Resource pressure per iteration:
64 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
65 # CHECK-NEXT: 3.00 3.00 - - - - - - 11.00 5.00 - -
67 # CHECK: Resource pressure by instruction:
68 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] Instructions:
69 # CHECK-NEXT: - - - - - - - - 1.00 1.00 - - sha1msg1 %xmm0, %xmm2
70 # CHECK-NEXT: 0.50 0.50 - - - - - - 1.00 1.00 - - sha1msg1 (%rax), %xmm2
71 # CHECK-NEXT: - - - - - - - - 0.50 0.50 - - sha1msg2 %xmm0, %xmm2
72 # CHECK-NEXT: 0.50 0.50 - - - - - - 0.50 0.50 - - sha1msg2 (%rax), %xmm2
73 # CHECK-NEXT: - - - - - - - - 1.00 - - - sha1nexte %xmm0, %xmm2
74 # CHECK-NEXT: 0.50 0.50 - - - - - - 1.00 - - - sha1nexte (%rax), %xmm2
75 # CHECK-NEXT: - - - - - - - - 1.00 - - - sha1rnds4 $3, %xmm0, %xmm2
76 # CHECK-NEXT: 0.50 0.50 - - - - - - 1.00 - - - sha1rnds4 $3, (%rax), %xmm2
77 # CHECK-NEXT: - - - - - - - - 1.00 1.00 - - sha256msg1 %xmm0, %xmm2
78 # CHECK-NEXT: 0.50 0.50 - - - - - - 1.00 1.00 - - sha256msg1 (%rax), %xmm2
79 # CHECK-NEXT: - - - - - - - - - - - - sha256msg2 %xmm0, %xmm2
80 # CHECK-NEXT: - - - - - - - - - - - - sha256msg2 (%rax), %xmm2
81 # CHECK-NEXT: - - - - - - - - 1.00 - - - sha256rnds2 %xmm0, %xmm0, %xmm2
82 # CHECK-NEXT: 0.50 0.50 - - - - - - 1.00 - - - sha256rnds2 %xmm0, (%rax), %xmm2