[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-mca / X86 / BtVer2 / resources-sse42.s
blobb61a6df497e68fa125986a9e0a7302a1df6b8fa9
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
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: 3 3 2.00 crc32b %al, %ecx
44 # CHECK-NEXT: 3 6 2.00 * crc32b (%rax), %ecx
45 # CHECK-NEXT: 3 3 2.00 crc32l %eax, %ecx
46 # CHECK-NEXT: 3 6 2.00 * crc32l (%rax), %ecx
47 # CHECK-NEXT: 3 3 2.00 crc32w %ax, %ecx
48 # CHECK-NEXT: 3 6 2.00 * crc32w (%rax), %ecx
49 # CHECK-NEXT: 3 3 2.00 crc32b %al, %rcx
50 # CHECK-NEXT: 3 6 2.00 * crc32b (%rax), %rcx
51 # CHECK-NEXT: 3 3 2.00 crc32q %rax, %rcx
52 # CHECK-NEXT: 3 6 2.00 * crc32q (%rax), %rcx
53 # CHECK-NEXT: 9 14 5.00 pcmpestri $1, %xmm0, %xmm2
54 # CHECK-NEXT: 9 19 5.00 * pcmpestri $1, (%rax), %xmm2
55 # CHECK-NEXT: 9 14 5.00 pcmpestrm $1, %xmm0, %xmm2
56 # CHECK-NEXT: 9 19 5.00 * pcmpestrm $1, (%rax), %xmm2
57 # CHECK-NEXT: 3 7 2.00 pcmpistri $1, %xmm0, %xmm2
58 # CHECK-NEXT: 3 12 2.00 * pcmpistri $1, (%rax), %xmm2
59 # CHECK-NEXT: 3 8 2.00 pcmpistrm $1, %xmm0, %xmm2
60 # CHECK-NEXT: 3 13 2.00 * pcmpistrm $1, (%rax), %xmm2
61 # CHECK-NEXT: 1 1 0.50 pcmpgtq %xmm0, %xmm2
62 # CHECK-NEXT: 1 6 1.00 * pcmpgtq (%rax), %xmm2
64 # CHECK: Resources:
65 # CHECK-NEXT: [0] - JALU0
66 # CHECK-NEXT: [1] - JALU1
67 # CHECK-NEXT: [2] - JDiv
68 # CHECK-NEXT: [3] - JFPA
69 # CHECK-NEXT: [4] - JFPM
70 # CHECK-NEXT: [5] - JFPU0
71 # CHECK-NEXT: [6] - JFPU1
72 # CHECK-NEXT: [7] - JLAGU
73 # CHECK-NEXT: [8] - JMul
74 # CHECK-NEXT: [9] - JSAGU
75 # CHECK-NEXT: [10] - JSTC
76 # CHECK-NEXT: [11] - JVALU0
77 # CHECK-NEXT: [12] - JVALU1
78 # CHECK-NEXT: [13] - JVIMUL
80 # CHECK: Resource pressure per iteration:
81 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
82 # CHECK-NEXT: 28.00 20.00 - 8.00 - 5.00 13.00 18.00 - 8.00 - 13.00 37.00 -
84 # CHECK: Resource pressure by instruction:
85 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
86 # CHECK-NEXT: 2.00 2.00 - - - - - - - - - - - - crc32b %al, %ecx
87 # CHECK-NEXT: 2.00 2.00 - - - - - 1.00 - - - - - - crc32b (%rax), %ecx
88 # CHECK-NEXT: 2.00 2.00 - - - - - - - - - - - - crc32l %eax, %ecx
89 # CHECK-NEXT: 2.00 2.00 - - - - - 1.00 - - - - - - crc32l (%rax), %ecx
90 # CHECK-NEXT: 2.00 2.00 - - - - - - - - - - - - crc32w %ax, %ecx
91 # CHECK-NEXT: 2.00 2.00 - - - - - 1.00 - - - - - - crc32w (%rax), %ecx
92 # CHECK-NEXT: 2.00 2.00 - - - - - - - - - - - - crc32b %al, %rcx
93 # CHECK-NEXT: 2.00 2.00 - - - - - 1.00 - - - - - - crc32b (%rax), %rcx
94 # CHECK-NEXT: 2.00 2.00 - - - - - - - - - - - - crc32q %rax, %rcx
95 # CHECK-NEXT: 2.00 2.00 - - - - - 1.00 - - - - - - crc32q (%rax), %rcx
96 # CHECK-NEXT: 1.00 - - 1.00 - - 1.00 2.00 - 2.00 - 3.00 7.00 - pcmpestri $1, %xmm0, %xmm2
97 # CHECK-NEXT: 1.00 - - 1.00 - - 1.00 3.00 - 2.00 - 3.00 7.00 - pcmpestri $1, (%rax), %xmm2
98 # CHECK-NEXT: 1.00 - - 1.00 - - 1.00 2.00 - 2.00 - 3.00 7.00 - pcmpestrm $1, %xmm0, %xmm2
99 # CHECK-NEXT: 1.00 - - 1.00 - - 1.00 3.00 - 2.00 - 3.00 7.00 - pcmpestrm $1, (%rax), %xmm2
100 # CHECK-NEXT: 1.00 - - 1.00 - 1.00 2.00 - - - - - 2.00 - pcmpistri $1, %xmm0, %xmm2
101 # CHECK-NEXT: 1.00 - - 1.00 - 1.00 2.00 1.00 - - - - 2.00 - pcmpistri $1, (%rax), %xmm2
102 # CHECK-NEXT: 1.00 - - 1.00 - 1.00 2.00 - - - - - 2.00 - pcmpistrm $1, %xmm0, %xmm2
103 # CHECK-NEXT: 1.00 - - 1.00 - 1.00 2.00 1.00 - - - - 2.00 - pcmpistrm $1, (%rax), %xmm2
104 # CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - pcmpgtq %xmm0, %xmm2
105 # CHECK-NEXT: - - - - - 0.50 0.50 1.00 - - - 0.50 0.50 - pcmpgtq (%rax), %xmm2