[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / BdVer2 / resources-aes.s
bloba7c26a8ae5664e896b22a524f15311c92e7e05fe
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -instruction-tables < %s | FileCheck %s
4 aesdec %xmm0, %xmm2
5 aesdec (%rax), %xmm2
7 aesdeclast %xmm0, %xmm2
8 aesdeclast (%rax), %xmm2
10 aesenc %xmm0, %xmm2
11 aesenc (%rax), %xmm2
13 aesenclast %xmm0, %xmm2
14 aesenclast (%rax), %xmm2
16 aesimc %xmm0, %xmm2
17 aesimc (%rax), %xmm2
19 aeskeygenassist $22, %xmm0, %xmm2
20 aeskeygenassist $22, (%rax), %xmm2
22 # CHECK: Instruction Info:
23 # CHECK-NEXT: [1]: #uOps
24 # CHECK-NEXT: [2]: Latency
25 # CHECK-NEXT: [3]: RThroughput
26 # CHECK-NEXT: [4]: MayLoad
27 # CHECK-NEXT: [5]: MayStore
28 # CHECK-NEXT: [6]: HasSideEffects (U)
30 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
31 # CHECK-NEXT: 2 9 1.00 aesdec %xmm0, %xmm2
32 # CHECK-NEXT: 2 14 1.50 * aesdec (%rax), %xmm2
33 # CHECK-NEXT: 2 9 1.00 aesdeclast %xmm0, %xmm2
34 # CHECK-NEXT: 2 14 1.50 * aesdeclast (%rax), %xmm2
35 # CHECK-NEXT: 2 9 1.00 aesenc %xmm0, %xmm2
36 # CHECK-NEXT: 2 14 1.50 * aesenc (%rax), %xmm2
37 # CHECK-NEXT: 2 9 1.00 aesenclast %xmm0, %xmm2
38 # CHECK-NEXT: 2 14 1.50 * aesenclast (%rax), %xmm2
39 # CHECK-NEXT: 1 5 1.00 aesimc %xmm0, %xmm2
40 # CHECK-NEXT: 1 10 1.50 * aesimc (%rax), %xmm2
41 # CHECK-NEXT: 1 5 1.00 aeskeygenassist $22, %xmm0, %xmm2
42 # CHECK-NEXT: 1 10 1.50 * aeskeygenassist $22, (%rax), %xmm2
44 # CHECK: Resources:
45 # CHECK-NEXT: [0.0] - PdAGLU01
46 # CHECK-NEXT: [0.1] - PdAGLU01
47 # CHECK-NEXT: [1] - PdBranch
48 # CHECK-NEXT: [2] - PdCount
49 # CHECK-NEXT: [3] - PdDiv
50 # CHECK-NEXT: [4] - PdEX0
51 # CHECK-NEXT: [5] - PdEX1
52 # CHECK-NEXT: [6] - PdFPCVT
53 # CHECK-NEXT: [7.0] - PdFPFMA
54 # CHECK-NEXT: [7.1] - PdFPFMA
55 # CHECK-NEXT: [8.0] - PdFPMAL
56 # CHECK-NEXT: [8.1] - PdFPMAL
57 # CHECK-NEXT: [9] - PdFPMMA
58 # CHECK-NEXT: [10] - PdFPSTO
59 # CHECK-NEXT: [11] - PdFPU0
60 # CHECK-NEXT: [12] - PdFPU1
61 # CHECK-NEXT: [13] - PdFPU2
62 # CHECK-NEXT: [14] - PdFPU3
63 # CHECK-NEXT: [15] - PdFPXBR
64 # CHECK-NEXT: [16.0] - PdLoad
65 # CHECK-NEXT: [16.1] - PdLoad
66 # CHECK-NEXT: [17] - PdMul
67 # CHECK-NEXT: [18] - PdStore
69 # CHECK: Resource pressure per iteration:
70 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18]
71 # CHECK-NEXT: 9.00 9.00 - - - - - - - - - - 12.00 - 12.00 - - - - 9.00 9.00 - -
73 # CHECK: Resource pressure by instruction:
74 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18] Instructions:
75 # CHECK-NEXT: - - - - - - - - - - - - 1.00 - 1.00 - - - - - - - - aesdec %xmm0, %xmm2
76 # CHECK-NEXT: 1.50 1.50 - - - - - - - - - - 1.00 - 1.00 - - - - 1.50 1.50 - - aesdec (%rax), %xmm2
77 # CHECK-NEXT: - - - - - - - - - - - - 1.00 - 1.00 - - - - - - - - aesdeclast %xmm0, %xmm2
78 # CHECK-NEXT: 1.50 1.50 - - - - - - - - - - 1.00 - 1.00 - - - - 1.50 1.50 - - aesdeclast (%rax), %xmm2
79 # CHECK-NEXT: - - - - - - - - - - - - 1.00 - 1.00 - - - - - - - - aesenc %xmm0, %xmm2
80 # CHECK-NEXT: 1.50 1.50 - - - - - - - - - - 1.00 - 1.00 - - - - 1.50 1.50 - - aesenc (%rax), %xmm2
81 # CHECK-NEXT: - - - - - - - - - - - - 1.00 - 1.00 - - - - - - - - aesenclast %xmm0, %xmm2
82 # CHECK-NEXT: 1.50 1.50 - - - - - - - - - - 1.00 - 1.00 - - - - 1.50 1.50 - - aesenclast (%rax), %xmm2
83 # CHECK-NEXT: - - - - - - - - - - - - 1.00 - 1.00 - - - - - - - - aesimc %xmm0, %xmm2
84 # CHECK-NEXT: 1.50 1.50 - - - - - - - - - - 1.00 - 1.00 - - - - 1.50 1.50 - - aesimc (%rax), %xmm2
85 # CHECK-NEXT: - - - - - - - - - - - - 1.00 - 1.00 - - - - - - - - aeskeygenassist $22, %xmm0, %xmm2
86 # CHECK-NEXT: 1.50 1.50 - - - - - - - - - - 1.00 - 1.00 - - - - 1.50 1.50 - - aeskeygenassist $22, (%rax), %xmm2