Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / BdVer2 / resources-bmi1.s
blobb91371ce6a9f8a7475bb3e164e0d8164f19c5a62
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -instruction-tables < %s | FileCheck %s
4 andn %eax, %ebx, %ecx
5 andn (%rax), %ebx, %ecx
7 andn %rax, %rbx, %rcx
8 andn (%rax), %rbx, %rcx
10 bextr %eax, %ebx, %ecx
11 bextr %eax, (%rbx), %ecx
13 bextr %rax, %rbx, %rcx
14 bextr %rax, (%rbx), %rcx
16 blsi %eax, %ecx
17 blsi (%rax), %ecx
19 blsi %rax, %rcx
20 blsi (%rax), %rcx
22 blsmsk %eax, %ecx
23 blsmsk (%rax), %ecx
25 blsmsk %rax, %rcx
26 blsmsk (%rax), %rcx
28 blsr %eax, %ecx
29 blsr (%rax), %ecx
31 blsr %rax, %rcx
32 blsr (%rax), %rcx
34 tzcnt %ax, %cx
35 tzcnt (%rax), %cx
37 tzcnt %eax, %ecx
38 tzcnt (%rax), %ecx
40 tzcnt %rax, %rcx
41 tzcnt (%rax), %rcx
43 # CHECK: Instruction Info:
44 # CHECK-NEXT: [1]: #uOps
45 # CHECK-NEXT: [2]: Latency
46 # CHECK-NEXT: [3]: RThroughput
47 # CHECK-NEXT: [4]: MayLoad
48 # CHECK-NEXT: [5]: MayStore
49 # CHECK-NEXT: [6]: HasSideEffects (U)
51 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
52 # CHECK-NEXT: 1 1 1.00 andnl %eax, %ebx, %ecx
53 # CHECK-NEXT: 1 5 1.50 * andnl (%rax), %ebx, %ecx
54 # CHECK-NEXT: 1 1 1.00 andnq %rax, %rbx, %rcx
55 # CHECK-NEXT: 1 5 1.50 * andnq (%rax), %rbx, %rcx
56 # CHECK-NEXT: 2 2 1.00 bextrl %eax, %ebx, %ecx
57 # CHECK-NEXT: 2 6 1.50 * bextrl %eax, (%rbx), %ecx
58 # CHECK-NEXT: 2 2 1.00 bextrq %rax, %rbx, %rcx
59 # CHECK-NEXT: 2 6 1.50 * bextrq %rax, (%rbx), %rcx
60 # CHECK-NEXT: 2 2 1.00 blsil %eax, %ecx
61 # CHECK-NEXT: 2 6 1.50 * blsil (%rax), %ecx
62 # CHECK-NEXT: 2 2 1.00 blsiq %rax, %rcx
63 # CHECK-NEXT: 2 6 1.50 * blsiq (%rax), %rcx
64 # CHECK-NEXT: 2 2 1.00 blsmskl %eax, %ecx
65 # CHECK-NEXT: 2 6 1.50 * blsmskl (%rax), %ecx
66 # CHECK-NEXT: 2 2 1.00 blsmskq %rax, %rcx
67 # CHECK-NEXT: 2 6 1.50 * blsmskq (%rax), %rcx
68 # CHECK-NEXT: 2 2 1.00 blsrl %eax, %ecx
69 # CHECK-NEXT: 2 6 1.50 * blsrl (%rax), %ecx
70 # CHECK-NEXT: 2 2 1.00 blsrq %rax, %rcx
71 # CHECK-NEXT: 2 6 1.50 * blsrq (%rax), %rcx
72 # CHECK-NEXT: 2 2 2.00 tzcntw %ax, %cx
73 # CHECK-NEXT: 2 6 2.00 * tzcntw (%rax), %cx
74 # CHECK-NEXT: 2 2 2.00 tzcntl %eax, %ecx
75 # CHECK-NEXT: 2 6 2.00 * tzcntl (%rax), %ecx
76 # CHECK-NEXT: 2 2 2.00 tzcntq %rax, %rcx
77 # CHECK-NEXT: 2 6 2.00 * tzcntq (%rax), %rcx
79 # CHECK: Resources:
80 # CHECK-NEXT: [0.0] - PdAGLU01
81 # CHECK-NEXT: [0.1] - PdAGLU01
82 # CHECK-NEXT: [1] - PdBranch
83 # CHECK-NEXT: [2] - PdCount
84 # CHECK-NEXT: [3] - PdDiv
85 # CHECK-NEXT: [4] - PdEX0
86 # CHECK-NEXT: [5] - PdEX1
87 # CHECK-NEXT: [6] - PdFPCVT
88 # CHECK-NEXT: [7.0] - PdFPFMA
89 # CHECK-NEXT: [7.1] - PdFPFMA
90 # CHECK-NEXT: [8.0] - PdFPMAL
91 # CHECK-NEXT: [8.1] - PdFPMAL
92 # CHECK-NEXT: [9] - PdFPMMA
93 # CHECK-NEXT: [10] - PdFPSTO
94 # CHECK-NEXT: [11] - PdFPU0
95 # CHECK-NEXT: [12] - PdFPU1
96 # CHECK-NEXT: [13] - PdFPU2
97 # CHECK-NEXT: [14] - PdFPU3
98 # CHECK-NEXT: [15] - PdFPXBR
99 # CHECK-NEXT: [16.0] - PdLoad
100 # CHECK-NEXT: [16.1] - PdLoad
101 # CHECK-NEXT: [17] - PdMul
102 # CHECK-NEXT: [18] - PdStore
104 # CHECK: Resource pressure per iteration:
105 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18]
106 # CHECK-NEXT: 19.50 19.50 - - - 32.00 20.00 - - - - - - - - - - - - 19.50 19.50 - -
108 # CHECK: Resource pressure by instruction:
109 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18] Instructions:
110 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - andnl %eax, %ebx, %ecx
111 # CHECK-NEXT: 1.50 1.50 - - - 1.00 1.00 - - - - - - - - - - - - 1.50 1.50 - - andnl (%rax), %ebx, %ecx
112 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - andnq %rax, %rbx, %rcx
113 # CHECK-NEXT: 1.50 1.50 - - - 1.00 1.00 - - - - - - - - - - - - 1.50 1.50 - - andnq (%rax), %rbx, %rcx
114 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - bextrl %eax, %ebx, %ecx
115 # CHECK-NEXT: 1.50 1.50 - - - 1.00 1.00 - - - - - - - - - - - - 1.50 1.50 - - bextrl %eax, (%rbx), %ecx
116 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - bextrq %rax, %rbx, %rcx
117 # CHECK-NEXT: 1.50 1.50 - - - 1.00 1.00 - - - - - - - - - - - - 1.50 1.50 - - bextrq %rax, (%rbx), %rcx
118 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - blsil %eax, %ecx
119 # CHECK-NEXT: 1.50 1.50 - - - 1.00 1.00 - - - - - - - - - - - - 1.50 1.50 - - blsil (%rax), %ecx
120 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - blsiq %rax, %rcx
121 # CHECK-NEXT: 1.50 1.50 - - - 1.00 1.00 - - - - - - - - - - - - 1.50 1.50 - - blsiq (%rax), %rcx
122 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - blsmskl %eax, %ecx
123 # CHECK-NEXT: 1.50 1.50 - - - 1.00 1.00 - - - - - - - - - - - - 1.50 1.50 - - blsmskl (%rax), %ecx
124 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - blsmskq %rax, %rcx
125 # CHECK-NEXT: 1.50 1.50 - - - 1.00 1.00 - - - - - - - - - - - - 1.50 1.50 - - blsmskq (%rax), %rcx
126 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - blsrl %eax, %ecx
127 # CHECK-NEXT: 1.50 1.50 - - - 1.00 1.00 - - - - - - - - - - - - 1.50 1.50 - - blsrl (%rax), %ecx
128 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - blsrq %rax, %rcx
129 # CHECK-NEXT: 1.50 1.50 - - - 1.00 1.00 - - - - - - - - - - - - 1.50 1.50 - - blsrq (%rax), %rcx
130 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - tzcntw %ax, %cx
131 # CHECK-NEXT: 1.50 1.50 - - - 2.00 - - - - - - - - - - - - - 1.50 1.50 - - tzcntw (%rax), %cx
132 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - tzcntl %eax, %ecx
133 # CHECK-NEXT: 1.50 1.50 - - - 2.00 - - - - - - - - - - - - - 1.50 1.50 - - tzcntl (%rax), %ecx
134 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - tzcntq %rax, %rcx
135 # CHECK-NEXT: 1.50 1.50 - - - 2.00 - - - - - - - - - - - - - 1.50 1.50 - - tzcntq (%rax), %rcx