1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -instruction-tables < %s | FileCheck %s
5 andn
(%rax
), %ebx
, %ecx
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
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 0.50 andnl %eax, %ebx, %ecx
53 # CHECK-NEXT: 1 4 1.00 * andnl (%rax), %ebx, %ecx
54 # CHECK-NEXT: 1 1 0.50 andnq %rax, %rbx, %rcx
55 # CHECK-NEXT: 1 4 1.00 * andnq (%rax), %rbx, %rcx
56 # CHECK-NEXT: 1 1 0.50 bextrl %eax, %ebx, %ecx
57 # CHECK-NEXT: 1 4 1.00 * bextrl %eax, (%rbx), %ecx
58 # CHECK-NEXT: 1 1 0.50 bextrq %rax, %rbx, %rcx
59 # CHECK-NEXT: 1 4 1.00 * bextrq %rax, (%rbx), %rcx
60 # CHECK-NEXT: 2 2 1.00 blsil %eax, %ecx
61 # CHECK-NEXT: 2 5 1.00 * blsil (%rax), %ecx
62 # CHECK-NEXT: 2 2 1.00 blsiq %rax, %rcx
63 # CHECK-NEXT: 2 5 1.00 * blsiq (%rax), %rcx
64 # CHECK-NEXT: 2 2 1.00 blsmskl %eax, %ecx
65 # CHECK-NEXT: 2 5 1.00 * blsmskl (%rax), %ecx
66 # CHECK-NEXT: 2 2 1.00 blsmskq %rax, %rcx
67 # CHECK-NEXT: 2 5 1.00 * blsmskq (%rax), %rcx
68 # CHECK-NEXT: 2 2 1.00 blsrl %eax, %ecx
69 # CHECK-NEXT: 2 5 1.00 * blsrl (%rax), %ecx
70 # CHECK-NEXT: 2 2 1.00 blsrq %rax, %rcx
71 # CHECK-NEXT: 2 5 1.00 * blsrq (%rax), %rcx
72 # CHECK-NEXT: 2 2 1.00 tzcntw %ax, %cx
73 # CHECK-NEXT: 2 5 1.00 * tzcntw (%rax), %cx
74 # CHECK-NEXT: 2 2 1.00 tzcntl %eax, %ecx
75 # CHECK-NEXT: 2 5 1.00 * tzcntl (%rax), %ecx
76 # CHECK-NEXT: 2 2 1.00 tzcntq %rax, %rcx
77 # CHECK-NEXT: 2 5 1.00 * tzcntq (%rax), %rcx
80 # CHECK-NEXT: [0] - JALU0
81 # CHECK-NEXT: [1] - JALU1
82 # CHECK-NEXT: [2] - JDiv
83 # CHECK-NEXT: [3] - JFPA
84 # CHECK-NEXT: [4] - JFPM
85 # CHECK-NEXT: [5] - JFPU0
86 # CHECK-NEXT: [6] - JFPU1
87 # CHECK-NEXT: [7] - JLAGU
88 # CHECK-NEXT: [8] - JMul
89 # CHECK-NEXT: [9] - JSAGU
90 # CHECK-NEXT: [10] - JSTC
91 # CHECK-NEXT: [11] - JVALU0
92 # CHECK-NEXT: [12] - JVALU1
93 # CHECK-NEXT: [13] - JVIMUL
95 # CHECK: Resource pressure per iteration:
96 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
97 # CHECK-NEXT: 22.00 22.00 - - - - - 13.00 - - - - - -
99 # CHECK: Resource pressure by instruction:
100 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
101 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - andnl %eax, %ebx, %ecx
102 # CHECK-NEXT: 0.50 0.50 - - - - - 1.00 - - - - - - andnl (%rax), %ebx, %ecx
103 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - andnq %rax, %rbx, %rcx
104 # CHECK-NEXT: 0.50 0.50 - - - - - 1.00 - - - - - - andnq (%rax), %rbx, %rcx
105 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - bextrl %eax, %ebx, %ecx
106 # CHECK-NEXT: 0.50 0.50 - - - - - 1.00 - - - - - - bextrl %eax, (%rbx), %ecx
107 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - bextrq %rax, %rbx, %rcx
108 # CHECK-NEXT: 0.50 0.50 - - - - - 1.00 - - - - - - bextrq %rax, (%rbx), %rcx
109 # CHECK-NEXT: 1.00 1.00 - - - - - - - - - - - - blsil %eax, %ecx
110 # CHECK-NEXT: 1.00 1.00 - - - - - 1.00 - - - - - - blsil (%rax), %ecx
111 # CHECK-NEXT: 1.00 1.00 - - - - - - - - - - - - blsiq %rax, %rcx
112 # CHECK-NEXT: 1.00 1.00 - - - - - 1.00 - - - - - - blsiq (%rax), %rcx
113 # CHECK-NEXT: 1.00 1.00 - - - - - - - - - - - - blsmskl %eax, %ecx
114 # CHECK-NEXT: 1.00 1.00 - - - - - 1.00 - - - - - - blsmskl (%rax), %ecx
115 # CHECK-NEXT: 1.00 1.00 - - - - - - - - - - - - blsmskq %rax, %rcx
116 # CHECK-NEXT: 1.00 1.00 - - - - - 1.00 - - - - - - blsmskq (%rax), %rcx
117 # CHECK-NEXT: 1.00 1.00 - - - - - - - - - - - - blsrl %eax, %ecx
118 # CHECK-NEXT: 1.00 1.00 - - - - - 1.00 - - - - - - blsrl (%rax), %ecx
119 # CHECK-NEXT: 1.00 1.00 - - - - - - - - - - - - blsrq %rax, %rcx
120 # CHECK-NEXT: 1.00 1.00 - - - - - 1.00 - - - - - - blsrq (%rax), %rcx
121 # CHECK-NEXT: 1.00 1.00 - - - - - - - - - - - - tzcntw %ax, %cx
122 # CHECK-NEXT: 1.00 1.00 - - - - - 1.00 - - - - - - tzcntw (%rax), %cx
123 # CHECK-NEXT: 1.00 1.00 - - - - - - - - - - - - tzcntl %eax, %ecx
124 # CHECK-NEXT: 1.00 1.00 - - - - - 1.00 - - - - - - tzcntl (%rax), %ecx
125 # CHECK-NEXT: 1.00 1.00 - - - - - - - - - - - - tzcntq %rax, %rcx
126 # CHECK-NEXT: 1.00 1.00 - - - - - 1.00 - - - - - - tzcntq (%rax), %rcx