1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -instruction-tables < %s | FileCheck %s
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 5 1.00 sha1msg1 %xmm0, %xmm2
35 # CHECK-NEXT: 2 11 1.00 * sha1msg1 (%rax), %xmm2
36 # CHECK-NEXT: 1 5 1.00 sha1msg2 %xmm0, %xmm2
37 # CHECK-NEXT: 2 11 1.00 * sha1msg2 (%rax), %xmm2
38 # CHECK-NEXT: 1 5 1.00 sha1nexte %xmm0, %xmm2
39 # CHECK-NEXT: 2 11 1.00 * sha1nexte (%rax), %xmm2
40 # CHECK-NEXT: 1 5 1.00 sha1rnds4 $3, %xmm0, %xmm2
41 # CHECK-NEXT: 2 11 1.00 * sha1rnds4 $3, (%rax), %xmm2
42 # CHECK-NEXT: 1 5 1.00 sha256msg1 %xmm0, %xmm2
43 # CHECK-NEXT: 2 11 1.00 * sha256msg1 (%rax), %xmm2
44 # CHECK-NEXT: 1 5 1.00 sha256msg2 %xmm0, %xmm2
45 # CHECK-NEXT: 2 11 1.00 * sha256msg2 (%rax), %xmm2
46 # CHECK-NEXT: 1 5 1.00 sha256rnds2 %xmm0, %xmm0, %xmm2
47 # CHECK-NEXT: 2 11 1.00 * sha256rnds2 %xmm0, (%rax), %xmm2
50 # CHECK-NEXT: [0] - SBDivider
51 # CHECK-NEXT: [1] - SBFPDivider
52 # CHECK-NEXT: [2] - SBPort0
53 # CHECK-NEXT: [3] - SBPort1
54 # CHECK-NEXT: [4] - SBPort4
55 # CHECK-NEXT: [5] - SBPort5
56 # CHECK-NEXT: [6.0] - SBPort23
57 # CHECK-NEXT: [6.1] - SBPort23
59 # CHECK: Resource pressure per iteration:
60 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
61 # CHECK-NEXT: - - 14.00 - - - 3.50 3.50
63 # CHECK: Resource pressure by instruction:
64 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
65 # CHECK-NEXT: - - 1.00 - - - - - sha1msg1 %xmm0, %xmm2
66 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 sha1msg1 (%rax), %xmm2
67 # CHECK-NEXT: - - 1.00 - - - - - sha1msg2 %xmm0, %xmm2
68 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 sha1msg2 (%rax), %xmm2
69 # CHECK-NEXT: - - 1.00 - - - - - sha1nexte %xmm0, %xmm2
70 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 sha1nexte (%rax), %xmm2
71 # CHECK-NEXT: - - 1.00 - - - - - sha1rnds4 $3, %xmm0, %xmm2
72 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 sha1rnds4 $3, (%rax), %xmm2
73 # CHECK-NEXT: - - 1.00 - - - - - sha256msg1 %xmm0, %xmm2
74 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 sha256msg1 (%rax), %xmm2
75 # CHECK-NEXT: - - 1.00 - - - - - sha256msg2 %xmm0, %xmm2
76 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 sha256msg2 (%rax), %xmm2
77 # CHECK-NEXT: - - 1.00 - - - - - sha256rnds2 %xmm0, %xmm0, %xmm2
78 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 sha256rnds2 %xmm0, (%rax), %xmm2