[ARM] Adjust how NEON shifts are lowered
[llvm-core.git] / test / tools / llvm-mca / X86 / Generic / resources-sse42.s
blob935c5e3d7f3e6cf42ebd55962528a4f4b377ca34
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 crc32b %al, %ecx
5 crc32b (%rax), %ecx
7 crc32l %eax, %ecx
8 crc32l (%rax), %ecx
10 crc32w %ax, %ecx
11 crc32w (%rax), %ecx
13 crc32b %al, %rcx
14 crc32b (%rax), %rcx
16 crc32q %rax, %rcx
17 crc32q (%rax), %rcx
19 pcmpestri $1, %xmm0, %xmm2
20 pcmpestri $1, (%rax), %xmm2
22 pcmpestrm $1, %xmm0, %xmm2
23 pcmpestrm $1, (%rax), %xmm2
25 pcmpistri $1, %xmm0, %xmm2
26 pcmpistri $1, (%rax), %xmm2
28 pcmpistrm $1, %xmm0, %xmm2
29 pcmpistrm $1, (%rax), %xmm2
31 pcmpgtq %xmm0, %xmm2
32 pcmpgtq (%rax), %xmm2
34 # CHECK: Instruction Info:
35 # CHECK-NEXT: [1]: #uOps
36 # CHECK-NEXT: [2]: Latency
37 # CHECK-NEXT: [3]: RThroughput
38 # CHECK-NEXT: [4]: MayLoad
39 # CHECK-NEXT: [5]: MayStore
40 # CHECK-NEXT: [6]: HasSideEffects (U)
42 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
43 # CHECK-NEXT: 1 3 1.00 crc32b %al, %ecx
44 # CHECK-NEXT: 2 8 1.00 * crc32b (%rax), %ecx
45 # CHECK-NEXT: 1 3 1.00 crc32l %eax, %ecx
46 # CHECK-NEXT: 2 8 1.00 * crc32l (%rax), %ecx
47 # CHECK-NEXT: 1 3 1.00 crc32w %ax, %ecx
48 # CHECK-NEXT: 2 8 1.00 * crc32w (%rax), %ecx
49 # CHECK-NEXT: 1 3 1.00 crc32b %al, %rcx
50 # CHECK-NEXT: 2 8 1.00 * crc32b (%rax), %rcx
51 # CHECK-NEXT: 1 3 1.00 crc32q %rax, %rcx
52 # CHECK-NEXT: 2 8 1.00 * crc32q (%rax), %rcx
53 # CHECK-NEXT: 1 4 2.67 pcmpestri $1, %xmm0, %xmm2
54 # CHECK-NEXT: 1 4 2.33 * pcmpestri $1, (%rax), %xmm2
55 # CHECK-NEXT: 1 11 2.67 pcmpestrm $1, %xmm0, %xmm2
56 # CHECK-NEXT: 1 11 2.33 * pcmpestrm $1, (%rax), %xmm2
57 # CHECK-NEXT: 3 11 3.00 pcmpistri $1, %xmm0, %xmm2
58 # CHECK-NEXT: 4 17 3.00 * pcmpistri $1, (%rax), %xmm2
59 # CHECK-NEXT: 3 11 3.00 pcmpistrm $1, %xmm0, %xmm2
60 # CHECK-NEXT: 4 17 3.00 * pcmpistrm $1, (%rax), %xmm2
61 # CHECK-NEXT: 1 5 1.00 pcmpgtq %xmm0, %xmm2
62 # CHECK-NEXT: 2 11 1.00 * pcmpgtq (%rax), %xmm2
64 # CHECK: Resources:
65 # CHECK-NEXT: [0] - SBDivider
66 # CHECK-NEXT: [1] - SBFPDivider
67 # CHECK-NEXT: [2] - SBPort0
68 # CHECK-NEXT: [3] - SBPort1
69 # CHECK-NEXT: [4] - SBPort4
70 # CHECK-NEXT: [5] - SBPort5
71 # CHECK-NEXT: [6.0] - SBPort23
72 # CHECK-NEXT: [6.1] - SBPort23
74 # CHECK: Resource pressure per iteration:
75 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
76 # CHECK-NEXT: - - 24.00 20.00 - 10.00 5.00 5.00
78 # CHECK: Resource pressure by instruction:
79 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
80 # CHECK-NEXT: - - - 1.00 - - - - crc32b %al, %ecx
81 # CHECK-NEXT: - - - 1.00 - - 0.50 0.50 crc32b (%rax), %ecx
82 # CHECK-NEXT: - - - 1.00 - - - - crc32l %eax, %ecx
83 # CHECK-NEXT: - - - 1.00 - - 0.50 0.50 crc32l (%rax), %ecx
84 # CHECK-NEXT: - - - 1.00 - - - - crc32w %ax, %ecx
85 # CHECK-NEXT: - - - 1.00 - - 0.50 0.50 crc32w (%rax), %ecx
86 # CHECK-NEXT: - - - 1.00 - - - - crc32b %al, %rcx
87 # CHECK-NEXT: - - - 1.00 - - 0.50 0.50 crc32b (%rax), %rcx
88 # CHECK-NEXT: - - - 1.00 - - - - crc32q %rax, %rcx
89 # CHECK-NEXT: - - - 1.00 - - 0.50 0.50 crc32q (%rax), %rcx
90 # CHECK-NEXT: - - 2.67 2.67 - 2.67 - - pcmpestri $1, %xmm0, %xmm2
91 # CHECK-NEXT: - - 2.33 2.33 - 2.33 0.50 0.50 pcmpestri $1, (%rax), %xmm2
92 # CHECK-NEXT: - - 2.67 2.67 - 2.67 - - pcmpestrm $1, %xmm0, %xmm2
93 # CHECK-NEXT: - - 2.33 2.33 - 2.33 0.50 0.50 pcmpestrm $1, (%rax), %xmm2
94 # CHECK-NEXT: - - 3.00 - - - - - pcmpistri $1, %xmm0, %xmm2
95 # CHECK-NEXT: - - 3.00 - - - 0.50 0.50 pcmpistri $1, (%rax), %xmm2
96 # CHECK-NEXT: - - 3.00 - - - - - pcmpistrm $1, %xmm0, %xmm2
97 # CHECK-NEXT: - - 3.00 - - - 0.50 0.50 pcmpistrm $1, (%rax), %xmm2
98 # CHECK-NEXT: - - 1.00 - - - - - pcmpgtq %xmm0, %xmm2
99 # CHECK-NEXT: - - 1.00 - - - 0.50 0.50 pcmpgtq (%rax), %xmm2