• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=slm -instruction-tables < %s | FileCheck %s
3
4crc32b      %al, %ecx
5crc32b      (%rax), %ecx
6
7crc32l      %eax, %ecx
8crc32l      (%rax), %ecx
9
10crc32w      %ax, %ecx
11crc32w      (%rax), %ecx
12
13crc32b      %al, %rcx
14crc32b      (%rax), %rcx
15
16crc32q      %rax, %rcx
17crc32q      (%rax), %rcx
18
19pcmpestri   $1, %xmm0, %xmm2
20pcmpestri   $1, (%rax), %xmm2
21
22pcmpestrm   $1, %xmm0, %xmm2
23pcmpestrm   $1, (%rax), %xmm2
24
25pcmpistri   $1, %xmm0, %xmm2
26pcmpistri   $1, (%rax), %xmm2
27
28pcmpistrm   $1, %xmm0, %xmm2
29pcmpistrm   $1, (%rax), %xmm2
30
31pcmpgtq     %xmm0, %xmm2
32pcmpgtq     (%rax), %xmm2
33
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)
41
42# CHECK:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
43# CHECK-NEXT:  1      3     1.00                        crc32b	%al, %ecx
44# CHECK-NEXT:  1      6     1.00    *                   crc32b	(%rax), %ecx
45# CHECK-NEXT:  1      3     1.00                        crc32l	%eax, %ecx
46# CHECK-NEXT:  1      6     1.00    *                   crc32l	(%rax), %ecx
47# CHECK-NEXT:  1      3     1.00                        crc32w	%ax, %ecx
48# CHECK-NEXT:  1      6     1.00    *                   crc32w	(%rax), %ecx
49# CHECK-NEXT:  1      3     1.00                        crc32b	%al, %rcx
50# CHECK-NEXT:  1      6     1.00    *                   crc32b	(%rax), %rcx
51# CHECK-NEXT:  1      3     1.00                        crc32q	%rax, %rcx
52# CHECK-NEXT:  1      6     1.00    *                   crc32q	(%rax), %rcx
53# CHECK-NEXT:  1      21    21.00                       pcmpestri	$1, %xmm0, %xmm2
54# CHECK-NEXT:  1      24    21.00   *                   pcmpestri	$1, (%rax), %xmm2
55# CHECK-NEXT:  1      17    17.00                       pcmpestrm	$1, %xmm0, %xmm2
56# CHECK-NEXT:  1      20    17.00   *                   pcmpestrm	$1, (%rax), %xmm2
57# CHECK-NEXT:  1      17    17.00                       pcmpistri	$1, %xmm0, %xmm2
58# CHECK-NEXT:  1      20    17.00   *                   pcmpistri	$1, (%rax), %xmm2
59# CHECK-NEXT:  1      13    13.00                       pcmpistrm	$1, %xmm0, %xmm2
60# CHECK-NEXT:  1      16    13.00   *                   pcmpistrm	$1, (%rax), %xmm2
61# CHECK-NEXT:  1      1     0.50                        pcmpgtq	%xmm0, %xmm2
62# CHECK-NEXT:  1      4     1.00    *                   pcmpgtq	(%rax), %xmm2
63
64# CHECK:      Resources:
65# CHECK-NEXT: [0]   - SLMDivider
66# CHECK-NEXT: [1]   - SLMFPDivider
67# CHECK-NEXT: [2]   - SLMFPMultiplier
68# CHECK-NEXT: [3]   - SLM_FPC_RSV0
69# CHECK-NEXT: [4]   - SLM_FPC_RSV1
70# CHECK-NEXT: [5]   - SLM_IEC_RSV0
71# CHECK-NEXT: [6]   - SLM_IEC_RSV1
72# CHECK-NEXT: [7]   - SLM_MEC_RSV
73
74# CHECK:      Resource pressure per iteration:
75# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]
76# CHECK-NEXT:  -      -      -     137.00 1.00    -     10.00  10.00
77
78# CHECK:      Resource pressure by instruction:
79# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]    Instructions:
80# CHECK-NEXT:  -      -      -      -      -      -     1.00    -     crc32b	%al, %ecx
81# CHECK-NEXT:  -      -      -      -      -      -     1.00   1.00   crc32b	(%rax), %ecx
82# CHECK-NEXT:  -      -      -      -      -      -     1.00    -     crc32l	%eax, %ecx
83# CHECK-NEXT:  -      -      -      -      -      -     1.00   1.00   crc32l	(%rax), %ecx
84# CHECK-NEXT:  -      -      -      -      -      -     1.00    -     crc32w	%ax, %ecx
85# CHECK-NEXT:  -      -      -      -      -      -     1.00   1.00   crc32w	(%rax), %ecx
86# CHECK-NEXT:  -      -      -      -      -      -     1.00    -     crc32b	%al, %rcx
87# CHECK-NEXT:  -      -      -      -      -      -     1.00   1.00   crc32b	(%rax), %rcx
88# CHECK-NEXT:  -      -      -      -      -      -     1.00    -     crc32q	%rax, %rcx
89# CHECK-NEXT:  -      -      -      -      -      -     1.00   1.00   crc32q	(%rax), %rcx
90# CHECK-NEXT:  -      -      -     21.00   -      -      -      -     pcmpestri	$1, %xmm0, %xmm2
91# CHECK-NEXT:  -      -      -     21.00   -      -      -     1.00   pcmpestri	$1, (%rax), %xmm2
92# CHECK-NEXT:  -      -      -     17.00   -      -      -      -     pcmpestrm	$1, %xmm0, %xmm2
93# CHECK-NEXT:  -      -      -     17.00   -      -      -     1.00   pcmpestrm	$1, (%rax), %xmm2
94# CHECK-NEXT:  -      -      -     17.00   -      -      -      -     pcmpistri	$1, %xmm0, %xmm2
95# CHECK-NEXT:  -      -      -     17.00   -      -      -     1.00   pcmpistri	$1, (%rax), %xmm2
96# CHECK-NEXT:  -      -      -     13.00   -      -      -      -     pcmpistrm	$1, %xmm0, %xmm2
97# CHECK-NEXT:  -      -      -     13.00   -      -      -     1.00   pcmpistrm	$1, (%rax), %xmm2
98# CHECK-NEXT:  -      -      -     0.50   0.50    -      -      -     pcmpgtq	%xmm0, %xmm2
99# CHECK-NEXT:  -      -      -     0.50   0.50    -      -     1.00   pcmpgtq	(%rax), %xmm2
100