[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / Generic / resources-bmi1.s
blob87b748414d3548315aa79e82a04742942308390f
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
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 0.33 andnl %eax, %ebx, %ecx
53 # CHECK-NEXT: 2 6 0.50 * andnl (%rax), %ebx, %ecx
54 # CHECK-NEXT: 1 1 0.33 andnq %rax, %rbx, %rcx
55 # CHECK-NEXT: 2 6 0.50 * andnq (%rax), %rbx, %rcx
56 # CHECK-NEXT: 2 2 1.00 bextrl %eax, %ebx, %ecx
57 # CHECK-NEXT: 3 7 1.00 * bextrl %eax, (%rbx), %ecx
58 # CHECK-NEXT: 2 2 1.00 bextrq %rax, %rbx, %rcx
59 # CHECK-NEXT: 3 7 1.00 * bextrq %rax, (%rbx), %rcx
60 # CHECK-NEXT: 1 1 0.33 blsil %eax, %ecx
61 # CHECK-NEXT: 2 6 0.50 * blsil (%rax), %ecx
62 # CHECK-NEXT: 1 1 0.33 blsiq %rax, %rcx
63 # CHECK-NEXT: 2 6 0.50 * blsiq (%rax), %rcx
64 # CHECK-NEXT: 1 1 0.33 blsmskl %eax, %ecx
65 # CHECK-NEXT: 2 6 0.50 * blsmskl (%rax), %ecx
66 # CHECK-NEXT: 1 1 0.33 blsmskq %rax, %rcx
67 # CHECK-NEXT: 2 6 0.50 * blsmskq (%rax), %rcx
68 # CHECK-NEXT: 1 1 0.33 blsrl %eax, %ecx
69 # CHECK-NEXT: 2 6 0.50 * blsrl (%rax), %ecx
70 # CHECK-NEXT: 1 1 0.33 blsrq %rax, %rcx
71 # CHECK-NEXT: 2 6 0.50 * blsrq (%rax), %rcx
72 # CHECK-NEXT: 1 3 1.00 tzcntw %ax, %cx
73 # CHECK-NEXT: 2 8 1.00 * tzcntw (%rax), %cx
74 # CHECK-NEXT: 1 3 1.00 tzcntl %eax, %ecx
75 # CHECK-NEXT: 2 8 1.00 * tzcntl (%rax), %ecx
76 # CHECK-NEXT: 1 3 1.00 tzcntq %rax, %rcx
77 # CHECK-NEXT: 2 8 1.00 * tzcntq (%rax), %rcx
79 # CHECK: Resources:
80 # CHECK-NEXT: [0] - SBDivider
81 # CHECK-NEXT: [1] - SBFPDivider
82 # CHECK-NEXT: [2] - SBPort0
83 # CHECK-NEXT: [3] - SBPort1
84 # CHECK-NEXT: [4] - SBPort4
85 # CHECK-NEXT: [5] - SBPort5
86 # CHECK-NEXT: [6.0] - SBPort23
87 # CHECK-NEXT: [6.1] - SBPort23
89 # CHECK: Resource pressure per iteration:
90 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
91 # CHECK-NEXT: - - 7.33 15.33 - 7.33 6.50 6.50
93 # CHECK: Resource pressure by instruction:
94 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
95 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - andnl %eax, %ebx, %ecx
96 # CHECK-NEXT: - - 0.33 0.33 - 0.33 0.50 0.50 andnl (%rax), %ebx, %ecx
97 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - andnq %rax, %rbx, %rcx
98 # CHECK-NEXT: - - 0.33 0.33 - 0.33 0.50 0.50 andnq (%rax), %rbx, %rcx
99 # CHECK-NEXT: - - 0.50 1.00 - 0.50 - - bextrl %eax, %ebx, %ecx
100 # CHECK-NEXT: - - 0.50 1.00 - 0.50 0.50 0.50 bextrl %eax, (%rbx), %ecx
101 # CHECK-NEXT: - - 0.50 1.00 - 0.50 - - bextrq %rax, %rbx, %rcx
102 # CHECK-NEXT: - - 0.50 1.00 - 0.50 0.50 0.50 bextrq %rax, (%rbx), %rcx
103 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - blsil %eax, %ecx
104 # CHECK-NEXT: - - 0.33 0.33 - 0.33 0.50 0.50 blsil (%rax), %ecx
105 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - blsiq %rax, %rcx
106 # CHECK-NEXT: - - 0.33 0.33 - 0.33 0.50 0.50 blsiq (%rax), %rcx
107 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - blsmskl %eax, %ecx
108 # CHECK-NEXT: - - 0.33 0.33 - 0.33 0.50 0.50 blsmskl (%rax), %ecx
109 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - blsmskq %rax, %rcx
110 # CHECK-NEXT: - - 0.33 0.33 - 0.33 0.50 0.50 blsmskq (%rax), %rcx
111 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - blsrl %eax, %ecx
112 # CHECK-NEXT: - - 0.33 0.33 - 0.33 0.50 0.50 blsrl (%rax), %ecx
113 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - blsrq %rax, %rcx
114 # CHECK-NEXT: - - 0.33 0.33 - 0.33 0.50 0.50 blsrq (%rax), %rcx
115 # CHECK-NEXT: - - - 1.00 - - - - tzcntw %ax, %cx
116 # CHECK-NEXT: - - - 1.00 - - 0.50 0.50 tzcntw (%rax), %cx
117 # CHECK-NEXT: - - - 1.00 - - - - tzcntl %eax, %ecx
118 # CHECK-NEXT: - - - 1.00 - - 0.50 0.50 tzcntl (%rax), %ecx
119 # CHECK-NEXT: - - - 1.00 - - - - tzcntq %rax, %rcx
120 # CHECK-NEXT: - - - 1.00 - - 0.50 0.50 tzcntq (%rax), %rcx