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
5 bzhi
%eax
, (%rbx
), %ecx
8 bzhi
%rax
, (%rbx
), %rcx
11 mulx
(%rax
), %ebx
, %ecx
14 mulx
(%rax
), %rbx
, %rcx
17 pdep
(%rax
), %ebx
, %ecx
20 pdep
(%rax
), %rbx
, %rcx
23 pext
(%rax
), %ebx
, %ecx
26 pext
(%rax
), %rbx
, %rcx
35 sarx
%eax
, (%rbx
), %ecx
38 sarx
%rax
, (%rbx
), %rcx
41 shlx
%eax
, (%rbx
), %ecx
44 shlx
%rax
, (%rbx
), %rcx
47 shrx
%eax
, (%rbx
), %ecx
50 shrx
%rax
, (%rbx
), %rcx
52 # CHECK: Instruction Info:
53 # CHECK-NEXT: [1]: #uOps
54 # CHECK-NEXT: [2]: Latency
55 # CHECK-NEXT: [3]: RThroughput
56 # CHECK-NEXT: [4]: MayLoad
57 # CHECK-NEXT: [5]: MayStore
58 # CHECK-NEXT: [6]: HasSideEffects (U)
60 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
61 # CHECK-NEXT: 1 1 0.25 bzhil %eax, %ebx, %ecx
62 # CHECK-NEXT: 2 5 0.50 * bzhil %eax, (%rbx), %ecx
63 # CHECK-NEXT: 1 1 0.25 bzhiq %rax, %rbx, %rcx
64 # CHECK-NEXT: 2 5 0.50 * bzhiq %rax, (%rbx), %rcx
65 # CHECK-NEXT: 1 3 2.00 mulxl %eax, %ebx, %ecx
66 # CHECK-NEXT: 1 8 2.00 * mulxl (%rax), %ebx, %ecx
67 # CHECK-NEXT: 1 3 1.00 mulxq %rax, %rbx, %rcx
68 # CHECK-NEXT: 1 8 1.00 * mulxq (%rax), %rbx, %rcx
69 # CHECK-NEXT: 1 100 0.25 pdepl %eax, %ebx, %ecx
70 # CHECK-NEXT: 1 100 0.25 * pdepl (%rax), %ebx, %ecx
71 # CHECK-NEXT: 1 100 0.25 pdepq %rax, %rbx, %rcx
72 # CHECK-NEXT: 1 100 0.25 * pdepq (%rax), %rbx, %rcx
73 # CHECK-NEXT: 1 100 0.25 pextl %eax, %ebx, %ecx
74 # CHECK-NEXT: 1 100 0.25 * pextl (%rax), %ebx, %ecx
75 # CHECK-NEXT: 1 100 0.25 pextq %rax, %rbx, %rcx
76 # CHECK-NEXT: 1 100 0.25 * pextq (%rax), %rbx, %rcx
77 # CHECK-NEXT: 1 1 0.25 rorxl $1, %eax, %ecx
78 # CHECK-NEXT: 2 5 0.50 * rorxl $1, (%rax), %ecx
79 # CHECK-NEXT: 1 1 0.25 rorxq $1, %rax, %rcx
80 # CHECK-NEXT: 2 5 0.50 * rorxq $1, (%rax), %rcx
81 # CHECK-NEXT: 1 1 0.25 sarxl %eax, %ebx, %ecx
82 # CHECK-NEXT: 2 5 0.50 * sarxl %eax, (%rbx), %ecx
83 # CHECK-NEXT: 1 1 0.25 sarxq %rax, %rbx, %rcx
84 # CHECK-NEXT: 2 5 0.50 * sarxq %rax, (%rbx), %rcx
85 # CHECK-NEXT: 1 1 0.25 shlxl %eax, %ebx, %ecx
86 # CHECK-NEXT: 2 5 0.50 * shlxl %eax, (%rbx), %ecx
87 # CHECK-NEXT: 1 1 0.25 shlxq %rax, %rbx, %rcx
88 # CHECK-NEXT: 2 5 0.50 * shlxq %rax, (%rbx), %rcx
89 # CHECK-NEXT: 1 1 0.25 shrxl %eax, %ebx, %ecx
90 # CHECK-NEXT: 2 5 0.50 * shrxl %eax, (%rbx), %ecx
91 # CHECK-NEXT: 1 1 0.25 shrxq %rax, %rbx, %rcx
92 # CHECK-NEXT: 2 5 0.50 * shrxq %rax, (%rbx), %rcx
95 # CHECK-NEXT: [0] - ZnAGU0
96 # CHECK-NEXT: [1] - ZnAGU1
97 # CHECK-NEXT: [2] - ZnALU0
98 # CHECK-NEXT: [3] - ZnALU1
99 # CHECK-NEXT: [4] - ZnALU2
100 # CHECK-NEXT: [5] - ZnALU3
101 # CHECK-NEXT: [6] - ZnDivider
102 # CHECK-NEXT: [7] - ZnFPU0
103 # CHECK-NEXT: [8] - ZnFPU1
104 # CHECK-NEXT: [9] - ZnFPU2
105 # CHECK-NEXT: [10] - ZnFPU3
106 # CHECK-NEXT: [11] - ZnMultiplier
108 # CHECK: Resource pressure per iteration:
109 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
110 # CHECK-NEXT: 6.00 6.00 5.00 10.00 5.00 5.00 - - - - - 5.00
112 # CHECK: Resource pressure by instruction:
113 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] Instructions:
114 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - bzhil %eax, %ebx, %ecx
115 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - bzhil %eax, (%rbx), %ecx
116 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - bzhiq %rax, %rbx, %rcx
117 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - bzhiq %rax, (%rbx), %rcx
118 # CHECK-NEXT: - - - 1.00 - - - - - - - 2.00 mulxl %eax, %ebx, %ecx
119 # CHECK-NEXT: 0.50 0.50 - 2.00 - - - - - - - 2.00 mulxl (%rax), %ebx, %ecx
120 # CHECK-NEXT: - - - 1.00 - - - - - - - - mulxq %rax, %rbx, %rcx
121 # CHECK-NEXT: 0.50 0.50 - 1.00 - - - - - - - 1.00 mulxq (%rax), %rbx, %rcx
122 # CHECK-NEXT: - - - - - - - - - - - - pdepl %eax, %ebx, %ecx
123 # CHECK-NEXT: - - - - - - - - - - - - pdepl (%rax), %ebx, %ecx
124 # CHECK-NEXT: - - - - - - - - - - - - pdepq %rax, %rbx, %rcx
125 # CHECK-NEXT: - - - - - - - - - - - - pdepq (%rax), %rbx, %rcx
126 # CHECK-NEXT: - - - - - - - - - - - - pextl %eax, %ebx, %ecx
127 # CHECK-NEXT: - - - - - - - - - - - - pextl (%rax), %ebx, %ecx
128 # CHECK-NEXT: - - - - - - - - - - - - pextq %rax, %rbx, %rcx
129 # CHECK-NEXT: - - - - - - - - - - - - pextq (%rax), %rbx, %rcx
130 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - rorxl $1, %eax, %ecx
131 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - rorxl $1, (%rax), %ecx
132 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - rorxq $1, %rax, %rcx
133 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - rorxq $1, (%rax), %rcx
134 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - sarxl %eax, %ebx, %ecx
135 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - sarxl %eax, (%rbx), %ecx
136 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - sarxq %rax, %rbx, %rcx
137 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - sarxq %rax, (%rbx), %rcx
138 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - shlxl %eax, %ebx, %ecx
139 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - shlxl %eax, (%rbx), %ecx
140 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - shlxq %rax, %rbx, %rcx
141 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - shlxq %rax, (%rbx), %rcx
142 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - shrxl %eax, %ebx, %ecx
143 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - shrxl %eax, (%rbx), %ecx
144 # CHECK-NEXT: - - 0.25 0.25 0.25 0.25 - - - - - - shrxq %rax, %rbx, %rcx
145 # CHECK-NEXT: 0.50 0.50 0.25 0.25 0.25 0.25 - - - - - - shrxq %rax, (%rbx), %rcx