[llvm] [AArch64] SME definitions for C1-Ultra scheduling model (PR #194850)
Nashe Mncube via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 06:09:01 PDT 2026
https://github.com/nasherm created https://github.com/llvm/llvm-project/pull/194850
This patch extends the C1-Ultra scheduling model to add support SME instructions. These instructions differ from legacy scheduling model instruction definitions in that they are sent to the CME co-processor when in streaming mode. Modelling these instructions requires several changes to the scheduling model
- predicating the process resource groups for SME instructions based on whether we are executing in streaming SVE mode or not
- definitions of CME processor resource. Instructions sent to this co-processor are modelled as having 0 latency when in streaming SVE mode as the software optimization guide mentions that these latencies are not-applicable
- tests for SME instructions
https://developer.arm.com/documentation/111079/3-0
Assisted by Codex
>From 865dcb02fb4edd31b726c82b73319135fd08851b Mon Sep 17 00:00:00 2001
From: nasmnc01 <nashe.mncube at arm.com>
Date: Mon, 27 Apr 2026 10:43:05 +0100
Subject: [PATCH 1/3] SME instructions for C1-Ultra
Implements
- SVE instructions added by SME and available when not in Streaming SVE mode
- Instructions added by SME that aren't sent to CME
Change-Id: I4ce8cc008d503f53af3fe54f6f2130f5c85047af
---
llvm/lib/Target/AArch64/AArch64.td | 4 +-
.../lib/Target/AArch64/AArch64SchedC1Ultra.td | 95 ++++++++++++
.../Target/AArch64/AArch64SchedNeoverseN2.td | 4 +-
.../Target/AArch64/AArch64SchedNeoverseN3.td | 5 +-
.../Target/AArch64/AArch64SchedNeoverseV1.td | 2 +-
.../Target/AArch64/AArch64SchedNeoverseV2.td | 5 +-
.../Target/AArch64/AArch64SchedNeoverseV3.td | 5 +-
.../AArch64/AArch64SchedNeoverseV3AE.td | 5 +-
.../lib/Target/AArch64/AArch64SchedOlympus.td | 14 +-
.../AArch64/Cortex/C1Ultra-sme-instructions.s | 135 ++++++++++++++++++
.../AArch64/Inputs/sme-instructions.s | 43 ++++++
11 files changed, 300 insertions(+), 17 deletions(-)
create mode 100644 llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-sme-instructions.s
create mode 100644 llvm/test/tools/llvm-mca/AArch64/Inputs/sme-instructions.s
diff --git a/llvm/lib/Target/AArch64/AArch64.td b/llvm/lib/Target/AArch64/AArch64.td
index 1d6cea38dc163..8aad739eef4cb 100644
--- a/llvm/lib/Target/AArch64/AArch64.td
+++ b/llvm/lib/Target/AArch64/AArch64.td
@@ -60,7 +60,9 @@ include "AArch64SystemOperands.td"
class AArch64Unsupported { list<Predicate> F; }
-let F = [HasSVE2p1, HasSVE2p1_or_SME2, HasSVE2p1_or_StreamingSME2, HasSVE2p1_or_SME2p1] in
+let F = [HasSVE2p1, HasSVE2p1_or_SME, HasSVE2p1_or_SME2,
+ HasSVE2p1_or_StreamingSME2, HasSVE2p1_or_SME2p1,
+ HasSMEandIsNonStreamingSafe] in
def SVE2p1Unsupported : AArch64Unsupported;
def SVE2Unsupported : AArch64Unsupported {
diff --git a/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td b/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td
index 1d2f96086b42c..2d675d00efa09 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td
@@ -111,6 +111,8 @@ def C1UWrite_2c_1I4 : SchedWriteRes<[C1UUnitI4]> { let Latency = 2; }
def C1UWrite_1c_1M : SchedWriteRes<[C1UUnitM]> { let Latency = 1; }
def C1UWrite_1c_2M : SchedWriteRes<[C1UUnitM, C1UUnitM]> { let Latency = 1; }
def C1UWrite_2c_1M : SchedWriteRes<[C1UUnitM]> { let Latency = 2; }
+def C1UWrite_2c_2M : SchedWriteRes<[C1UUnitM, C1UUnitM]> { let Latency = 2; }
+def C1UWrite_3c_1M : SchedWriteRes<[C1UUnitM]> { let Latency = 3; }
def C1UWrite_2c_1M0 : SchedWriteRes<[C1UUnitM0]> { let Latency = 2; }
def C1UWrite_3c_1M0 : SchedWriteRes<[C1UUnitM0]> { let Latency = 3; }
def C1UWrite_4c_1M0 : SchedWriteRes<[C1UUnitM0]> { let Latency = 4; }
@@ -122,6 +124,7 @@ def C1UWrite_1c_1V : SchedWriteRes<[C1UUnitV]> { let Latency = 1; }
def C1UWrite_2c_1V : SchedWriteRes<[C1UUnitV]> { let Latency = 2; }
def C1UWrite_2c_3V : SchedWriteRes<[C1UUnitV, C1UUnitV, C1UUnitV]> { let Latency = 2; }
def C1UWrite_3c_1V : SchedWriteRes<[C1UUnitV]> { let Latency = 3; }
+def C1UWrite_3c_2V : SchedWriteRes<[C1UUnitV, C1UUnitV]> { let Latency = 3; }
def C1UWrite_4c_1V : SchedWriteRes<[C1UUnitV]> { let Latency = 4; }
def C1UWrite_4c_2V : SchedWriteRes<[C1UUnitV, C1UUnitV]> { let Latency = 4; }
def C1UWrite_4c_3V : SchedWriteRes<[C1UUnitV, C1UUnitV, C1UUnitV]> { let Latency = 4; }
@@ -703,6 +706,44 @@ def C1UWrite_3or4c_1M0_1M : SchedWriteVariant<[
SchedVar<NeoversePdIsPg, [C1UWrite_4c_1M0_1M]>,
SchedVar<NoSchedPred, [C1UWrite_3c_1M0_1M]>]>;
+// SME predicates
+
+def C1UWrite_1c_1I_Streaming : SchedWriteVariant<[
+ SchedVar<SMESchedPred, [C1UWrite_1c_1I]>,
+ SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
+
+def C1UWrite_1c_1M_Streaming : SchedWriteVariant<[
+ SchedVar<SMESchedPred, [C1UWrite_1c_1M]>,
+ SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
+
+def C1UWrite_2c_1V_Streaming : SchedWriteVariant<[
+ SchedVar<SMESchedPred, [C1UWrite_2c_1V]>,
+ SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
+
+def C1UWrite_3c_1V_Streaming : SchedWriteVariant<[
+ SchedVar<SMESchedPred, [C1UWrite_3c_1V]>,
+ SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
+
+def C1UWrite_3c_1V01_Streaming : SchedWriteVariant<[
+ SchedVar<SMESchedPred, [C1UWrite_3c_1V01]>,
+ SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
+
+def C1UWrite_4c_1V_Streaming : SchedWriteVariant<[
+ SchedVar<SMESchedPred, [C1UWrite_4c_1V]>,
+ SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
+
+def C1UWrite_2c_1M_Streaming : SchedWriteVariant<[
+ SchedVar<SMESchedPred, [C1UWrite_2c_1M]>,
+ SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
+
+def C1UWrite_3c_1M_Streaming : SchedWriteVariant<[
+ SchedVar<SMESchedPred, [C1UWrite_3c_1M]>,
+ SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
+
+def C1UWrite_2c_2M_Streaming : SchedWriteVariant<[
+ SchedVar<SMESchedPred, [C1UWrite_2c_2M]>,
+ SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
+
// Miscellaneous
// -----------------------------------------------------------------------------
@@ -2456,4 +2497,58 @@ def : InstRW<[C1UWrite_2c_1V], (instregex "^(BCAX|EOR3)_ZZZZ$",
// Crypto SM4 ops
def : InstRW<[C1UWrite_4c_1V0], (instregex "^SM4E(KEY)?_ZZZ_S$")>;
+// SVE instructions added by SME and available when not in Streaming SVE mode
+// -----------------------------------------------------------------------------
+// BFloat16 floating-point multiply-subtract long from single-precision vector and indexed form
+def : InstRW<[C1UWrite_4c_1V_Streaming], (instregex "^BFMLSLB_", "^BFMLSLT_")>;
+
+// Floating-point clamp to minimum/maximu m number
+def : InstRW<[C1UWrite_2c_1V_Streaming], (instregex "^FCLAMP_ZZZ")>;
+
+// Half-precision floating-point indexed or vector forms dot product
+def : InstRW<[C1UWrite_4c_1V_Streaming], (instregex "^FDOT_ZZZI?_S$")>;
+
+// Predicate selection
+def : InstRW<[C1UWrite_2c_2M_Streaming], (instregex "^PSEL_PPPRI")>;
+
+// Reverse doubleword elements
+def : InstRW<[C1UWrite_2c_1V_Streaming], (instregex "^REVD_ZPmZ")>;
+
+// Signed/unsigned clamp
+def : InstRW<[C1UWrite_2c_1V_Streaming], (instregex "^(S|U)CLAMP_ZZZ")>;
+
+// TODO: throughput is 2 instead of 4
+// Half-precision signed/unsigned dot product vector and indexed forms
+def : InstRW<[C1UWrite_3c_1V01_Streaming], (instregex "^(S|U)DOT_ZZZI?_HtoS")>;
+
+// Signed/unsigned saturating narrow conversion
+def : InstRW<[C1UWrite_2c_1V_Streaming], (instregex "^(SQCVTN|SQCVTUN|UQCVTN)_Z2Z_StoH")>;
+
+// Signed/unsigned saturating rounding shift-right narrow
+def : InstRW<[C1UWrite_3c_1V01_Streaming], (instregex "^(SQRSHRN|SQRSHRUN|UQRSHRN)_Z2ZI_StoH")>;
+
+// Signed/unsigned pair-producing while compare
+def : InstRW<[C1UWrite_2c_1M_Streaming], (instregex "^WHILE(GE|GT|HI|HS|LE|LO|LS|LT)_2PXX")>;
+
+// SVE instructions added by SME but not sent to CME when in Streaming SVE mode
+// -----------------------------------------------------------------------------
+
+// Add/Read multiple of streaming SVE Predicate/vector register size to scalar register
+def : InstRW<[C1UWrite_1c_1I_Streaming], (instrs ADDSPL_XXI, ADDSVL_XXI, RDSVLI_XI)>;
+
+// Predicate counting scalar to count from predicate-as-counter
+def : InstRW<[C1UWrite_2c_1M_Streaming], (instregex "^CNTP_XCI_[BHSD]$")>;
+
+// Set predicates from predicate-as-counter
+def : InstRW<[C1UWrite_2c_1M_Streaming], (instregex "^PEXT_PCI_[BHSD]$")>;
+
+// Set pair of predicates from predicate-as-counter
+def : InstRW<[C1UWrite_3c_1M_Streaming], (instregex "^PEXT_2PCI_[BHSD]$")>;
+
+// Predicate as counter set
+def : InstRW<[C1UWrite_1c_1M_Streaming], (instregex "^PTRUE_C_[BHSD]$")>;
+
+// Loop control, based on GPR generating predicate as counter
+def : InstRW<[C1UWrite_1c_1M_Streaming], (instregex "^WHILE(GE|GT|HI|HS|LE|LO|LS|LT)_CXX_[BHSD]$")>;
+
}
diff --git a/llvm/lib/Target/AArch64/AArch64SchedNeoverseN2.td b/llvm/lib/Target/AArch64/AArch64SchedNeoverseN2.td
index afa4e4744a997..f141f65ca994f 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedNeoverseN2.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedNeoverseN2.td
@@ -19,7 +19,9 @@ def NeoverseN2Model : SchedMachineModel {
let CompleteModel = 1;
list<Predicate> UnsupportedFeatures = !listconcat(SMEUnsupported.F,
- [HasSVE2p1, HasSVEB16B16, HasPAuthLR, HasCPA, HasCSSC]);
+ SVE2p1Unsupported.F,
+ [HasSVEB16B16, HasPAuthLR,
+ HasCPA, HasCSSC]);
}
//===----------------------------------------------------------------------===//
diff --git a/llvm/lib/Target/AArch64/AArch64SchedNeoverseN3.td b/llvm/lib/Target/AArch64/AArch64SchedNeoverseN3.td
index 3759dc99cea9f..34a4349562220 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedNeoverseN3.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedNeoverseN3.td
@@ -19,7 +19,10 @@ def NeoverseN3Model : SchedMachineModel {
let CompleteModel = 1;
list<Predicate> UnsupportedFeatures = !listconcat(SMEUnsupported.F,
- [HasSVE2p1, HasSVEB16B16, HasPAuthLR, HasCPA, HasCSSC]);
+ SVE2p1Unsupported.F,
+ [HasSVEB16B16,
+ HasPAuthLR, HasCPA,
+ HasCSSC]);
}
//===----------------------------------------------------------------------===//
diff --git a/llvm/lib/Target/AArch64/AArch64SchedNeoverseV1.td b/llvm/lib/Target/AArch64/AArch64SchedNeoverseV1.td
index 6c40304e7cd6b..745077106208c 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedNeoverseV1.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedNeoverseV1.td
@@ -1506,7 +1506,7 @@ def : InstRW<[V1Write_2c_1V01],
"^[SU](MAX|MIN)_Z(I|P[mZ]Z)_[BHSD]",
"^[SU]Q(ADD|SUB)_Z(I|ZZ)_[BHSD]",
"^SUBR_Z(I|P[mZ]Z)_[BHSD]",
- "^(AND|EOR|ORR)_ZI",
+ "^(AND|EOR|ORR)_ZI(_PSEUDO)?$",
"^(AND|BIC|EOR|EOR(BT|TB)?|ORR)_ZP?ZZ",
"^EOR(BT|TB)_ZZZ_[BHSD]$",
"^(AND|BIC|EOR|NOT|ORR)_ZPmZ_[BHSD]")>;
diff --git a/llvm/lib/Target/AArch64/AArch64SchedNeoverseV2.td b/llvm/lib/Target/AArch64/AArch64SchedNeoverseV2.td
index 275bbaf5fba4c..38b3c627b2b97 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedNeoverseV2.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedNeoverseV2.td
@@ -24,8 +24,9 @@ def NeoverseV2Model : SchedMachineModel {
let CompleteModel = 1;
list<Predicate> UnsupportedFeatures = !listconcat(SMEUnsupported.F,
- [HasSVE2p1, HasSVEB16B16,
- HasCPA, HasCSSC]);
+ SVE2p1Unsupported.F,
+ [HasSVEB16B16, HasCPA,
+ HasCSSC]);
}
//===----------------------------------------------------------------------===//
diff --git a/llvm/lib/Target/AArch64/AArch64SchedNeoverseV3.td b/llvm/lib/Target/AArch64/AArch64SchedNeoverseV3.td
index 3e210f088c45b..ea3b313e2368b 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedNeoverseV3.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedNeoverseV3.td
@@ -22,8 +22,9 @@ def NeoverseV3Model : SchedMachineModel {
let CompleteModel = 1;
list<Predicate> UnsupportedFeatures = !listconcat(SMEUnsupported.F,
- [HasSVE2p1, HasSVEB16B16,
- HasCPA, HasCSSC]);
+ SVE2p1Unsupported.F,
+ [HasSVEB16B16, HasCPA,
+ HasCSSC]);
}
//===----------------------------------------------------------------------===//
diff --git a/llvm/lib/Target/AArch64/AArch64SchedNeoverseV3AE.td b/llvm/lib/Target/AArch64/AArch64SchedNeoverseV3AE.td
index 470385ae23c93..d18927527d9cf 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedNeoverseV3AE.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedNeoverseV3AE.td
@@ -22,8 +22,9 @@ def NeoverseV3AEModel : SchedMachineModel {
let CompleteModel = 1;
list<Predicate> UnsupportedFeatures = !listconcat(SMEUnsupported.F,
- [HasSVE2p1, HasSVEB16B16,
- HasCPA, HasCSSC]);
+ SVE2p1Unsupported.F,
+ [HasSVEB16B16, HasCPA,
+ HasCSSC]);
}
//===----------------------------------------------------------------------===//
diff --git a/llvm/lib/Target/AArch64/AArch64SchedOlympus.td b/llvm/lib/Target/AArch64/AArch64SchedOlympus.td
index 9d843a9490618..1e5e83a4eacbd 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedOlympus.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedOlympus.td
@@ -24,9 +24,9 @@ def OlympusModel : SchedMachineModel {
let CompleteModel = 1;
list<Predicate> UnsupportedFeatures = !listconcat(SMEUnsupported.F,
- [HasSVE2p1, HasSVEB16B16,
- HasCPA, HasCSSC,
- HasMatMulFP64]);
+ SVE2p1Unsupported.F,
+ [HasSVEB16B16, HasCPA,
+ HasCSSC, HasMatMulFP64]);
}
//===----------------------------------------------------------------------===//
@@ -2385,7 +2385,7 @@ def : InstRW<[OlympusWrite_2c_1V], (instregex "^ADR_LSL_ZZZ_[SD]_[0123]",
// AND (vectors, predicated)
def : InstRW<[OlympusWrite_2c_1V], (instregex "^AND_ZP[mZ]Z_[BHSD]")>;
// AND (immediate)
-def : InstRW<[OlympusWrite_2c_1V], (instregex "^AND_ZI")>;
+def : InstRW<[OlympusWrite_2c_1V], (instrs AND_ZI, AND_ZI_PSEUDO)>;
// AND (vectors, unpredicated)
def : InstRW<[OlympusWrite_2c_1V], (instrs AND_ZZZ)>;
// ASR (immediate, predicated)
@@ -2435,7 +2435,7 @@ def : InstRW<[OlympusWrite_2c_1V], (instrs DUPM_ZI)>;
// EOR (vectors, predicated)
def : InstRW<[OlympusWrite_2c_1V], (instregex "^EOR_ZP[mZ]Z_[BHSD]")>;
// EOR (immediate)
-def : InstRW<[OlympusWrite_2c_1V], (instregex "^EOR_ZI")>;
+def : InstRW<[OlympusWrite_2c_1V], (instrs EOR_ZI, EOR_ZI_PSEUDO)>;
// EOR (vectors, unpredicated)
def : InstRW<[OlympusWrite_2c_1V], (instrs EOR_ZZZ)>;
// EORBT
@@ -2494,7 +2494,7 @@ def : InstRW<[OlympusWrite_2c_1V], (instregex "^NOT_ZPmZ_[BHSD]")>;
// ORR (vectors, predicated)
def : InstRW<[OlympusWrite_2c_1V], (instregex "^ORR_ZP[mZ]Z_[BHSD]")>;
// ORR (immediate)
-def : InstRW<[OlympusWrite_2c_1V], (instregex "^ORR_ZI")>;
+def : InstRW<[OlympusWrite_2c_1V], (instrs ORR_ZI, ORR_ZI_PSEUDO)>;
// ORR (vectors, unpredicated)
def : InstRW<[OlympusWrite_2c_1V], (instrs ORR_ZZZ)>;
// PMUL
@@ -2860,7 +2860,7 @@ def : InstRW<[OlympusWrite_5c_1V0123_2], (instrs SQRDMULH_ZZZ_D)>;
// UMULH (unpredicated)
def : InstRW<[OlympusWrite_5c_1V0123_2], (instrs UMULH_ZZZ_D)>;
// MUL (immediate)
-def : InstRW<[OlympusWrite_5c_1V0123_2], (instregex "^MUL_ZI_D")>;
+def : InstRW<[OlympusWrite_5c_1V0123_2], (instrs MUL_ZI_D, MUL_ZI_D_PSEUDO)>;
// SQDMULH (indexed)
def : InstRW<[OlympusWrite_5c_1V0123_2], (instrs SQDMULH_ZZZI_D)>;
// SQRDMULH (indexed)
diff --git a/llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-sme-instructions.s b/llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-sme-instructions.s
new file mode 100644
index 0000000000000..d28d284f30f6f
--- /dev/null
+++ b/llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-sme-instructions.s
@@ -0,0 +1,135 @@
+# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
+# RUN: llvm-mca -mtriple=aarch64 -mcpu=c1-ultra -mattr=+sme2p2 -instruction-tables < %p/../Inputs/sme-instructions.s | FileCheck %s
+
+# CHECK: Instruction Info:
+# CHECK-NEXT: [1]: #uOps
+# CHECK-NEXT: [2]: Latency
+# CHECK-NEXT: [3]: RThroughput
+# CHECK-NEXT: [4]: MayLoad
+# CHECK-NEXT: [5]: MayStore
+# CHECK-NEXT: [6]: HasSideEffects (U)
+
+# CHECK: [1] [2] [3] [4] [5] [6] Instructions:
+# CHECK-NEXT: 1 1 0.13 addspl x0, x1, #10
+# CHECK-NEXT: 1 1 0.13 addspl x0, sp, #10
+# CHECK-NEXT: 1 1 0.13 addsvl x0, x1, #10
+# CHECK-NEXT: 1 1 0.13 addsvl x0, sp, #10
+# CHECK-NEXT: 1 1 0.13 rdsvl x1, #10
+# CHECK-NEXT: 1 2 0.50 cntp x0, pn0.h, vlx2
+# CHECK-NEXT: 1 2 0.50 pext p0.h, pn8[0]
+# CHECK-NEXT: 1 3 0.50 pext { p0.h, p1.h }, pn8[0]
+# CHECK-NEXT: 1 1 0.50 ptrue pn8.h
+# CHECK-NEXT: 1 1 0.50 whilege pn8.h, x0, x0, vlx2
+# CHECK-NEXT: 1 1 0.50 whilegt pn8.h, x0, x0, vlx2
+# CHECK-NEXT: 1 1 0.50 whilehi pn8.h, x0, x0, vlx2
+# CHECK-NEXT: 1 1 0.50 whilehs pn8.h, x0, x0, vlx2
+# CHECK-NEXT: 1 1 0.50 whilele pn8.h, x0, x0, vlx2
+# CHECK-NEXT: 1 1 0.50 whilelo pn8.h, x0, x0, vlx2
+# CHECK-NEXT: 1 1 0.50 whilels pn8.h, x0, x0, vlx2
+# CHECK-NEXT: 1 1 0.50 whilelt pn8.h, x0, x0, vlx2
+# CHECK-NEXT: 1 4 0.17 bfmlslb z0.s, z1.h, z2.h
+# CHECK-NEXT: 1 4 0.17 bfmlslb z0.s, z1.h, z2.h[0]
+# CHECK-NEXT: 1 4 0.17 bfmlslt z0.s, z1.h, z2.h
+# CHECK-NEXT: 1 4 0.17 bfmlslt z0.s, z1.h, z2.h[0]
+# CHECK-NEXT: 1 2 0.17 fclamp z0.s, z1.s, z2.s
+# CHECK-NEXT: 1 4 0.17 fdot z0.s, z1.h, z2.h
+# CHECK-NEXT: 1 4 0.17 fdot z0.s, z1.h, z2.h[0]
+# CHECK-NEXT: 1 2 1.00 psel p0, p0, p0.b[w12, 0]
+# CHECK-NEXT: 1 2 0.17 revd z0.q, p0/m, z0.q
+# CHECK-NEXT: 1 2 0.17 sclamp z0.s, z1.s, z2.s
+# CHECK-NEXT: 1 2 0.17 uclamp z0.s, z1.s, z2.s
+# CHECK-NEXT: 1 3 0.50 sdot z0.s, z0.h, z0.h
+# CHECK-NEXT: 1 3 0.50 sdot z0.s, z0.h, z0.h[0]
+# CHECK-NEXT: 1 3 0.50 udot z0.s, z0.h, z0.h
+# CHECK-NEXT: 1 3 0.50 udot z0.s, z0.h, z0.h[0]
+# CHECK-NEXT: 1 2 0.17 sqcvtn z0.h, { z0.s, z1.s }
+# CHECK-NEXT: 1 2 0.17 sqcvtun z0.h, { z0.s, z1.s }
+# CHECK-NEXT: 1 2 0.17 uqcvtn z0.h, { z0.s, z1.s }
+# CHECK-NEXT: 1 2 0.50 whilege { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: 1 2 0.50 whilegt { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: 1 2 0.50 whilehi { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: 1 2 0.50 whilehs { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: 1 2 0.50 whilele { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: 1 2 0.50 whilelo { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: 1 2 0.50 whilels { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: 1 2 0.50 whilelt { p0.h, p1.h }, x0, x0
+
+# CHECK: Resources:
+# CHECK-NEXT: [0.0] - C1UUnitB
+# CHECK-NEXT: [0.1] - C1UUnitB
+# CHECK-NEXT: [0.2] - C1UUnitB
+# CHECK-NEXT: [1] - C1UUnitCME
+# CHECK-NEXT: [2.0] - C1UUnitD
+# CHECK-NEXT: [2.1] - C1UUnitD
+# CHECK-NEXT: [3.0] - C1UUnitFlg
+# CHECK-NEXT: [3.1] - C1UUnitFlg
+# CHECK-NEXT: [3.2] - C1UUnitFlg
+# CHECK-NEXT: [3.3] - C1UUnitFlg
+# CHECK-NEXT: [4.0] - C1UUnitL23
+# CHECK-NEXT: [4.1] - C1UUnitL23
+# CHECK-NEXT: [5] - C1UUnitLS0
+# CHECK-NEXT: [6] - C1UUnitLS1
+# CHECK-NEXT: [7] - C1UUnitM0
+# CHECK-NEXT: [8] - C1UUnitM1
+# CHECK-NEXT: [9] - C1UUnitS0
+# CHECK-NEXT: [10] - C1UUnitS1
+# CHECK-NEXT: [11] - C1UUnitS2
+# CHECK-NEXT: [12] - C1UUnitS3
+# CHECK-NEXT: [13] - C1UUnitS4
+# CHECK-NEXT: [14] - C1UUnitS5
+# CHECK-NEXT: [15] - C1UUnitV0
+# CHECK-NEXT: [16] - C1UUnitV1
+# CHECK-NEXT: [17] - C1UUnitV2
+# CHECK-NEXT: [18] - C1UUnitV3
+# CHECK-NEXT: [19] - C1UUnitV4
+# CHECK-NEXT: [20] - C1UUnitV5
+
+# CHECK: Resource pressure per iteration:
+# CHECK-NEXT: [0.0] [0.1] [0.2] [1] [2.0] [2.1] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
+# CHECK-NEXT: - - - - - - - - - - - - - - 11.63 11.63 0.63 0.63 0.63 0.63 0.63 0.63 4.17 4.17 2.17 2.17 2.17 2.17
+
+# CHECK: Resource pressure by instruction:
+# CHECK-NEXT: [0.0] [0.1] [0.2] [1] [2.0] [2.1] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] Instructions:
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.13 0.13 0.13 0.13 0.13 0.13 0.13 0.13 - - - - - - addspl x0, x1, #10
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.13 0.13 0.13 0.13 0.13 0.13 0.13 0.13 - - - - - - addspl x0, sp, #10
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.13 0.13 0.13 0.13 0.13 0.13 0.13 0.13 - - - - - - addsvl x0, x1, #10
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.13 0.13 0.13 0.13 0.13 0.13 0.13 0.13 - - - - - - addsvl x0, sp, #10
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.13 0.13 0.13 0.13 0.13 0.13 0.13 0.13 - - - - - - rdsvl x1, #10
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - cntp x0, pn0.h, vlx2
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - pext p0.h, pn8[0]
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - pext { p0.h, p1.h }, pn8[0]
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - ptrue pn8.h
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilege pn8.h, x0, x0, vlx2
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilegt pn8.h, x0, x0, vlx2
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilehi pn8.h, x0, x0, vlx2
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilehs pn8.h, x0, x0, vlx2
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilele pn8.h, x0, x0, vlx2
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilelo pn8.h, x0, x0, vlx2
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilels pn8.h, x0, x0, vlx2
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilelt pn8.h, x0, x0, vlx2
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 bfmlslb z0.s, z1.h, z2.h
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 bfmlslb z0.s, z1.h, z2.h[0]
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 bfmlslt z0.s, z1.h, z2.h
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 bfmlslt z0.s, z1.h, z2.h[0]
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fclamp z0.s, z1.s, z2.s
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fdot z0.s, z1.h, z2.h
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fdot z0.s, z1.h, z2.h[0]
+# CHECK-NEXT: - - - - - - - - - - - - - - 1.00 1.00 - - - - - - - - - - - - psel p0, p0, p0.b[w12, 0]
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 revd z0.q, p0/m, z0.q
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 sclamp z0.s, z1.s, z2.s
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 uclamp z0.s, z1.s, z2.s
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.50 0.50 - - - - sdot z0.s, z0.h, z0.h
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.50 0.50 - - - - sdot z0.s, z0.h, z0.h[0]
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.50 0.50 - - - - udot z0.s, z0.h, z0.h
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.50 0.50 - - - - udot z0.s, z0.h, z0.h[0]
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 sqcvtn z0.h, { z0.s, z1.s }
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 sqcvtun z0.h, { z0.s, z1.s }
+# CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 uqcvtn z0.h, { z0.s, z1.s }
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilege { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilegt { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilehi { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilehs { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilele { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilelo { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilels { p0.h, p1.h }, x0, x0
+# CHECK-NEXT: - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - whilelt { p0.h, p1.h }, x0, x0
diff --git a/llvm/test/tools/llvm-mca/AArch64/Inputs/sme-instructions.s b/llvm/test/tools/llvm-mca/AArch64/Inputs/sme-instructions.s
new file mode 100644
index 0000000000000..0089d7515a1e8
--- /dev/null
+++ b/llvm/test/tools/llvm-mca/AArch64/Inputs/sme-instructions.s
@@ -0,0 +1,43 @@
+addspl x0, x1, #10
+addspl x0, sp, #10
+addsvl x0, x1, #10
+addsvl x0, sp, #10
+rdsvl x1, #10
+cntp x0, pn0.h, vlx2
+pext p0.h, pn8[0]
+pext { p0.h, p1.h }, pn8[0]
+ptrue pn8.h
+whilege pn8.h, x0, x0, vlx2
+whilegt pn8.h, x0, x0, vlx2
+whilehi pn8.h, x0, x0, vlx2
+whilehs pn8.h, x0, x0, vlx2
+whilele pn8.h, x0, x0, vlx2
+whilelo pn8.h, x0, x0, vlx2
+whilels pn8.h, x0, x0, vlx2
+whilelt pn8.h, x0, x0, vlx2
+bfmlslb z0.s, z1.h, z2.h
+bfmlslb z0.s, z1.h, z2.h[0]
+bfmlslt z0.s, z1.h, z2.h
+bfmlslt z0.s, z1.h, z2.h[0]
+fclamp z0.s, z1.s, z2.s
+fdot z0.s, z1.h, z2.h
+fdot z0.s, z1.h, z2.h[0]
+psel p0, p0, p0.b[w12, 0]
+revd z0.q, p0/m, z0.q
+sclamp z0.s, z1.s, z2.s
+uclamp z0.s, z1.s, z2.s
+sdot z0.s, z0.h, z0.h
+sdot z0.s, z0.h, z0.h[0]
+udot z0.s, z0.h, z0.h
+udot z0.s, z0.h, z0.h[0]
+sqcvtn z0.h, { z0.s, z1.s }
+sqcvtun z0.h, { z0.s, z1.s }
+uqcvtn z0.h, { z0.s, z1.s }
+whilege { p0.h, p1.h }, x0, x0
+whilegt { p0.h, p1.h }, x0, x0
+whilehi { p0.h, p1.h }, x0, x0
+whilehs { p0.h, p1.h }, x0, x0
+whilele { p0.h, p1.h }, x0, x0
+whilelo { p0.h, p1.h }, x0, x0
+whilels { p0.h, p1.h }, x0, x0
+whilelt { p0.h, p1.h }, x0, x0
>From 7a3f0909a14642277f07f23cde358e52d6e42805 Mon Sep 17 00:00:00 2001
From: nasmnc01 <nashe.mncube at arm.com>
Date: Tue, 28 Apr 2026 16:19:21 +0100
Subject: [PATCH 2/3] SME streaming SVE
This patch adds support for instructions that are modelled
to be sent to CME when in streaming SVE mode. This is modelled
by use of predicates that gate the latency of instructions
that are sent to SME. When in streaming SVE mode these instructions
have 0 cycle latency as latency is considered non-applicable in this case.
By default, when not in streaming SVE, these instructions report their
default latency.
Change-Id: I21e7e049b71b94ef2efc71e6a2ffbc902d5a49fd
---
llvm/lib/Target/AArch64/AArch64Features.td | 3 +
.../lib/Target/AArch64/AArch64SchedC1Ultra.td | 705 +++++++++++-------
.../Target/AArch64/AArch64SchedPredicates.td | 3 +
.../C1Ultra-streaming-cme-instructions.s | 284 +++++++
.../Inputs/streaming-cme-instructions.s | 22 +
5 files changed, 742 insertions(+), 275 deletions(-)
create mode 100644 llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-streaming-cme-instructions.s
create mode 100644 llvm/test/tools/llvm-mca/AArch64/Inputs/streaming-cme-instructions.s
diff --git a/llvm/lib/Target/AArch64/AArch64Features.td b/llvm/lib/Target/AArch64/AArch64Features.td
index 0c3d757da8f6b..e35f30ab879dc 100644
--- a/llvm/lib/Target/AArch64/AArch64Features.td
+++ b/llvm/lib/Target/AArch64/AArch64Features.td
@@ -410,6 +410,9 @@ def FeatureRME : Extension<"rme", "RME", "FEAT_RME",
def FeatureSME : ExtensionWithMArch<"sme", "SME", "FEAT_SME",
"Enable Scalable Matrix Extension (SME)", [FeatureBF16, FeatureFullFP16]>;
+def FeatureMCAStreamingSched : SubtargetFeature<
+ "mca-streaming-sched", "MCAStreamingSched", "true",
+ "Enable streaming-SVE schedule predicates for MC analysis tools">;
def FeatureSMEF64F64 : ExtensionWithMArch<"sme-f64f64", "SMEF64F64", "FEAT_SME_F64F64",
"Enable Scalable Matrix Extension (SME) F64F64 instructions", [FeatureSME]>;
diff --git a/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td b/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td
index 2d675d00efa09..0d0ecd0ac5736 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td
@@ -98,6 +98,27 @@ def : WriteRes<WriteLDHi, []> { let Latency = 4; }
// Define generic 0 micro-op types.
def C1UWrite_0c : SchedWriteRes<[]> { let Latency = 0; }
+def C1UWrite_0c_1C : SchedWriteRes<[C1UUnitCME]> { let Latency = 0; }
+def C1UWrite_0c_1M_1C : SchedWriteRes<[C1UUnitM, C1UUnitCME]> {
+ let Latency = 0;
+}
+def C1UWrite_0c_1SA_1C : SchedWriteRes<[C1UUnitSA, C1UUnitCME]> {
+ let Latency = 0;
+}
+def C1UWrite_0c_1L_1C : SchedWriteRes<[C1UUnitL, C1UUnitCME]> {
+ let Latency = 0;
+}
+def C1UWrite_0c_1V01_1L_1C : SchedWriteRes<[C1UUnitV01, C1UUnitL,
+ C1UUnitCME]> {
+ let Latency = 0;
+}
+def C1UWrite_0c_1I_1L_1C : SchedWriteRes<[C1UUnitI, C1UUnitL, C1UUnitCME]> {
+ let Latency = 0;
+}
+def C1UWrite_0c_1I_1V01_1L_1C : SchedWriteRes<[C1UUnitI, C1UUnitV01,
+ C1UUnitL, C1UUnitCME]> {
+ let Latency = 0;
+}
// Define a small set of generic 1 micro-op types as placeholders.
def C1UWrite_1c_1B : SchedWriteRes<[C1UUnitB]> { let Latency = 1; }
@@ -643,6 +664,22 @@ def C1URd_ZBFMAL : SchedReadAdvance<3, [C1UWr_ZBFMAL]>;
def C1UWr_Pred : SchedWriteRes<[C1UUnitM, C1UUnitM]> { let Latency = 2; }
def C1URd_Pred : SchedReadAdvance<1, [C1UWr_Pred]>;
+class C1UStreamingSchedWrite<SchedWrite StreamingWrite, SchedWrite BaseWrite>
+ : SchedWriteVariant<[
+ SchedVar<SMEStreamingSchedPred, [StreamingWrite]>,
+ SchedVar<SMEMCStreamingSchedPred, [StreamingWrite]>,
+ SchedVar<NoSchedPred, [BaseWrite]>
+ ]>;
+
+class C1USMEStreamingSchedWrite<SchedWrite StreamingWrite,
+ SchedWrite SMEWrite>
+ : SchedWriteVariant<[
+ SchedVar<SMEStreamingSchedPred, [StreamingWrite]>,
+ SchedVar<SMEMCStreamingSchedPred, [StreamingWrite]>,
+ SchedVar<SMESchedPred, [SMEWrite]>,
+ SchedVar<NoSchedPred, [C1UWrite_0c]>
+ ]>;
+
// Predicate controlled types
def C1UWrite_ArithI : SchedWriteVariant<[
SchedVar<IsCheapLSL, [C1UWrite_1c_1I]>,
@@ -706,6 +743,118 @@ def C1UWrite_3or4c_1M0_1M : SchedWriteVariant<[
SchedVar<NeoversePdIsPg, [C1UWrite_4c_1M0_1M]>,
SchedVar<NoSchedPred, [C1UWrite_3c_1M0_1M]>]>;
+def C1UWr_FMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_FMA>;
+def C1UWR_VA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VA>;
+def C1UWR_VDOT_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VDOT>;
+def C1UWR_VMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VMMA>;
+def C1UWR_VMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VMA>;
+def C1UWR_VMAH_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VMAH>;
+def C1UWR_VPA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VPA>;
+def C1UWR_VSA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VSA>;
+def C1UWR_VFCMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VFCMA>;
+def C1UWR_VFMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VFMA>;
+def C1UWR_VBFDOT_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VBFDOT>;
+def C1UWR_VBFMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VBFMMA>;
+def C1UWR_VBFMAL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VBFMAL>;
+def C1UWr_ZA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZA>;
+def C1UWr_ZPA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZPA>;
+def C1UWr_ZSA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZSA>;
+def C1UWr_ZDOTB_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZDOTB>;
+def C1UWr_ZDOTH_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZDOTH>;
+def C1UWr_ZCMABHS_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZCMABHS>;
+def C1UWr_ZMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZMMA>;
+def C1UWr_ZMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZMA>;
+def C1UWr_ZMASQL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZMASQL>;
+def C1UWr_ZFCMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZFCMA>;
+def C1UWr_ZFMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZFMA>;
+def C1UWr_ZFMAL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZFMAL>;
+def C1UWr_ZBFDOT_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZBFDOT>;
+def C1UWr_ZBFMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZBFMMA>;
+def C1UWr_ZBFMAL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZBFMAL>;
+
+def C1UWrite_2c_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_2c_1V>;
+def C1UWrite_2c_1V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_2c_1V0>;
+def C1UWrite_2c_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_2c_1V01>;
+def C1UWrite_2c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_2c_1V0134>;
+def C1UWrite_3c_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_3c_1V>;
+def C1UWrite_3c_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_3c_1V01>;
+def C1UWrite_3c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_3c_1V0134>;
+def C1UWrite_3c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_3c_1V1>;
+def C1UWrite_4c_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V>;
+def C1UWrite_4c_1V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V0>;
+def C1UWrite_4c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V0134>;
+def C1UWrite_4c_1V0134_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V0134_1V>;
+def C1UWrite_4c_1V_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V_1V0134>;
+def C1UWrite_4c_2V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_2V>;
+def C1UWrite_4c_2V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_2V0134>;
+def C1UWrite_5c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_5c_1V1>;
+def C1UWrite_6c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_1V0134>;
+def C1UWrite_6c_1V_2V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_1V_2V0134>;
+def C1UWrite_6c_2V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_2V1>;
+def C1UWrite_6c_2V_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_2V_1V0134>;
+def C1UWrite_6c_3V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_3V>;
+def C1UWrite_6c_6V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_6V0>;
+def C1UWrite_8c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_8c_1V1>;
+def C1UWrite_8c_1V1_4rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_8c_1V1_4rc>;
+def C1UWrite_8c_1V_3V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_8c_1V_3V0134>;
+def C1UWrite_8c_4V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_8c_4V>;
+def C1UWrite_9c_1V1_2rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_9c_1V1_2rc>;
+def C1UWrite_10c_10V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_10c_10V0>;
+def C1UWrite_11c_1V0_4rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_11c_1V0_4rc>;
+def C1UWrite_11c_1V1_4rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_11c_1V1_4rc>;
+def C1UWrite_12c_1V0_8rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_12c_1V0_8rc>;
+def C1UWrite_12c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_12c_1V1>;
+def C1UWrite_12c_1V1_8rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_12c_1V1_8rc>;
+def C1UWrite_12c_7V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_12c_7V0>;
+def C1UWrite_13c_1V0_2rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_13c_1V0_2rc>;
+def C1UWrite_13c_1V1_2rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_13c_1V1_2rc>;
+def C1UWrite_20c_7V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_20c_7V0>;
+
+def C1UWrite_3c_1M0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_3c_1M0>;
+def C1UWrite_3c_1M0_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_3c_1M0_1V>;
+def C1UWrite_5c_1M0_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_5c_1M0_1V>;
+def C1UWrite_5c_1V1_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_5c_1V1_1V01>;
+def C1UWrite_5c_1V_1M0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_5c_1V_1M0>;
+def C1UWrite_7c_1M0_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_7c_1M0_1V0134>;
+def C1UWrite_8c_1M0_1V1_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_8c_1M0_1V1_1V01>;
+
+def C1UWrite_6c_1L_CME : C1UStreamingSchedWrite<C1UWrite_0c_1L_1C, C1UWrite_6c_1L>;
+def C1UWrite_6c_1L_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1L_1C, C1UWrite_6c_1L_1I>;
+def C1UWrite_6c_1L_1M_CME : C1UStreamingSchedWrite<C1UWrite_0c_1L_1C, C1UWrite_6c_1L_1M>;
+def C1UWrite_6c_2L_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1L_1C, C1UWrite_6c_2L_1I>;
+def C1UWrite_7c_1L_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1L_1C, C1UWrite_7c_1L_1I>;
+def C1UWrite_8c_2L_2V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C, C1UWrite_8c_2L_2V>;
+def C1UWrite_8c_3L_3V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C, C1UWrite_8c_3L_3V>;
+def C1UWrite_9c_1V01_1L_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C, C1UWrite_9c_1V01_1L>;
+def C1UWrite_9c_2L_2V_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1V01_1L_1C, C1UWrite_9c_2L_2V_1I>;
+def C1UWrite_9c_3L_3V_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1V01_1L_1C, C1UWrite_9c_3L_3V_1I>;
+def C1UWrite_10c_4L_8V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C, C1UWrite_10c_4L_8V>;
+def C1UWrite_11c_4L_8V_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1V01_1L_1C, C1UWrite_11c_4L_8V_1I>;
+
+def C1UWrite_LdrQ_CME : SchedWriteVariant<[
+ SchedVar<FPIsQForm, [C1UWrite_7c_1L_1I_CME]>,
+ SchedVar<NoSchedPred, [C1UWrite_6c_1L_CME]>]>;
+
+def C1UWrite_1c_1SA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_1c_1SA>;
+def C1UWrite_2c_1SA_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_2c_1SA_1V01>;
+def C1UWrite_2c_1SA_1V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_2c_1SA_1V01_1I>;
+def C1UWrite_2or4c_1SA_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_2or4c_1SA_1V01>;
+def C1UWrite_2or4c_3SA_6V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_2or4c_3SA_6V01>;
+def C1UWrite_2c_2SA_2V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_2c_2SA_2V01>;
+def C1UWrite_4c_2SA_2V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_4c_2SA_2V01>;
+def C1UWrite_4c_2SA_2V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_4c_2SA_2V01_1I>;
+def C1UWrite_4or6c_3SA_3V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_4or6c_3SA_3V01>;
+def C1UWrite_5c_3SA_3V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_5c_3SA_3V01>;
+def C1UWrite_5c_3SA_3V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_5c_3SA_3V01_1I>;
+def C1UWrite_5or7c_3SA_6V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_5or7c_3SA_6V01>;
+def C1UWrite_5or7c_5SA_5V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_5or7c_5SA_5V01>;
+def C1UWrite_7c_4SA_4V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_7c_4SA_4V01>;
+def C1UWrite_7c_4SA_4V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_7c_4SA_4V01_1I>;
+
+def C1UWrite_StrQ_CME : SchedWriteVariant<[
+ SchedVar<FPIsQForm, [C1UWrite_2c_1SA_1V01_1I_CME]>,
+ SchedVar<NoSchedPred, [C1UWrite_2c_1SA_1V01_CME]>]>;
+
// SME predicates
def C1UWrite_1c_1I_Streaming : SchedWriteVariant<[
@@ -744,6 +893,12 @@ def C1UWrite_2c_2M_Streaming : SchedWriteVariant<[
SchedVar<SMESchedPred, [C1UWrite_2c_2M]>,
SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
+def C1UWrite_2c_1V_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_2c_1V>;
+def C1UWrite_3c_1V01_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_3c_1V01>;
+def C1UWrite_4c_1V_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V>;
+def C1UWrite_2c_1M_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_2c_1M>;
+def C1UWrite_2c_2M_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_2c_2M>;
+
// Miscellaneous
// -----------------------------------------------------------------------------
@@ -974,37 +1129,37 @@ def : InstRW<[C1UWrite_1c_1SA_1D], (instrs STGi, ST2Gi, STZGi,
// FP min/max
// FP negate
// FP select
-def : SchedAlias<WriteF, C1UWrite_2c_1V>;
+def : SchedAlias<WriteF, C1UWrite_2c_1V_CME>;
// FP compare
-def : SchedAlias<WriteFCmp, C1UWrite_2c_1V01>;
+def : SchedAlias<WriteFCmp, C1UWrite_2c_1V01_CME>;
// FP divide
-def : SchedAlias<WriteFDiv, C1UWrite_5c_1V1>;
+def : SchedAlias<WriteFDiv, C1UWrite_5c_1V1_CME>;
// FP divide, H-form
-def : InstRW<[C1UWrite_5c_1V1], (instrs FDIVHrr)>;
+def : InstRW<[C1UWrite_5c_1V1_CME], (instrs FDIVHrr)>;
// FP divide, S-form
-def : InstRW<[C1UWrite_8c_1V1], (instrs FDIVSrr)>;
+def : InstRW<[C1UWrite_8c_1V1_CME], (instrs FDIVSrr)>;
// FP divide, D-form
-def : InstRW<[C1UWrite_12c_1V1], (instrs FDIVDrr)>;
+def : InstRW<[C1UWrite_12c_1V1_CME], (instrs FDIVDrr)>;
// FP square root, H-form
-def : InstRW<[C1UWrite_5c_1V1], (instrs FSQRTHr)>;
+def : InstRW<[C1UWrite_5c_1V1_CME], (instrs FSQRTHr)>;
// FP square root, S-form
-def : InstRW<[C1UWrite_8c_1V1], (instrs FSQRTSr)>;
+def : InstRW<[C1UWrite_8c_1V1_CME], (instrs FSQRTSr)>;
// FP square root, D-form
-def : InstRW<[C1UWrite_12c_1V1], (instrs FSQRTDr)>;
+def : InstRW<[C1UWrite_12c_1V1_CME], (instrs FSQRTDr)>;
// FP multiply
def : WriteRes<WriteFMul, [C1UUnitV]> { let Latency = 3; }
// FP multiply accumulate
-def : InstRW<[C1UWr_FMA, ReadDefault, ReadDefault, C1URd_FMA],
+def : InstRW<[C1UWr_FMA_CME, ReadDefault, ReadDefault, C1URd_FMA],
(instregex "^FN?M(ADD|SUB)[HSD]rrr$")>;
// FP round to integral
-def : InstRW<[C1UWrite_2c_1V0134], (instregex "^FRINT[AIMNPXZ][HSD]r$",
+def : InstRW<[C1UWrite_2c_1V0134_CME], (instregex "^FRINT[AIMNPXZ][HSD]r$",
"^FRINT(32|64)[XZ][SD]r$")>;
@@ -1012,49 +1167,49 @@ def : InstRW<[C1UWrite_2c_1V0134], (instregex "^FRINT[AIMNPXZ][HSD]r$",
// -----------------------------------------------------------------------------
// FP convert, from gen to vec reg
-def : InstRW<[C1UWrite_3c_1M0], (instregex "^[SU]CVTF[SU][WX][HSD]ri$")>;
+def : InstRW<[C1UWrite_3c_1M0_CME], (instregex "^[SU]CVTF[SU][WX][HSD]ri$")>;
// FP convert, from vec to gen reg
-def : InstRW<[C1UWrite_3c_1V01],
+def : InstRW<[C1UWrite_3c_1V01_CME],
(instregex "^FCVT[AMNPZ][SU][SU][WX][HSD]ri?$")>;
// FP convert, Javascript from vec to gen reg
-def : SchedAlias<WriteFCvt, C1UWrite_3c_1V01>;
+def : SchedAlias<WriteFCvt, C1UWrite_3c_1V01_CME>;
// FP convert, from vec to vec reg
-def : InstRW<[C1UWrite_3c_1V0134], (instrs FCVTSHr, FCVTDHr, FCVTHSr, FCVTDSr,
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instrs FCVTSHr, FCVTDHr, FCVTHSr, FCVTDSr,
FCVTHDr, FCVTSDr, FCVTXNv1i64)>;
// FP move, immed
// FP move, register
-def : SchedAlias<WriteFImm, C1UWrite_2c_1V>;
+def : SchedAlias<WriteFImm, C1UWrite_2c_1V_CME>;
// FP transfer, from gen to low half of vec reg
-def : InstRW<[C1UWrite_3c_1M0],
+def : InstRW<[C1UWrite_3c_1M0_CME],
(instrs FMOVWHr, FMOVXHr, FMOVWSr, FMOVXDr)>;
// FP transfer, from gen to high half of vec reg
-def : InstRW<[C1UWrite_5c_1M0_1V], (instrs FMOVXDHighr)>;
+def : InstRW<[C1UWrite_5c_1M0_1V_CME], (instrs FMOVXDHighr)>;
// FP transfer, from vec to gen reg
-def : SchedAlias<WriteFCopy, C1UWrite_2c_1V01>;
+def : SchedAlias<WriteFCopy, C1UWrite_2c_1V01_CME>;
// FP load instructions
// -----------------------------------------------------------------------------
// Load vector reg, literal, S/D/Q forms
-def : InstRW<[C1UWrite_7c_1L_1I], (instregex "^LDR[SDQ]l$")>;
+def : InstRW<[C1UWrite_7c_1L_1I_CME], (instregex "^LDR[SDQ]l$")>;
// Load vector reg, unscaled immed
-def : InstRW<[C1UWrite_6c_1L], (instregex "^LDUR[BHSDQ]i$")>;
+def : InstRW<[C1UWrite_6c_1L_CME], (instregex "^LDUR[BHSDQ]i$")>;
// Load vector reg, immed post-index
// Load vector reg, immed pre-index
-def : InstRW<[WriteAdr, C1UWrite_6c_1L_1I],
+def : InstRW<[WriteAdr, C1UWrite_6c_1L_1I_CME],
(instregex "^LDR[BHSDQ](pre|post)$")>;
// Load vector reg, unsigned immed
-def : InstRW<[C1UWrite_6c_1L], (instregex "^LDR[BHSDQ]ui$")>;
+def : InstRW<[C1UWrite_6c_1L_CME], (instregex "^LDR[BHSDQ]ui$")>;
// Load vector reg, register offset, basic
// Load vector reg, register offset, scale, S/D-form
@@ -1062,20 +1217,20 @@ def : InstRW<[C1UWrite_6c_1L], (instregex "^LDR[BHSDQ]ui$")>;
// Load vector reg, register offset, extend
// Load vector reg, register offset, extend, scale, S/D-form
// Load vector reg, register offset, extend, scale, H/Q-form
-def : InstRW<[C1UWrite_LdrQ, ReadAdrBase], (instregex "^LDR[BHSDQ]ro[WX]$")>;
+def : InstRW<[C1UWrite_LdrQ_CME, ReadAdrBase], (instregex "^LDR[BHSDQ]ro[WX]$")>;
// Load vector pair, immed offset, S/D-form
// Load vector pair, immed offset, Q-form
-def : InstRW<[C1UWrite_6c_1L, WriteLDHi], (instregex "^LDN?P[SDQ]i$")>;
+def : InstRW<[C1UWrite_6c_1L_CME, WriteLDHi], (instregex "^LDN?P[SDQ]i$")>;
// Load vector pair, immed post-index, S/D-form
// Load vector pair, immed pre-index, S/D-form
-def : InstRW<[WriteAdr, C1UWrite_6c_1L_1I, WriteLDHi],
+def : InstRW<[WriteAdr, C1UWrite_6c_1L_1I_CME, WriteLDHi],
(instregex "^LDP[SD](pre|post)$")>;
// Load vector pair, immed post-index, Q-form
// Load vector pair, immed pre-index, Q-form
-def : InstRW<[WriteAdr, C1UWrite_6c_2L_1I, WriteLDHi],
+def : InstRW<[WriteAdr, C1UWrite_6c_2L_1I_CME, WriteLDHi],
(instregex "^LDPQ(pre|post)$")>;
// FP store instructions
@@ -1083,18 +1238,18 @@ def : InstRW<[WriteAdr, C1UWrite_6c_2L_1I, WriteLDHi],
// Store vector reg, unscaled immed, B/H/S/D-form
// Store vector reg, unscaled immed, Q-form
-def : InstRW<[C1UWrite_2c_1SA_1V01], (instregex "^STUR[BHSDQ]i$")>;
+def : InstRW<[C1UWrite_2c_1SA_1V01_CME], (instregex "^STUR[BHSDQ]i$")>;
// Store vector reg, immed post-index, B/H/S/D-form
// Store vector reg, immed post-index, Q-form
// Store vector reg, immed pre-index, B/H/S/D-form
// Store vector reg, immed pre-index, Q-form
-def : InstRW<[WriteAdr, C1UWrite_2c_1SA_1V01_1I],
+def : InstRW<[WriteAdr, C1UWrite_2c_1SA_1V01_1I_CME],
(instregex "^STR[BHSDQ](pre|post)$")>;
// Store vector reg, unsigned immed, B/H/S/D-form
// Store vector reg, unsigned immed, Q-form
-def : InstRW<[C1UWrite_2c_1SA_1V01], (instregex "^STR[BHSDQ]ui$")>;
+def : InstRW<[C1UWrite_2c_1SA_1V01_CME], (instregex "^STR[BHSDQ]ui$")>;
// Store vector reg, register offset, basic, B/H/S/D-form
// Store vector reg, register offset, basic, Q-form
@@ -1106,26 +1261,26 @@ def : InstRW<[C1UWrite_2c_1SA_1V01], (instregex "^STR[BHSDQ]ui$")>;
// Store vector reg, register offset, extend, scale, H-form
// Store vector reg, register offset, extend, scale, S/D-form
// Store vector reg, register offset, extend, scale, Q-form
-def : InstRW<[C1UWrite_StrQ, ReadAdrBase],
+def : InstRW<[C1UWrite_StrQ_CME, ReadAdrBase],
(instregex "^STR[BHSDQ]ro[WX]$")>;
// Store vector pair, immed offset, S-form
// Store vector pair, immed offset, D-form
-def : InstRW<[C1UWrite_2c_1SA_1V01], (instregex "^STN?P[SD]i$")>;
+def : InstRW<[C1UWrite_2c_1SA_1V01_CME], (instregex "^STN?P[SD]i$")>;
// Store vector pair, immed offset, Q-form
-def : InstRW<[C1UWrite_2c_2SA_2V01], (instregex "^STN?PQi$")>;
+def : InstRW<[C1UWrite_2c_2SA_2V01_CME], (instregex "^STN?PQi$")>;
// Store vector pair, immed post-index, S-form
// Store vector pair, immed post-index, D-form
// Store vector pair, immed pre-index, S-form
// Store vector pair, immed pre-index, D-form
-def : InstRW<[WriteAdr, C1UWrite_2c_1SA_1V01_1I],
+def : InstRW<[WriteAdr, C1UWrite_2c_1SA_1V01_1I_CME],
(instregex "^STP[SD](pre|post)$")>;
// Store vector pair, immed post-index, Q-form
// Store vector pair, immed pre-index, Q-form
-def : InstRW<[C1UWrite_2c_2SA_2V01], (instregex "^STPQ(post|pre)")>;
+def : InstRW<[C1UWrite_2c_2SA_2V01_CME], (instregex "^STPQ(post|pre)")>;
// ASIMD integer instructions
// -----------------------------------------------------------------------------
@@ -1137,82 +1292,82 @@ def : InstRW<[C1UWrite_2c_2SA_2V01], (instregex "^STPQ(post|pre)")>;
// ASIMD arith, pair-wise
// ASIMD compare
// ASIMD logical
-def : SchedAlias<WriteVd, C1UWrite_2c_1V>;
-def : SchedAlias<WriteVq, C1UWrite_2c_1V>;
+def : SchedAlias<WriteVd, C1UWrite_2c_1V_CME>;
+def : SchedAlias<WriteVq, C1UWrite_2c_1V_CME>;
// ASIMD absolute diff accum
// ASIMD absolute diff accum long
-def : InstRW<[C1UWR_VA, C1URd_VA, C1URd_VA], (instregex "^[SU]ABAL?v")>;
+def : InstRW<[C1UWR_VA_CME, C1URd_VA, C1URd_VA], (instregex "^[SU]ABAL?v")>;
// ASIMD arith, reduce, 4H/4S
-def : InstRW<[C1UWrite_2c_1V0134], (instregex "^(ADDV|[SU]ADDLV)v4(i16|i32)v$")>;
+def : InstRW<[C1UWrite_2c_1V0134_CME], (instregex "^(ADDV|[SU]ADDLV)v4(i16|i32)v$")>;
// ASIMD arith, reduce, 8B/8H
-def : InstRW<[C1UWrite_4c_1V0134],
+def : InstRW<[C1UWrite_4c_1V0134_CME],
(instregex "^(ADDV|[SU]ADDLV)v8(i8|i16)v$")>;
// ASIMD arith, reduce, 16B
-def : InstRW<[C1UWrite_4c_2V0134], (instregex "^(ADDV|[SU]ADDLV)v16i8v$")>;
+def : InstRW<[C1UWrite_4c_2V0134_CME], (instregex "^(ADDV|[SU]ADDLV)v16i8v$")>;
// ASIMD dot product
// ASIMD dot product using signed and unsigned integers
-def : InstRW<[C1UWR_VDOT, C1URd_VDOT],
+def : InstRW<[C1UWR_VDOT_CME, C1URd_VDOT],
(instregex "^([SU]|SU|US)DOT(lane)?(v8|v16)i8$")>;
// ASIMD matrix multiply-accumulate
-def : InstRW<[C1UWR_VMMA, C1URd_VMMA], (instrs SMMLA, UMMLA, USMMLA)>;
+def : InstRW<[C1UWR_VMMA_CME, C1URd_VMMA], (instrs SMMLA, UMMLA, USMMLA)>;
// ASIMD max/min, basic and pair-wise
-def : InstRW<[C1UWrite_2c_1V], (instregex "^[SU](MAX|MIN)P?(v16|v8)i8")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^[SU](MAX|MIN)P?(v16|v8)i8")>;
// ASIMD max/min, reduce, 4H/4S
-def : InstRW<[C1UWrite_2c_1V0134], (instregex "^[SU](MAX|MIN)Vv4i16v$",
+def : InstRW<[C1UWrite_2c_1V0134_CME], (instregex "^[SU](MAX|MIN)Vv4i16v$",
"^[SU](MAX|MIN)Vv4i32v$")>;
// ASIMD max/min, reduce, 8B/8H
-def : InstRW<[C1UWrite_4c_1V0134_1V], (instregex "^[SU](MAX|MIN)Vv8i8v$",
+def : InstRW<[C1UWrite_4c_1V0134_1V_CME], (instregex "^[SU](MAX|MIN)Vv8i8v$",
"^[SU](MAX|MIN)Vv8i16v$")>;
// ASIMD max/min, reduce, 16B
-def : InstRW<[C1UWrite_4c_2V0134], (instregex "[SU](MAX|MIN)Vv16i8v")>;
+def : InstRW<[C1UWrite_4c_2V0134_CME], (instregex "[SU](MAX|MIN)Vv16i8v")>;
// ASIMD multiply
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^MULv", "^SQ(R)?DMULHv")>;
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^MULv", "^SQ(R)?DMULHv")>;
// ASIMD multiply accumulate
// ASIMD multiply accumulate long
-def : InstRW<[C1UWR_VMA, C1URd_VMA, C1URd_VMA], (instregex "^MLAv", "^MLSv",
+def : InstRW<[C1UWR_VMA_CME, C1URd_VMA, C1URd_VMA], (instregex "^MLAv", "^MLSv",
"^[SU]MLALv", "^[SU]MLSLv")>;
// ASIMD multiply accumulate high
-def : InstRW<[C1UWR_VMAH, C1URd_VMAH, C1URd_VMAH], (instregex "^SQRDMLAHv", "^SQRDMLSHv")>;
+def : InstRW<[C1UWR_VMAH_CME, C1URd_VMAH, C1URd_VMAH], (instregex "^SQRDMLAHv", "^SQRDMLSHv")>;
// ASIMD multiply accumulate saturating long
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^SQDML[AS]L[iv]")>;
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^SQDML[AS]L[iv]")>;
// ASIMD multiply/multiply long (8x8) polynomial, D-form
// ASIMD multiply/multiply long (8x8) polynomial, Q-form
-def : InstRW<[C1UWrite_2c_1V0134], (instregex "^PMULL?(v8i8|v16i8)$")>;
+def : InstRW<[C1UWrite_2c_1V0134_CME], (instregex "^PMULL?(v8i8|v16i8)$")>;
// ASIMD multiply long
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^[SU]MULLv", "^SQDMULL[iv]")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^[SU]MULLv", "^SQDMULL[iv]")>;
// ASIMD pairwise add and accumulate long
-def : InstRW<[C1UWR_VPA, C1URd_VPA, C1URd_VPA], (instregex "^[SU]ADALPv")>;
+def : InstRW<[C1UWR_VPA_CME, C1URd_VPA, C1URd_VPA], (instregex "^[SU]ADALPv")>;
// ASIMD shift accumulate
-def : InstRW<[C1UWR_VSA, C1URd_VSA], (instregex "^[SU]SRA[dv]", "^[SU]RSRA[dv]")>;
+def : InstRW<[C1UWR_VSA_CME, C1URd_VSA], (instregex "^[SU]SRA[dv]", "^[SU]RSRA[dv]")>;
// ASIMD shift by immed, basic
-def : InstRW<[C1UWrite_2c_1V], (instregex "^SHL[dv]", "^SHLLv", "^SHRNv",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^SHL[dv]", "^SHLLv", "^SHRNv",
"^SSHLLv", "^SSHR[dv]", "^USHLLv",
"^USHR[dv]")>;
// ASIMD shift by immed and insert, basic
-def : InstRW<[C1UWrite_2c_1V], (instregex "^SLI[dv]", "^SRI[dv]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^SLI[dv]", "^SRI[dv]")>;
// ASIMD shift by immed, complex
// ASIMD shift by register, complex
-def : InstRW<[C1UWrite_4c_1V],
+def : InstRW<[C1UWrite_4c_1V_CME],
(instregex "^RSHRNv", "^SQRSHRU?N[bhsv]", "^(SQSHLU?|UQSHL)[bhsd]$",
"^(SQSHLU?|UQSHL)(v8i8|v16i8|v4i16|v8i16|v2i32|v4i32|v2i64)_shift$",
"^SQSHRU?N[bhsv]", "^SRSHR[dv]", "^UQRSHRN[bhsv]",
@@ -1221,7 +1376,7 @@ def : InstRW<[C1UWrite_4c_1V],
"^[SU]QSHL(v1i8|v1i16|v1i32|v1i64|v8i8|v16i8|v4i16|v8i16|v2i32|v4i32|v2i64)$")>;
// ASIMD shift by register, basic
-def : InstRW<[C1UWrite_2c_1V], (instregex "^[SU]SHLv")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^[SU]SHLv")>;
// ASIMD floating-point instructions
// -----------------------------------------------------------------------------
@@ -1235,11 +1390,11 @@ def : InstRW<[C1UWrite_2c_1V], (instregex "^[SU]SHLv")>;
// ASIMD FP complex add
// ASIMD FP max/min, pairwise
-def : InstRW<[C1UWrite_3c_1V], (instregex "^FCADDv",
+def : InstRW<[C1UWrite_3c_1V_CME], (instregex "^FCADDv",
"^(FMAXP|FMAXNMP|FMINP|FMINNMP)v")>;
// ASIMD FP complex multiply add
-def : InstRW<[C1UWR_VFCMA, C1URd_VFCMA, C1URd_VFCMA], (instregex "^FCMLAv")>;
+def : InstRW<[C1UWR_VFCMA_CME, C1URd_VFCMA, C1URd_VFCMA], (instregex "^FCMLAv")>;
// ASIMD FP convert, long (F16 to F32)
// ASIMD FP convert, long (F32 to F64)
@@ -1248,7 +1403,7 @@ def : InstRW<[C1UWR_VFCMA, C1URd_VFCMA, C1URd_VFCMA], (instregex "^FCMLAv")>;
// ASIMD FP convert, other, D-form F32 and Q-form F64
// ASIMD FP convert, other, D-form F16 and Q-form F32
// ASIMD FP convert, other, Q-form F16
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FCVTL(v4|v8)(i16|i32)",
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FCVTL(v4|v8)(i16|i32)",
"^FCVTLv2i32",
"^FCVTN(v4|v8)i16",
"^FCVTN(v2|v4)i32",
@@ -1279,80 +1434,80 @@ def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FCVTL(v4|v8)(i16|i32)",
"^[SU]CVTFh$")>;
// ASIMD FP divide, D-form, F16
-def : InstRW<[C1UWrite_8c_1V1_4rc], (instrs FDIVv4f16)>;
+def : InstRW<[C1UWrite_8c_1V1_4rc_CME], (instrs FDIVv4f16)>;
// ASIMD FP divide, D-form, F32
-def : InstRW<[C1UWrite_9c_1V1_2rc], (instrs FDIVv2f32)>;
+def : InstRW<[C1UWrite_9c_1V1_2rc_CME], (instrs FDIVv2f32)>;
// ASIMD FP divide, Q-form, F16
-def : InstRW<[C1UWrite_12c_1V1_8rc], (instrs FDIVv8f16)>;
+def : InstRW<[C1UWrite_12c_1V1_8rc_CME], (instrs FDIVv8f16)>;
// ASIMD FP divide, Q-form, F32
-def : InstRW<[C1UWrite_11c_1V1_4rc], (instrs FDIVv4f32)>;
+def : InstRW<[C1UWrite_11c_1V1_4rc_CME], (instrs FDIVv4f32)>;
// ASIMD FP divide, Q-form, F64
-def : InstRW<[C1UWrite_13c_1V1_2rc], (instrs FDIVv2f64)>;
+def : InstRW<[C1UWrite_13c_1V1_2rc_CME], (instrs FDIVv2f64)>;
// ASIMD FP max/min, reduce, F32 and D-form F16
-def : InstRW<[C1UWrite_4c_2V], (instregex "^(FMAX|FMIN)(NM)?Vv4(i16|i32)v$")>;
+def : InstRW<[C1UWrite_4c_2V_CME], (instregex "^(FMAX|FMIN)(NM)?Vv4(i16|i32)v$")>;
// ASIMD FP max/min, reduce, Q-form F16
-def : InstRW<[C1UWrite_6c_3V], (instregex "^(FMAX|FMIN)(NM)?Vv8i16v$")>;
+def : InstRW<[C1UWrite_6c_3V_CME], (instregex "^(FMAX|FMIN)(NM)?Vv8i16v$")>;
// ASIMD FP multiply
-def : InstRW<[C1UWrite_3c_1V], (instregex "^FMULv", "^FMULXv")>;
-def : InstRW<[C1UWrite_3c_1V], (instrs FMULX16, FMULX32, FMULX64)>;
+def : InstRW<[C1UWrite_3c_1V_CME], (instregex "^FMULv", "^FMULXv")>;
+def : InstRW<[C1UWrite_3c_1V_CME], (instrs FMULX16, FMULX32, FMULX64)>;
// ASIMD FP multiply accumulate
// ASIMD FP multiply accumulate long
-def : InstRW<[C1UWR_VFMA, C1URd_VFMA, C1URd_VFMA], (instregex "^FMLAv", "^FMLSv",
+def : InstRW<[C1UWR_VFMA_CME, C1URd_VFMA, C1URd_VFMA], (instregex "^FMLAv", "^FMLSv",
"^FML[AS]L2?(lane)?v")>;
// ASIMD FP round, D-form F32 and Q-form F64
-def : InstRW<[C1UWrite_3c_1V0134],
+def : InstRW<[C1UWrite_3c_1V0134_CME],
(instregex "^FRINT[AIMNPXZ]v2f(32|64)$",
"^FRINT(32|64)[XZ]v2f(32|64)$")>;
// ASIMD FP round, D-form F16 and Q-form F32
-def : InstRW<[C1UWrite_3c_1V0134],
+def : InstRW<[C1UWrite_3c_1V0134_CME],
(instregex "^FRINT[AIMNPXZ]v4f(16|32)$",
"^FRINT(32|64)[XZ]v4f32$")>;
// ASIMD FP round, Q-form F16
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FRINT[AIMNPXZ]v8f16$")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FRINT[AIMNPXZ]v8f16$")>;
// ASIMD FP square root, D-form, F16
-def : InstRW<[C1UWrite_8c_1V1_4rc], (instrs FSQRTv4f16)>;
+def : InstRW<[C1UWrite_8c_1V1_4rc_CME], (instrs FSQRTv4f16)>;
// ASIMD FP square root, D-form, F32
-def : InstRW<[C1UWrite_9c_1V1_2rc], (instrs FSQRTv2f32)>;
+def : InstRW<[C1UWrite_9c_1V1_2rc_CME], (instrs FSQRTv2f32)>;
// ASIMD FP square root, Q-form, F16
-def : InstRW<[C1UWrite_12c_1V1_8rc], (instrs FSQRTv8f16)>;
+def : InstRW<[C1UWrite_12c_1V1_8rc_CME], (instrs FSQRTv8f16)>;
// ASIMD FP square root, Q-form, F32
-def : InstRW<[C1UWrite_11c_1V1_4rc], (instrs FSQRTv4f32)>;
+def : InstRW<[C1UWrite_11c_1V1_4rc_CME], (instrs FSQRTv4f32)>;
// ASIMD FP square root, Q-form, F64
-def : InstRW<[C1UWrite_13c_1V1_2rc], (instrs FSQRTv2f64)>;
+def : InstRW<[C1UWrite_13c_1V1_2rc_CME], (instrs FSQRTv2f64)>;
// ASIMD BFloat16 (BF16) instructions
// -----------------------------------------------------------------------------
// ASIMD convert, F32 to BF16
// Scalar convert, F32 to BF16
-def : InstRW<[C1UWrite_3c_1V0134], (instrs BFCVTN, BFCVTN2, BFCVT)>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instrs BFCVTN, BFCVTN2, BFCVT)>;
// ASIMD dot product
-def : InstRW<[C1UWR_VBFDOT, C1URd_VBFDOT, C1URd_VBFDOT],
+def : InstRW<[C1UWR_VBFDOT_CME, C1URd_VBFDOT, C1URd_VBFDOT],
(instregex "^BFDOTv[48]bf16$",
"^BF16DOTlanev[48]bf16$")>;
// ASIMD matrix multiply accumulate
-def : InstRW<[C1UWR_VBFMMA, C1URd_VBFMMA, C1URd_VBFMMA], (instrs BFMMLA)>;
+def : InstRW<[C1UWR_VBFMMA_CME, C1URd_VBFMMA, C1URd_VBFMMA], (instrs BFMMLA)>;
// ASIMD multiply accumulate long
-def : InstRW<[C1UWR_VBFMAL, C1URd_VBFMAL, C1URd_VBFMAL], (instrs BFMLALB, BFMLALBIdx, BFMLALT,
+def : InstRW<[C1UWR_VBFMAL_CME, C1URd_VBFMAL, C1URd_VBFMAL], (instrs BFMLALB, BFMLALBIdx, BFMLALT,
BFMLALTIdx)>;
// ASIMD miscellaneous instructions
@@ -1777,20 +1932,20 @@ def : InstRW<[C1UWrite_2c_1M], (instregex "^(ZIP|UZP)[12]_PPP_[BHSD]")>;
// -----------------------------------------------------------------------------
// Arithmetic, absolute diff
-def : InstRW<[C1UWrite_2c_1V], (instregex "^[SU]ABD_ZPmZ_[BHSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^[SU]ABD_ZPmZ_[BHSD]",
"^[SU]ABD_ZPZZ_[BHSD]")>;
// Arithmetic, absolute diff accum
-def : InstRW<[C1UWr_ZA, C1URd_ZA, C1URd_ZA], (instregex "^[SU]ABA_ZZZ_[BHSD]")>;
+def : InstRW<[C1UWr_ZA_CME, C1URd_ZA, C1URd_ZA], (instregex "^[SU]ABA_ZZZ_[BHSD]")>;
// Arithmetic, absolute diff accum long
-def : InstRW<[C1UWr_ZA, C1URd_ZA, C1URd_ZA], (instregex "^[SU]ABAL[TB]_ZZZ_[HSD]")>;
+def : InstRW<[C1UWr_ZA_CME, C1URd_ZA, C1URd_ZA], (instregex "^[SU]ABAL[TB]_ZZZ_[HSD]")>;
// Arithmetic, absolute diff long
-def : InstRW<[C1UWrite_2c_1V], (instregex "^[SU]ABDL[TB]_ZZZ_[HSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^[SU]ABDL[TB]_ZZZ_[HSD]")>;
// Arithmetic, basic
-def : InstRW<[C1UWrite_2c_1V],
+def : InstRW<[C1UWrite_2c_1V_CME],
(instregex "^(ABS|ADD|CNOT|NEG|SUB|SUBR)_ZPmZ_[BHSD]",
"^(ADD|SUB)_ZZZ_[BHSD]",
"^(ADD|SUB|SUBR)_ZPZZ_[BHSD]",
@@ -1803,7 +1958,7 @@ def : InstRW<[C1UWrite_2c_1V],
"^SSUBL(BT|TB)_ZZZ_[HSD]")>;
// Arithmetic, complex
-def : InstRW<[C1UWrite_2c_1V],
+def : InstRW<[C1UWrite_2c_1V_CME],
(instregex "^R?(ADD|SUB)HN[BT]_ZZZ_[BHS]",
"^SQ(ABS|ADD|NEG|SUB|SUBR)_ZPmZ_[BHSD]",
"^[SU]Q(ADD|SUB)_ZZZ_[BHSD]",
@@ -1812,17 +1967,17 @@ def : InstRW<[C1UWrite_2c_1V],
"^(UQSUB|UQSUBR)_ZPmZ_[BHSD]")>;
// Arithmetic, large integer
-def : InstRW<[C1UWrite_2c_1V], (instregex "^(AD|SB)CL[BT]_ZZZ_[SD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^(AD|SB)CL[BT]_ZZZ_[SD]")>;
// Arithmetic, pairwise add
-def : InstRW<[C1UWrite_2c_1V], (instregex "^ADDP_ZPmZ_[BHSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^ADDP_ZPmZ_[BHSD]")>;
// Arithmetic, pairwise add and accum long
-def : InstRW<[C1UWr_ZPA, ReadDefault, C1URd_ZPA, C1URd_ZPA],
+def : InstRW<[C1UWr_ZPA_CME, ReadDefault, C1URd_ZPA, C1URd_ZPA],
(instregex "^[SU]ADALP_ZPmZ_[HSD]")>;
// Arithmetic, shift
-def : InstRW<[C1UWrite_2c_1V],
+def : InstRW<[C1UWrite_2c_1V_CME],
(instregex "^(ASR|LSL|LSR)_WIDE_ZPmZ_[BHS]",
"^(ASR|LSL|LSR)_WIDE_ZZZ_[BHS]",
"^(ASR|LSL|LSR)_ZPmI_[BHSD]",
@@ -1832,17 +1987,17 @@ def : InstRW<[C1UWrite_2c_1V],
"^(ASRR|LSLR|LSRR)_ZPmZ_[BHSD]")>;
// Arithmetic, shift and accumulate
-def : InstRW<[C1UWr_ZSA, C1URd_ZSA], (instregex "^[SU]R?SRA_ZZI_[BHSD]")>;
+def : InstRW<[C1UWr_ZSA_CME, C1URd_ZSA], (instregex "^[SU]R?SRA_ZZI_[BHSD]")>;
// Arithmetic, shift by immediate
-def : InstRW<[C1UWrite_2c_1V], (instregex "^SHRN[BT]_ZZI_[BHS]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^SHRN[BT]_ZZI_[BHS]",
"^[SU]SHLL[BT]_ZZI_[HSD]")>;
// Arithmetic, shift by immediate and insert
-def : InstRW<[C1UWrite_2c_1V], (instregex "^(SLI|SRI)_ZZI_[BHSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^(SLI|SRI)_ZZI_[BHSD]")>;
// Arithmetic, shift complex
-def : InstRW<[C1UWrite_4c_1V],
+def : InstRW<[C1UWrite_4c_1V_CME],
(instregex "^(SQ)?RSHRU?N[BT]_ZZI_[BHS]",
"^(SQRSHL|SQRSHLR|SQSHL|SQSHLR|UQRSHL|UQRSHLR|UQSHL|UQSHLR)_ZPmZ_[BHSD]",
"^[SU]QR?SHL_ZPZZ_[BHSD]",
@@ -1851,129 +2006,129 @@ def : InstRW<[C1UWrite_4c_1V],
"^UQR?SHRN[BT]_ZZI_[BHS]")>;
// Arithmetic, shift right for divide
-def : InstRW<[C1UWrite_4c_1V], (instregex "^ASRD_(ZPmI|ZPZI)_[BHSD]")>;
+def : InstRW<[C1UWrite_4c_1V_CME], (instregex "^ASRD_(ZPmI|ZPZI)_[BHSD]")>;
// Arithmetic, shift rounding
-def : InstRW<[C1UWrite_4c_1V], (instregex "^[SU]RSHLR?_ZPmZ_[BHSD]",
+def : InstRW<[C1UWrite_4c_1V_CME], (instregex "^[SU]RSHLR?_ZPmZ_[BHSD]",
"^[SU]RSHL_ZPZZ_[BHSD]",
"^[SU]RSHR_(ZPmI|ZPZI)_[BHSD]")>;
// Bit manipulation
-def : InstRW<[C1UWrite_6c_2V1], (instregex "^(BDEP|BEXT|BGRP)_ZZZ_[BHSD]")>;
+def : InstRW<[C1UWrite_6c_2V1_CME], (instregex "^(BDEP|BEXT|BGRP)_ZZZ_[BHSD]")>;
// Bitwise select
-def : InstRW<[C1UWrite_2c_1V], (instregex "^(BSL|BSL1N|BSL2N|NBSL)_ZZZZ")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^(BSL|BSL1N|BSL2N|NBSL)_ZZZZ")>;
// Count/reverse bits
-def : InstRW<[C1UWrite_2c_1V], (instregex "^(CLS|CLZ|CNT|RBIT)_ZPmZ_[BHSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^(CLS|CLZ|CNT|RBIT)_ZPmZ_[BHSD]")>;
// Broadcast logical bitmask immediate to vector
-def : InstRW<[C1UWrite_2c_1V], (instrs DUPM_ZI)>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instrs DUPM_ZI)>;
// Compare and set flags
-def : InstRW<[C1UWrite_2c_1V0],
+def : InstRW<[C1UWrite_2c_1V0_CME],
(instregex "^CMP(EQ|GE|GT|HI|HS|LE|LO|LS|LT|NE)_PPzZ[IZ]_[BHSD]",
"^CMP(EQ|GE|GT|HI|HS|LE|LO|LS|LT|NE)_WIDE_PPzZZ_[BHS]")>;
// Complex add
-def : InstRW<[C1UWrite_2c_1V], (instregex "^(SQ)?CADD_ZZI_[BHSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^(SQ)?CADD_ZZI_[BHSD]")>;
// Complex dot product 8-bit element
-def : InstRW<[C1UWr_ZDOTB, C1URd_ZDOTB, C1URd_ZDOTB], (instrs CDOT_ZZZ_S, CDOT_ZZZI_S)>;
+def : InstRW<[C1UWr_ZDOTB_CME, C1URd_ZDOTB, C1URd_ZDOTB], (instrs CDOT_ZZZ_S, CDOT_ZZZI_S)>;
// Complex dot product 16-bit element
-def : InstRW<[C1UWr_ZDOTH, C1URd_ZDOTH, C1URd_ZDOTH], (instrs CDOT_ZZZ_D, CDOT_ZZZI_D)>;
+def : InstRW<[C1UWr_ZDOTH_CME, C1URd_ZDOTH, C1URd_ZDOTH], (instrs CDOT_ZZZ_D, CDOT_ZZZI_D)>;
// Complex multiply-add B, H, S, D element size
-def : InstRW<[C1UWr_ZCMABHS, C1URd_ZCMABHS, C1URd_ZCMABHS], (instregex "^CMLA_ZZZ_[BHSD]",
+def : InstRW<[C1UWr_ZCMABHS_CME, C1URd_ZCMABHS, C1URd_ZCMABHS], (instregex "^CMLA_ZZZ_[BHSD]",
"^CMLA_ZZZI_[HS]")>;
// Conditional extract operations, scalar form
-def : InstRW<[C1UWrite_8c_1M0_1V1_1V01], (instregex "^CLAST[AB]_RPZ_[BHSD]")>;
+def : InstRW<[C1UWrite_8c_1M0_1V1_1V01_CME], (instregex "^CLAST[AB]_RPZ_[BHSD]")>;
// Conditional extract operations, SIMD&FP scalar and vector forms
-def : InstRW<[C1UWrite_3c_1V1], (instregex "^CLAST[AB]_[VZ]PZ_[BHSD]",
+def : InstRW<[C1UWrite_3c_1V1_CME], (instregex "^CLAST[AB]_[VZ]PZ_[BHSD]",
"^COMPACT_ZPZ_[SD]",
"^SPLICE_ZPZZ?_[BHSD]")>;
// Convert to floating point, 64b to float or convert to double
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^[SU]CVTF_ZPmZ_Dto[HSD]",
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^[SU]CVTF_ZPmZ_Dto[HSD]",
"^[SU]CVTF_ZPmZ_StoD")>;
// Convert to floating point, 32b to single or half
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^[SU]CVTF_ZPmZ_Sto[HS]")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^[SU]CVTF_ZPmZ_Sto[HS]")>;
// Convert to floating point, 16b to half
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^[SU]CVTF_ZPmZ_HtoH")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^[SU]CVTF_ZPmZ_HtoH")>;
// Copy, scalar
-def : InstRW<[C1UWrite_3c_1M0_1V], (instregex "^CPY_ZPmR_[BHSD]")>;
+def : InstRW<[C1UWrite_3c_1M0_1V_CME], (instregex "^CPY_ZPmR_[BHSD]")>;
// Copy, scalar SIMD&FP or imm
-def : InstRW<[C1UWrite_2c_1V], (instregex "^CPY_ZPm[IV]_[BHSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^CPY_ZPm[IV]_[BHSD]",
"^CPY_ZPzI_[BHSD]")>;
// Divides, 32 bit
-def : InstRW<[C1UWrite_12c_7V0], (instregex "^[SU]DIVR?_ZPmZ_S",
+def : InstRW<[C1UWrite_12c_7V0_CME], (instregex "^[SU]DIVR?_ZPmZ_S",
"^[SU]DIV_ZPZZ_S")>;
// Divides, 64 bit
-def : InstRW<[C1UWrite_20c_7V0], (instregex "^[SU]DIVR?_ZPmZ_D",
+def : InstRW<[C1UWrite_20c_7V0_CME], (instregex "^[SU]DIVR?_ZPmZ_D",
"^[SU]DIV_ZPZZ_D")>;
// Dot product, 8 bit
-def : InstRW<[C1UWr_ZDOTB, C1URd_ZDOTB, C1URd_ZDOTB], (instregex "^[SU]DOT_ZZZI?_BtoS")>;
+def : InstRW<[C1UWr_ZDOTB_CME, C1URd_ZDOTB, C1URd_ZDOTB], (instregex "^[SU]DOT_ZZZI?_BtoS")>;
// Dot product, 8 bit, using signed and unsigned integers
-def : InstRW<[C1UWr_ZDOTB, C1URd_ZDOTB, C1URd_ZDOTB], (instrs SUDOT_ZZZI, USDOT_ZZZI, USDOT_ZZZ)>;
+def : InstRW<[C1UWr_ZDOTB_CME, C1URd_ZDOTB, C1URd_ZDOTB], (instrs SUDOT_ZZZI, USDOT_ZZZI, USDOT_ZZZ)>;
// Dot product, 16 bit
-def : InstRW<[C1UWr_ZDOTH, C1URd_ZDOTH, C1URd_ZDOTB], (instregex "^[SU]DOT_ZZZI?_HtoD")>;
+def : InstRW<[C1UWr_ZDOTH_CME, C1URd_ZDOTH, C1URd_ZDOTB], (instregex "^[SU]DOT_ZZZI?_HtoD")>;
// Duplicate, immediate and indexed form
-def : InstRW<[C1UWrite_2c_1V], (instregex "^DUP_ZI_[BHSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^DUP_ZI_[BHSD]",
"^DUP_ZZI_[BHSDQ]")>;
// Duplicate, scalar form
-def : InstRW<[C1UWrite_3c_1M0], (instregex "^DUP_ZR_[BHSD]")>;
+def : InstRW<[C1UWrite_3c_1M0_CME], (instregex "^DUP_ZR_[BHSD]")>;
// Extend, sign or zero
-def : InstRW<[C1UWrite_2c_1V], (instregex "^[SU]XTB_ZPmZ_[HSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^[SU]XTB_ZPmZ_[HSD]",
"^[SU]XTH_ZPmZ_[SD]",
"^[SU]XTW_ZPmZ_[D]")>;
// Extract
-def : InstRW<[C1UWrite_2c_1V], (instrs EXT_ZZI, EXT_ZZI_CONSTRUCTIVE, EXT_ZZI_B)>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instrs EXT_ZZI, EXT_ZZI_CONSTRUCTIVE, EXT_ZZI_B)>;
// Extract narrow saturating
-def : InstRW<[C1UWrite_4c_1V], (instregex "^[SU]QXTN[BT]_ZZ_[BHS]",
+def : InstRW<[C1UWrite_4c_1V_CME], (instregex "^[SU]QXTN[BT]_ZZ_[BHS]",
"^SQXTUN[BT]_ZZ_[BHS]")>;
// Extract operation, SIMD and FP scalar form
-def : InstRW<[C1UWrite_3c_1V1], (instregex "^LAST[AB]_VPZ_[BHSD]")>;
+def : InstRW<[C1UWrite_3c_1V1_CME], (instregex "^LAST[AB]_VPZ_[BHSD]")>;
// Extract operation, scalar
-def : InstRW<[C1UWrite_5c_1V1_1V01], (instregex "^LAST[AB]_RPZ_[BHSD]")>;
+def : InstRW<[C1UWrite_5c_1V1_1V01_CME], (instregex "^LAST[AB]_RPZ_[BHSD]")>;
// Histogram operations
-def : InstRW<[C1UWrite_2c_1V], (instregex "^HISTCNT_ZPzZZ_[SD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^HISTCNT_ZPzZZ_[SD]",
"^HISTSEG_ZZZ")>;
// Horizontal operations,immediate operands only
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^INDEX_(II)_[BHSD]")>;
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^INDEX_(II)_[BHSD]")>;
// Horizontal operations, D form, scalar, immediate operands/ scalar operands
// only / immediate, scalar operands
-def : InstRW<[C1UWrite_7c_1M0_1V0134], (instregex "^INDEX_(IR|RI|RR)_[BHSD]")>;
+def : InstRW<[C1UWrite_7c_1M0_1V0134_CME], (instregex "^INDEX_(IR|RI|RR)_[BHSD]")>;
// insert operation, SIMD and FP scalar form
-def : InstRW<[C1UWrite_2c_1V], (instregex "^INSR_ZV_[BHSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^INSR_ZV_[BHSD]")>;
// insert operation, scalar
-def : InstRW<[C1UWrite_5c_1V_1M0], (instregex "^INSR_ZR_[BHSD]")>;
+def : InstRW<[C1UWrite_5c_1V_1M0_CME], (instregex "^INSR_ZR_[BHSD]")>;
// Logical
-def : InstRW<[C1UWrite_2c_1V],
+def : InstRW<[C1UWrite_2c_1V_CME],
(instregex "^(AND|EOR|ORR)_ZI",
"^(AND|BIC|EOR|ORR|EON|NAND|NOR)_ZZZ",
"^EOR(BT|TB)_ZZZ_[BHSD]",
@@ -1981,137 +2136,137 @@ def : InstRW<[C1UWrite_2c_1V],
"^NOT_ZPmZ_[BHSD]")>;
// Max/min, basic and pairwise
-def : InstRW<[C1UWrite_2c_1V], (instregex "^[SU](MAX|MIN)_ZI_[BHSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^[SU](MAX|MIN)_ZI_[BHSD]",
"^[SU](MAX|MIN)P?_ZPmZ_[BHSD]",
"^[SU](MAX|MIN)_ZPZZ_[BHSD]")>;
// Matching operations
-def : InstRW<[C1UWrite_2c_1V0], (instregex "^N?MATCH_PPzZZ_[BH]")>;
+def : InstRW<[C1UWrite_2c_1V0_CME], (instregex "^N?MATCH_PPzZZ_[BH]")>;
// Matrix multiply-accumulate
-def : InstRW<[C1UWr_ZMMA, C1URd_ZMMA, C1URd_ZMMA], (instrs SMMLA_ZZZ, UMMLA_ZZZ, USMMLA_ZZZ)>;
+def : InstRW<[C1UWr_ZMMA_CME, C1URd_ZMMA, C1URd_ZMMA], (instrs SMMLA_ZZZ, UMMLA_ZZZ, USMMLA_ZZZ)>;
// Move prefix
-def : InstRW<[C1UWrite_2c_1V], (instregex "^MOVPRFX_ZP[mz]Z_[BHSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^MOVPRFX_ZP[mz]Z_[BHSD]",
"^MOVPRFX_ZZ")>;
// Multiply
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^MUL_(ZI|ZPmZ|ZZZI|ZZZ)_[BHSD]",
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^MUL_(ZI|ZPmZ|ZZZI|ZZZ)_[BHSD]",
"^MUL_ZPZZ_[BHSD]",
"^[SU]MULH_(ZPmZ|ZZZ)_[BHSD]",
"^[SU]MULH_ZPZZ_[BHSD]")>;
// Multiply long
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^[SU]MULL[BT]_ZZZI_[SD]",
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^[SU]MULL[BT]_ZZZI_[SD]",
"^[SU]MULL[BT]_ZZZ_[HSD]")>;
// Multiply accumulate, B, H, S element size
-def : InstRW<[C1UWr_ZMA, ReadDefault, C1URd_ZMA, C1URd_ZMA],
+def : InstRW<[C1UWr_ZMA_CME, ReadDefault, C1URd_ZMA, C1URd_ZMA],
(instregex "^ML[AS]_ZZZI_[HS]", "^ML[AS]_ZPZZZ_[BHS]")>;
-def : InstRW<[C1UWr_ZMA, ReadDefault, C1URd_ZMA, C1URd_ZMA],
+def : InstRW<[C1UWr_ZMA_CME, ReadDefault, C1URd_ZMA, C1URd_ZMA],
(instregex "^(ML[AS]|MAD|MSB)_ZPmZZ_[BHS]")>;
// Multiply accumulate, D element size
-def : InstRW<[C1UWr_ZMA, ReadDefault, C1URd_ZMA, C1URd_ZMA],
+def : InstRW<[C1UWr_ZMA_CME, ReadDefault, C1URd_ZMA, C1URd_ZMA],
(instregex "^ML[AS]_ZZZI_D", "^ML[AS]_ZPZZZ_D")>;
-def : InstRW<[C1UWr_ZMA, ReadDefault, C1URd_ZMA, C1URd_ZMA],
+def : InstRW<[C1UWr_ZMA_CME, ReadDefault, C1URd_ZMA, C1URd_ZMA],
(instregex "^(ML[AS]|MAD|MSB)_ZPmZZ_D")>;
// Multiply accumulate long
-def : InstRW<[C1UWr_ZMA, C1URd_ZMA, C1URd_ZMA], (instregex "^[SU]ML[AS]L[BT]_ZZZ_[HSD]",
+def : InstRW<[C1UWr_ZMA_CME, C1URd_ZMA, C1URd_ZMA], (instregex "^[SU]ML[AS]L[BT]_ZZZ_[HSD]",
"^[SU]ML[AS]L[BT]_ZZZI_[SD]")>;
// Multiply accumulate saturating doubling long regular
-def : InstRW<[C1UWr_ZMASQL, C1URd_ZMASQL, C1URd_ZMASQL],
+def : InstRW<[C1UWr_ZMASQL_CME, C1URd_ZMASQL, C1URd_ZMASQL],
(instregex "^SQDML[AS]L(B|T|BT)_ZZZ_[HSD]",
"^SQDML[AS]L[BT]_ZZZI_[SD]")>;
// Multiply saturating doubling high
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^SQDMULH_ZZZ_[BHSD]",
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^SQDMULH_ZZZ_[BHSD]",
"^SQDMULH_ZZZI_[HSD]")>;
// Multiply saturating doubling long
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^SQDMULL[BT]_ZZZ_[HSD]",
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^SQDMULL[BT]_ZZZ_[HSD]",
"^SQDMULL[BT]_ZZZI_[SD]")>;
// Multiply saturating rounding doubling regular/complex accumulate
-def : InstRW<[C1UWr_ZMASQL, C1URd_ZMASQL, C1URd_ZMASQL], (instregex "^SQRDML[AS]H_ZZZ_[BHSD]",
+def : InstRW<[C1UWr_ZMASQL_CME, C1URd_ZMASQL, C1URd_ZMASQL], (instregex "^SQRDML[AS]H_ZZZ_[BHSD]",
"^SQRDCMLAH_ZZZ_[BHSD]",
"^SQRDML[AS]H_ZZZI_[HSD]",
"^SQRDCMLAH_ZZZI_[HSD]")>;
// Multiply saturating rounding doubling regular/complex, B, H, S element size
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^SQRDMULH_ZZZ_[BHS]",
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^SQRDMULH_ZZZ_[BHS]",
"^SQRDMULH_ZZZI_[HS]",
"^SQRDMULH_ZZZI?_D")>;
// Multiply/multiply long, (8x8) polynomial
-def : InstRW<[C1UWrite_2c_1V0134], (instregex "^PMUL_ZZZ_B",
+def : InstRW<[C1UWrite_2c_1V0134_CME], (instregex "^PMUL_ZZZ_B",
"^PMULL[BT]_ZZZ_[HDQ]")>;
// Predicate counting vector
-def : InstRW<[C1UWrite_2c_1V], (instregex "^([SU]Q)?(DEC|INC)[HWD]_ZPiI")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^([SU]Q)?(DEC|INC)[HWD]_ZPiI")>;
// Reciprocal estimate
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^URECPE_ZPmZ_S", "^URSQRTE_ZPmZ_S")>;
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^URECPE_ZPmZ_S", "^URSQRTE_ZPmZ_S")>;
// Reduction, arithmetic, B form
-def : InstRW<[C1UWrite_8c_1V_3V0134], (instregex "^[SU]ADDV_VPZ_B")>;
-def : InstRW<[C1UWrite_6c_1V_2V0134], (instregex "^[SU](MAX|MIN)V_VPZ_B")>;
+def : InstRW<[C1UWrite_8c_1V_3V0134_CME], (instregex "^[SU]ADDV_VPZ_B")>;
+def : InstRW<[C1UWrite_6c_1V_2V0134_CME], (instregex "^[SU](MAX|MIN)V_VPZ_B")>;
// // Reduction, arithmetic, H form
-def : InstRW<[C1UWrite_6c_1V_2V0134], (instregex "^[SU]ADDV_VPZ_H")>;
-def : InstRW<[C1UWrite_6c_2V_1V0134], (instregex "^[SU](MAX|MIN)V_VPZ_H")>;
+def : InstRW<[C1UWrite_6c_1V_2V0134_CME], (instregex "^[SU]ADDV_VPZ_H")>;
+def : InstRW<[C1UWrite_6c_2V_1V0134_CME], (instregex "^[SU](MAX|MIN)V_VPZ_H")>;
// Reduction, arithmetic, S form
-def : InstRW<[C1UWrite_6c_2V_1V0134], (instregex "^[SU]ADDV_VPZ_S")>;
-def : InstRW<[C1UWrite_4c_1V_1V0134], (instregex "^[SU](MAX|MIN)V_VPZ_S")>;
+def : InstRW<[C1UWrite_6c_2V_1V0134_CME], (instregex "^[SU]ADDV_VPZ_S")>;
+def : InstRW<[C1UWrite_4c_1V_1V0134_CME], (instregex "^[SU](MAX|MIN)V_VPZ_S")>;
// Reduction, arithmetic, D form
-def : InstRW<[C1UWrite_4c_2V], (instregex "^[SU](ADD|MAX|MIN)V_VPZ_D")>;
+def : InstRW<[C1UWrite_4c_2V_CME], (instregex "^[SU](ADD|MAX|MIN)V_VPZ_D")>;
// Reduction, logical
-def : InstRW<[C1UWrite_4c_1V_1V0134], (instregex "^(AND|EOR|OR)V_VPZ_[BHSD]")>;
+def : InstRW<[C1UWrite_4c_1V_1V0134_CME], (instregex "^(AND|EOR|OR)V_VPZ_[BHSD]")>;
// Reverse, vector
-def : InstRW<[C1UWrite_2c_1V], (instregex "^REV_ZZ_[BHSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^REV_ZZ_[BHSD]",
"^REVB_ZPmZ_[HSD]",
"^REVH_ZPmZ_[SD]",
"^REVW_ZPmZ_D")>;
// Select, vector form
-def : InstRW<[C1UWrite_2c_1V], (instregex "^SEL_ZPZZ_[BHSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^SEL_ZPZZ_[BHSD]")>;
// Table lookup
-def : InstRW<[C1UWrite_2c_1V], (instregex "^TBL_ZZZZ?_[BHSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^TBL_ZZZZ?_[BHSD]")>;
// Table lookup extension
-def : InstRW<[C1UWrite_2c_1V], (instregex "^TBX_ZZZ_[BHSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^TBX_ZZZ_[BHSD]")>;
// Transpose, vector form
-def : InstRW<[C1UWrite_2c_1V], (instregex "^TRN[12]_ZZZ_[BHSDQ]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^TRN[12]_ZZZ_[BHSDQ]")>;
// Unpack and extend
-def : InstRW<[C1UWrite_2c_1V], (instregex "^[SU]UNPK(HI|LO)_ZZ_[HSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^[SU]UNPK(HI|LO)_ZZ_[HSD]")>;
// Zip/unzip
-def : InstRW<[C1UWrite_2c_1V], (instregex "^(UZP|ZIP)[12]_ZZZ_[BHSDQ]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^(UZP|ZIP)[12]_ZZZ_[BHSDQ]")>;
// SVE floating-point instructions
// -----------------------------------------------------------------------------
// Floating point absolute value/difference
-def : InstRW<[C1UWrite_2c_1V], (instregex "^FAB[SD]_ZPmZ_[HSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^FAB[SD]_ZPmZ_[HSD]",
"^FABD_ZPZZ_[HSD]",
"^FABS_ZPmZ_[HSD]")>;
// Floating point arithmetic
-def : InstRW<[C1UWrite_2c_1V], (instregex "^F(ADD|SUB)_(ZPm[IZ]|ZZZ)_[HSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^F(ADD|SUB)_(ZPm[IZ]|ZZZ)_[HSD]",
"^F(ADD|SUB)_ZPZ[IZ]_[HSD]",
"^FADDP_ZPmZZ_[HSD]",
"^FNEG_ZPmZ_[HSD]",
@@ -2119,187 +2274,187 @@ def : InstRW<[C1UWrite_2c_1V], (instregex "^F(ADD|SUB)_(ZPm[IZ]|ZZZ)_[HSD]",
"^FSUBR_(ZPZI|ZPZZ)_[HSD]")>;
// Floating point associative add, F16
-def : InstRW<[C1UWrite_10c_10V0], (instrs FADDA_VPZ_H)>;
+def : InstRW<[C1UWrite_10c_10V0_CME], (instrs FADDA_VPZ_H)>;
// Floating point associative add, F32
-def : InstRW<[C1UWrite_6c_6V0], (instrs FADDA_VPZ_S)>;
+def : InstRW<[C1UWrite_6c_6V0_CME], (instrs FADDA_VPZ_S)>;
// Floating point associative add, F64
-def : InstRW<[C1UWrite_4c_2V], (instrs FADDA_VPZ_D)>;
+def : InstRW<[C1UWrite_4c_2V_CME], (instrs FADDA_VPZ_D)>;
// Floating point compare
-def : InstRW<[C1UWrite_2c_1V0], (instregex "^FACG[ET]_PPzZZ_[HSD]",
+def : InstRW<[C1UWrite_2c_1V0_CME], (instregex "^FACG[ET]_PPzZZ_[HSD]",
"^FCM(EQ|GE|GT|NE)_PPzZ[0Z]_[HSD]",
"^FCM(LE|LT)_PPzZ0_[HSD]",
"^FCMUO_PPzZZ_[HSD]")>;
// Floating point complex add
-def : InstRW<[C1UWrite_3c_1V], (instregex "^FCADD_ZPmZ_[HSD]")>;
+def : InstRW<[C1UWrite_3c_1V_CME], (instregex "^FCADD_ZPmZ_[HSD]")>;
// Floating point complex multiply add
-def : InstRW<[C1UWr_ZFCMA, ReadDefault, C1URd_ZFCMA, C1URd_ZFCMA], (instregex "^FCMLA_ZPmZZ_[HSD]")>;
-def : InstRW<[C1UWr_ZFCMA, C1URd_ZFCMA, C1URd_ZFCMA], (instregex "^FCMLA_ZZZI_[HS]")>;
+def : InstRW<[C1UWr_ZFCMA_CME, ReadDefault, C1URd_ZFCMA, C1URd_ZFCMA], (instregex "^FCMLA_ZPmZZ_[HSD]")>;
+def : InstRW<[C1UWr_ZFCMA_CME, C1URd_ZFCMA, C1URd_ZFCMA], (instregex "^FCMLA_ZZZI_[HS]")>;
// Floating point convert, long or narrow (F16 to F32 or F32 to F16)
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^FCVT_ZPmZ_(HtoS|StoH)",
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^FCVT_ZPmZ_(HtoS|StoH)",
"^FCVTLT_ZPmZ_HtoS",
"^FCVTNT_ZPmZ_StoH")>;
// Floating point convert, long or narrow (F16 to F64, F32 to F64, F64 to F32
// or F64 to F16)
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FCVT_ZPmZ_(HtoD|StoD|DtoS|DtoH)",
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FCVT_ZPmZ_(HtoD|StoD|DtoS|DtoH)",
"^FCVTLT_ZPmZ_StoD",
"^FCVTNT_ZPmZ_DtoS")>;
// Floating point convert, round to odd
-def : InstRW<[C1UWrite_3c_1V0134], (instrs FCVTX_ZPmZ_DtoS, FCVTXNT_ZPmZ_DtoS)>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instrs FCVTX_ZPmZ_DtoS, FCVTXNT_ZPmZ_DtoS)>;
// Floating point base2 log, F16
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FLOGB_(ZPmZ|ZPZZ)_H")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FLOGB_(ZPmZ|ZPZZ)_H")>;
// Floating point base2 log, F32
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FLOGB_(ZPmZ|ZPZZ)_S")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FLOGB_(ZPmZ|ZPZZ)_S")>;
// Floating point base2 log, F64
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FLOGB_(ZPmZ|ZPZZ)_D")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FLOGB_(ZPmZ|ZPZZ)_D")>;
// Floating point convert to integer, F16
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FCVTZ[SU]_ZPmZ_HtoH")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FCVTZ[SU]_ZPmZ_HtoH")>;
// Floating point convert to integer, F32
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FCVTZ[SU]_ZPmZ_(HtoS|StoS)")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FCVTZ[SU]_ZPmZ_(HtoS|StoS)")>;
// Floating point convert to integer, F64
-def : InstRW<[C1UWrite_3c_1V0134],
+def : InstRW<[C1UWrite_3c_1V0134_CME],
(instregex "^FCVTZ[SU]_ZPmZ_(HtoD|StoD|DtoS|DtoD)")>;
// Floating point copy
-def : InstRW<[C1UWrite_2c_1V], (instregex "^FCPY_ZPmI_[HSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^FCPY_ZPmI_[HSD]",
"^FDUP_ZI_[HSD]")>;
// Floating point divide, F16
-def : InstRW<[C1UWrite_12c_1V0_8rc], (instregex "^FDIVR?_(ZPmZ|ZPZZ)_H")>;
+def : InstRW<[C1UWrite_12c_1V0_8rc_CME], (instregex "^FDIVR?_(ZPmZ|ZPZZ)_H")>;
// Floating point divide, F32
-def : InstRW<[C1UWrite_11c_1V0_4rc], (instregex "^FDIVR?_(ZPmZ|ZPZZ)_S")>;
+def : InstRW<[C1UWrite_11c_1V0_4rc_CME], (instregex "^FDIVR?_(ZPmZ|ZPZZ)_S")>;
// Floating point divide, F64
-def : InstRW<[C1UWrite_13c_1V0_2rc], (instregex "^FDIVR?_(ZPmZ|ZPZZ)_D")>;
+def : InstRW<[C1UWrite_13c_1V0_2rc_CME], (instregex "^FDIVR?_(ZPmZ|ZPZZ)_D")>;
// Floating point min/max pairwise
-def : InstRW<[C1UWrite_2c_1V], (instregex "^F(MAX|MIN)(NM)?P_ZPmZZ_[HSD]")>;
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^F(MAX|MIN)(NM)?P_ZPmZZ_[HSD]")>;
// Floating point min/max
-def : InstRW<[C1UWrite_2c_1V], (instregex "^F(MAX|MIN)(NM)?_ZPm[IZ]_[HSD]",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^F(MAX|MIN)(NM)?_ZPm[IZ]_[HSD]",
"^F(MAX|MIN)(NM)?_ZPZ[IZ]_[HSD]")>;
// Floating point multiply
-def : InstRW<[C1UWrite_3c_1V], (instregex "^(FSCALE|FMULX)_ZPmZ_[HSD]",
+def : InstRW<[C1UWrite_3c_1V_CME], (instregex "^(FSCALE|FMULX)_ZPmZ_[HSD]",
"^FMULX_ZPZZ_[HSD]",
"^FMUL_(ZPm[IZ]|ZZZI?)_[HSD]",
"^FMUL_ZPZ[IZ]_[HSD]")>;
// Floating point multiply accumulate
-def : InstRW<[C1UWr_ZFMA, ReadDefault, C1URd_ZFMA, C1URd_ZFMA],
+def : InstRW<[C1UWr_ZFMA_CME, ReadDefault, C1URd_ZFMA, C1URd_ZFMA],
(instregex "^FN?ML[AS]_ZPmZZ_[HSD]",
"^FN?(MAD|MSB)_ZPmZZ_[HSD]",
"^FN?ML[AS]_ZPZZZ_[HSD]")>;
-def : InstRW<[C1UWr_ZFMA, C1URd_ZFMA, C1URd_ZFMA],
+def : InstRW<[C1UWr_ZFMA_CME, C1URd_ZFMA, C1URd_ZFMA],
(instregex "^FML[AS]_ZZZI_[HSD]")>;
// Floating point multiply add/sub accumulate long
-def : InstRW<[C1UWr_ZFMAL, C1URd_ZFMAL, C1URd_ZFMAL], (instregex "^FML[AS]L[BT]_ZZZI?_SHH")>;
+def : InstRW<[C1UWr_ZFMAL_CME, C1URd_ZFMAL, C1URd_ZFMAL], (instregex "^FML[AS]L[BT]_ZZZI?_SHH")>;
// Floating point reciprocal estimate, F16
-def : InstRW<[C1UWrite_6c_1V0134], (instregex "^FR(ECP|SQRT)E_ZZ_H", "^FRECPX_ZPmZ_H")>;
+def : InstRW<[C1UWrite_6c_1V0134_CME], (instregex "^FR(ECP|SQRT)E_ZZ_H", "^FRECPX_ZPmZ_H")>;
// Floating point reciprocal estimate, F32
-def : InstRW<[C1UWrite_4c_1V0134], (instregex "^FR(ECP|SQRT)E_ZZ_S", "^FRECPX_ZPmZ_S")>;
+def : InstRW<[C1UWrite_4c_1V0134_CME], (instregex "^FR(ECP|SQRT)E_ZZ_S", "^FRECPX_ZPmZ_S")>;
// Floating point reciprocal estimate, F64
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FR(ECP|SQRT)E_ZZ_D", "^FRECPX_ZPmZ_D")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FR(ECP|SQRT)E_ZZ_D", "^FRECPX_ZPmZ_D")>;
// Floating point reciprocal step
-def : InstRW<[C1UWrite_4c_1V], (instregex "^F(RECPS|RSQRTS)_ZZZ_[HSD]")>;
+def : InstRW<[C1UWrite_4c_1V_CME], (instregex "^F(RECPS|RSQRTS)_ZZZ_[HSD]")>;
// Floating point reduction, F16
-def : InstRW<[C1UWrite_8c_4V],
+def : InstRW<[C1UWrite_8c_4V_CME],
(instregex "^(FADDV|FMAXNMV|FMAXV|FMINNMV|FMINV)_VPZ_H")>;
// Floating point reduction, F32
-def : InstRW<[C1UWrite_6c_3V],
+def : InstRW<[C1UWrite_6c_3V_CME],
(instregex "^(FADDV|FMAXNMV|FMAXV|FMINNMV|FMINV)_VPZ_S")>;
// Floating point reduction, F64
-def : InstRW<[C1UWrite_4c_2V],
+def : InstRW<[C1UWrite_4c_2V_CME],
(instregex "^(FADDV|FMAXNMV|FMAXV|FMINNMV|FMINV)_VPZ_D")>;
// Floating point round to integral, F16
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FRINT[AIMNPXZ]_ZPmZ_H")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FRINT[AIMNPXZ]_ZPmZ_H")>;
// Floating point round to integral, F32
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FRINT[AIMNPXZ]_ZPmZ_S")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FRINT[AIMNPXZ]_ZPmZ_S")>;
// Floating point round to integral, F64
-def : InstRW<[C1UWrite_3c_1V0134], (instregex "^FRINT[AIMNPXZ]_ZPmZ_D")>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instregex "^FRINT[AIMNPXZ]_ZPmZ_D")>;
// Floating point square root, F16
-def : InstRW<[C1UWrite_12c_1V1_8rc], (instregex "^FSQRT_ZPmZ_H")>;
+def : InstRW<[C1UWrite_12c_1V1_8rc_CME], (instregex "^FSQRT_ZPmZ_H")>;
// Floating point square root, F32
-def : InstRW<[C1UWrite_11c_1V1_4rc], (instregex "^FSQRT_ZPmZ_S")>;
+def : InstRW<[C1UWrite_11c_1V1_4rc_CME], (instregex "^FSQRT_ZPmZ_S")>;
// Floating point square root, F64
-def : InstRW<[C1UWrite_13c_1V1_2rc], (instregex "^FSQRT_ZPmZ_D")>;
+def : InstRW<[C1UWrite_13c_1V1_2rc_CME], (instregex "^FSQRT_ZPmZ_D")>;
// Floating point trigonometric exponentiation
-def : InstRW<[C1UWrite_3c_1V1], (instregex "^FEXPA_ZZ_[HSD]")>;
+def : InstRW<[C1UWrite_3c_1V1_CME], (instregex "^FEXPA_ZZ_[HSD]")>;
// Floating point trigonometric multiply add
-def : InstRW<[C1UWrite_4c_1V], (instregex "^FTMAD_ZZI_[HSD]")>;
+def : InstRW<[C1UWrite_4c_1V_CME], (instregex "^FTMAD_ZZI_[HSD]")>;
// Floating point trigonometric, miscellaneous
-def : InstRW<[C1UWrite_3c_1V], (instregex "^FTS(MUL|SEL)_ZZZ_[HSD]")>;
+def : InstRW<[C1UWrite_3c_1V_CME], (instregex "^FTS(MUL|SEL)_ZZZ_[HSD]")>;
// SVE BFloat16 (BF16) instructions
// -----------------------------------------------------------------------------
// Convert, F32 to BF16
-def : InstRW<[C1UWrite_3c_1V0134], (instrs BFCVT_ZPmZ, BFCVTNT_ZPmZ)>;
+def : InstRW<[C1UWrite_3c_1V0134_CME], (instrs BFCVT_ZPmZ, BFCVTNT_ZPmZ)>;
// Dot product
-def : InstRW<[C1UWr_ZBFDOT, C1URd_ZBFDOT, C1URd_ZBFDOT], (instrs BFDOT_ZZI, BFDOT_ZZZ)>;
+def : InstRW<[C1UWr_ZBFDOT_CME, C1URd_ZBFDOT, C1URd_ZBFDOT], (instrs BFDOT_ZZI, BFDOT_ZZZ)>;
// Matrix multiply accumulate
-def : InstRW<[C1UWr_ZBFMMA, C1URd_ZBFMMA, C1URd_ZBFMMA], (instrs BFMMLA_ZZZ_HtoS)>;
+def : InstRW<[C1UWr_ZBFMMA_CME, C1URd_ZBFMMA, C1URd_ZBFMMA], (instrs BFMMLA_ZZZ_HtoS)>;
// Multiply accumulate long
-def : InstRW<[C1UWr_ZBFMAL, C1URd_ZBFMAL, C1URd_ZBFMAL], (instregex "^BFMLAL[BT]_ZZZI?")>;
+def : InstRW<[C1UWr_ZBFMAL_CME, C1URd_ZBFMAL, C1URd_ZBFMAL], (instregex "^BFMLAL[BT]_ZZZI?")>;
// SVE Load instructions
// -----------------------------------------------------------------------------
// Load vector
-def : InstRW<[C1UWrite_6c_1L], (instrs LDR_ZXI)>;
+def : InstRW<[C1UWrite_6c_1L_CME], (instrs LDR_ZXI)>;
// Load predicate
-def : InstRW<[C1UWrite_6c_1L_1M], (instrs LDR_PXI)>;
+def : InstRW<[C1UWrite_6c_1L_1M_CME], (instrs LDR_PXI)>;
// Contiguous load, scalar + imm
-def : InstRW<[C1UWrite_6c_1L], (instregex "^LD1[BHWD]_IMM$",
+def : InstRW<[C1UWrite_6c_1L_CME], (instregex "^LD1[BHWD]_IMM$",
"^LD1S?B_[HSD]_IMM$",
"^LD1S?H_[SD]_IMM$",
"^LD1S?W_D_IMM$" )>;
// Contiguous load, scalar + scalar
-def : InstRW<[C1UWrite_6c_1L], (instregex "^LD1[BHWD]$",
+def : InstRW<[C1UWrite_6c_1L_CME], (instregex "^LD1[BHWD]$",
"^LD1S?B_[HSD]$",
"^LD1S?H_[SD]$",
"^LD1S?W_D$" )>;
// Contiguous load broadcast, scalar + imm
-def : InstRW<[C1UWrite_6c_1L], (instregex "^LD1R[BHWD]_IMM$",
+def : InstRW<[C1UWrite_6c_1L_CME], (instregex "^LD1R[BHWD]_IMM$",
"^LD1RS?B_[HSD]_IMM$",
"^LD1RS?H_[SD]_IMM$",
"^LD1RW_D_IMM$",
@@ -2307,159 +2462,159 @@ def : InstRW<[C1UWrite_6c_1L], (instregex "^LD1R[BHWD]_IMM$",
"^LD1RQ_[BHWD]_IMM$")>;
// Contiguous load broadcast, scalar + scalar
-def : InstRW<[C1UWrite_6c_1L], (instregex "^LD1RQ_[BHWD]$")>;
+def : InstRW<[C1UWrite_6c_1L_CME], (instregex "^LD1RQ_[BHWD]$")>;
// Non temporal load, scalar + imm
// Non temporal load, scalar + scalar
-def : InstRW<[C1UWrite_6c_1L], (instregex "^LDNT1[BHWD]_ZR[IR]$")>;
+def : InstRW<[C1UWrite_6c_1L_CME], (instregex "^LDNT1[BHWD]_ZR[IR]$")>;
// Non temporal gather load, vector + scalar 32-bit element size
-def : InstRW<[C1UWrite_9c_1V01_1L], (instregex "^LDNT1[BHW]_ZZR_S$",
+def : InstRW<[C1UWrite_9c_1V01_1L_CME], (instregex "^LDNT1[BHW]_ZZR_S$",
"^LDNT1S[BH]_ZZR_S$")>;
// Non temporal gather load, vector + scalar 64-bit element size
-def : InstRW<[C1UWrite_9c_1V01_1L], (instregex "^LDNT1S?[BHW]_ZZR_D$")>;
-def : InstRW<[C1UWrite_6c_1L], (instrs LDNT1D_ZZR_D)>;
+def : InstRW<[C1UWrite_9c_1V01_1L_CME], (instregex "^LDNT1S?[BHW]_ZZR_D$")>;
+def : InstRW<[C1UWrite_6c_1L_CME], (instrs LDNT1D_ZZR_D)>;
// Contiguous first faulting load, scalar + scalar
-def : InstRW<[C1UWrite_9c_1V01_1L], (instregex "^LDFF1[BHWD]$",
+def : InstRW<[C1UWrite_9c_1V01_1L_CME], (instregex "^LDFF1[BHWD]$",
"^LDFF1S?B_[HSD]$",
"^LDFF1S?H_[SD]$",
"^LDFF1S?W_D$")>;
// Contiguous non faulting load, scalar + imm
-def : InstRW<[C1UWrite_6c_1L], (instregex "^LDNF1[BHWD]_IMM$",
+def : InstRW<[C1UWrite_6c_1L_CME], (instregex "^LDNF1[BHWD]_IMM$",
"^LDNF1S?B_[HSD]_IMM$",
"^LDNF1S?H_[SD]_IMM$",
"^LDNF1S?W_D_IMM$")>;
// Contiguous Load two structures to two vectors, scalar + imm
-def : InstRW<[C1UWrite_8c_2L_2V], (instregex "^LD2[BHWD]_IMM$")>;
+def : InstRW<[C1UWrite_8c_2L_2V_CME], (instregex "^LD2[BHWD]_IMM$")>;
// Contiguous Load two structures to two vectors, scalar + scalar
-def : InstRW<[C1UWrite_9c_2L_2V_1I], (instregex "^LD2[BHWD]$")>;
+def : InstRW<[C1UWrite_9c_2L_2V_1I_CME], (instregex "^LD2[BHWD]$")>;
// Contiguous Load three structures to three vectors, scalar + imm
-def : InstRW<[C1UWrite_8c_3L_3V], (instregex "^LD3[BHWD]_IMM$")>;
+def : InstRW<[C1UWrite_8c_3L_3V_CME], (instregex "^LD3[BHWD]_IMM$")>;
// Contiguous Load three structures to three vectors, scalar + scalar
-def : InstRW<[C1UWrite_9c_3L_3V_1I], (instregex "^LD3[BHWD]$")>;
+def : InstRW<[C1UWrite_9c_3L_3V_1I_CME], (instregex "^LD3[BHWD]$")>;
// Contiguous Load four structures to four vectors, scalar + imm
-def : InstRW<[C1UWrite_10c_4L_8V], (instregex "^LD4[BHWD]_IMM$")>;
+def : InstRW<[C1UWrite_10c_4L_8V_CME], (instregex "^LD4[BHWD]_IMM$")>;
// Contiguous Load four structures to four vectors, scalar + scalar
-def : InstRW<[C1UWrite_11c_4L_8V_1I], (instregex "^LD4[BHWD]$")>;
+def : InstRW<[C1UWrite_11c_4L_8V_1I_CME], (instregex "^LD4[BHWD]$")>;
// Gather load, vector + imm, 32-bit element size
-def : InstRW<[C1UWrite_9c_1V01_1L], (instregex "^GLD(FF)?1S?[BH]_S_IMM$",
+def : InstRW<[C1UWrite_9c_1V01_1L_CME], (instregex "^GLD(FF)?1S?[BH]_S_IMM$",
"^GLD(FF)?1W_IMM$")>;
// Gather load, vector + imm, 64-bit element size
-def : InstRW<[C1UWrite_9c_1V01_1L], (instregex "^GLD(FF)?1S?[BHW]_D_IMM$",
+def : InstRW<[C1UWrite_9c_1V01_1L_CME], (instregex "^GLD(FF)?1S?[BHW]_D_IMM$",
"^GLD(FF)?1D_IMM$")>;
// Gather load, 32-bit scaled offset
-def : InstRW<[C1UWrite_9c_1V01_1L],
+def : InstRW<[C1UWrite_9c_1V01_1L_CME],
(instregex "^GLD(FF)?1S?H_S_[SU]XTW_SCALED$",
"^GLD(FF)?1W_[SU]XTW_SCALED")>;
// Gather load, 64-bit scaled offset
// NOTE: These instructions are not specified in the SOG.
-def : InstRW<[C1UWrite_9c_1V01_1L],
+def : InstRW<[C1UWrite_9c_1V01_1L_CME],
(instregex "^GLD(FF)?1S?[HW]_D_([SU]XTW_)?SCALED$",
"^GLD(FF)?1D_([SU]XTW_)?SCALED$")>;
// Gather load, 32-bit unpacked unscaled offset
-def : InstRW<[C1UWrite_9c_1V01_1L], (instregex "^GLD(FF)?1S?[BH]_S_[SU]XTW$",
+def : InstRW<[C1UWrite_9c_1V01_1L_CME], (instregex "^GLD(FF)?1S?[BH]_S_[SU]XTW$",
"^GLD(FF)?1W_[SU]XTW$")>;
// Gather load, 64-bit unpacked unscaled offset
// NOTE: These instructions are not specified in the SOG.
-def : InstRW<[C1UWrite_9c_1V01_1L],
+def : InstRW<[C1UWrite_9c_1V01_1L_CME],
(instregex "^GLD(FF)?1S?[BHW]_D(_[SU]XTW)?$",
"^GLD(FF)?1D(_[SU]XTW)?$")>;
// SVE Store instructions
// -----------------------------------------------------------------------------
// Store from predicate reg
-def : InstRW<[C1UWrite_1c_1SA], (instrs STR_PXI)>;
+def : InstRW<[C1UWrite_1c_1SA_CME], (instrs STR_PXI)>;
// Store from vector reg
-def : InstRW<[C1UWrite_2c_1SA_1V01], (instrs STR_ZXI)>;
+def : InstRW<[C1UWrite_2c_1SA_1V01_CME], (instrs STR_ZXI)>;
// Contiguous store, scalar + imm
-def : InstRW<[C1UWrite_2c_1SA_1V01], (instregex "^ST1[BHWD]_IMM$",
+def : InstRW<[C1UWrite_2c_1SA_1V01_CME], (instregex "^ST1[BHWD]_IMM$",
"^ST1B_[HSD]_IMM$",
"^ST1H_[SD]_IMM$",
"^ST1W_D_IMM$")>;
// Contiguous store, scalar + scalar
-def : InstRW<[C1UWrite_2c_1SA_1V01], (instregex "^ST1H(_[SD])?$",
+def : InstRW<[C1UWrite_2c_1SA_1V01_CME], (instregex "^ST1H(_[SD])?$",
"^ST1[BWD]$",
"^ST1B_[HSD]$",
"^ST1W_D$")>;
// Contiguous store two structures from two vectors, scalar + imm
-def : InstRW<[C1UWrite_4c_2SA_2V01], (instregex "^ST2[BHWD]_IMM$")>;
+def : InstRW<[C1UWrite_4c_2SA_2V01_CME], (instregex "^ST2[BHWD]_IMM$")>;
// Contiguous store two structures from two vectors, scalar + scalar
-def : InstRW<[C1UWrite_4c_2SA_2V01_1I], (instregex "^ST2[BHWD]$")>;
+def : InstRW<[C1UWrite_4c_2SA_2V01_1I_CME], (instregex "^ST2[BHWD]$")>;
// Contiguous store three structures from three vectors, scalar + imm
-def : InstRW<[C1UWrite_5c_3SA_3V01], (instregex "^ST3[BHWD]_IMM$")>;
+def : InstRW<[C1UWrite_5c_3SA_3V01_CME], (instregex "^ST3[BHWD]_IMM$")>;
// Contiguous store three structures from three vectors, scalar + scalar
-def : InstRW<[C1UWrite_5c_3SA_3V01_1I], (instregex "^ST3[BHWD]$")>;
+def : InstRW<[C1UWrite_5c_3SA_3V01_1I_CME], (instregex "^ST3[BHWD]$")>;
// Contiguous store four structures from four vectors, scalar + imm
-def : InstRW<[C1UWrite_7c_4SA_4V01], (instregex "^ST4[BHWD]_IMM$")>;
+def : InstRW<[C1UWrite_7c_4SA_4V01_CME], (instregex "^ST4[BHWD]_IMM$")>;
// Contiguous store four structures from four vectors, scalar + scalar
-def : InstRW<[C1UWrite_7c_4SA_4V01_1I], (instregex "^ST4[BHWD]$")>;
+def : InstRW<[C1UWrite_7c_4SA_4V01_1I_CME], (instregex "^ST4[BHWD]$")>;
// Non temporal store, scalar + imm
-def : InstRW<[C1UWrite_2c_1SA_1V01], (instregex "^STNT1[BHWD]_ZRI$")>;
+def : InstRW<[C1UWrite_2c_1SA_1V01_CME], (instregex "^STNT1[BHWD]_ZRI$")>;
// Non temporal store, scalar + scalar
-def : InstRW<[C1UWrite_2c_1SA_1V01], (instregex "^STNT1[BHWD]_ZRR$")>;
+def : InstRW<[C1UWrite_2c_1SA_1V01_CME], (instregex "^STNT1[BHWD]_ZRR$")>;
// Scatter non temporal store, vector + scalar 32-bit element size
-def : InstRW<[C1UWrite_5or7c_3SA_6V01], (instregex "^STNT1[BHW]_ZZR_S")>;
+def : InstRW<[C1UWrite_5or7c_3SA_6V01_CME], (instregex "^STNT1[BHW]_ZZR_S")>;
// Scatter non temporal store, vector + scalar 64-bit element size
-def : InstRW<[C1UWrite_4or6c_3SA_3V01], (instregex "^STNT1[BHWD]_ZZR_D")>;
+def : InstRW<[C1UWrite_4or6c_3SA_3V01_CME], (instregex "^STNT1[BHWD]_ZZR_D")>;
// Scatter store vector + imm 32-bit element size
-def : InstRW<[C1UWrite_5or7c_5SA_5V01], (instregex "^SST1[BHW]_S_IMM$",
+def : InstRW<[C1UWrite_5or7c_5SA_5V01_CME], (instregex "^SST1[BHW]_S_IMM$",
"^SST1W_IMM$")>;
// Scatter store vector + imm 64-bit element size
-def : InstRW<[C1UWrite_4or6c_3SA_3V01], (instregex "^SST1[BHW]_D_IMM$",
+def : InstRW<[C1UWrite_4or6c_3SA_3V01_CME], (instregex "^SST1[BHW]_D_IMM$",
"^SST1D_IMM$")>;
// Scatter store, 32-bit scaled offset
-def : InstRW<[C1UWrite_2or4c_3SA_6V01],
+def : InstRW<[C1UWrite_2or4c_3SA_6V01_CME],
(instregex "^SST1(H_S|W)_[SU]XTW_SCALED$")>;
// Scatter store, 32-bit unpacked unscaled offset
-def : InstRW<[C1UWrite_2or4c_1SA_1V01], (instregex "^SST1[BHW]_D_[SU]XTW$",
+def : InstRW<[C1UWrite_2or4c_1SA_1V01_CME], (instregex "^SST1[BHW]_D_[SU]XTW$",
"^SST1D_[SU]XTW$")>;
// Scatter store, 32-bit unpacked scaled offset
-def : InstRW<[C1UWrite_2or4c_1SA_1V01], (instregex "^SST1[HW]_D_[SU]XTW_SCALED$",
+def : InstRW<[C1UWrite_2or4c_1SA_1V01_CME], (instregex "^SST1[HW]_D_[SU]XTW_SCALED$",
"^SST1D_[SU]XTW_SCALED$")>;
// Scatter store, 32-bit unscaled offset
-def : InstRW<[C1UWrite_2or4c_1SA_1V01], (instregex "^SST1[BH]_S_[SU]XTW$",
+def : InstRW<[C1UWrite_2or4c_1SA_1V01_CME], (instregex "^SST1[BH]_S_[SU]XTW$",
"^SST1W_[SU]XTW$")>;
// Scatter store, 64-bit scaled offset
-def : InstRW<[C1UWrite_2or4c_1SA_1V01], (instregex "^SST1[HW]_D_SCALED$",
+def : InstRW<[C1UWrite_2or4c_1SA_1V01_CME], (instregex "^SST1[HW]_D_SCALED$",
"^SST1D_SCALED$")>;
// Scatter store, 64-bit unscaled offset
-def : InstRW<[C1UWrite_2or4c_1SA_1V01], (instregex "^SST1[BHW]_D$",
+def : InstRW<[C1UWrite_2or4c_1SA_1V01_CME], (instregex "^SST1[BHW]_D$",
"^SST1D$")>;
// SVE Miscellaneous instructions
@@ -2486,49 +2641,49 @@ def : InstRW<[C1UWrite_4c_1L], (instregex "^PRF[BHWD]")>;
// -----------------------------------------------------------------------------
// Crypto AES ops
-def : InstRW<[C1UWrite_2c_1V0134], (instregex "^AES[DE]_ZZZ_B$",
+def : InstRW<[C1UWrite_2c_1V0134_CME], (instregex "^AES[DE]_ZZZ_B$",
"^AESI?MC_ZZ_B$")>;
// Crypto SHA3 ops
-def : InstRW<[C1UWrite_2c_1V], (instregex "^(BCAX|EOR3)_ZZZZ$",
+def : InstRW<[C1UWrite_2c_1V_CME], (instregex "^(BCAX|EOR3)_ZZZZ$",
"^RAX1_ZZZ_D$",
"^XAR_ZZZI_[BHSD]$")>;
// Crypto SM4 ops
-def : InstRW<[C1UWrite_4c_1V0], (instregex "^SM4E(KEY)?_ZZZ_S$")>;
+def : InstRW<[C1UWrite_4c_1V0_CME], (instregex "^SM4E(KEY)?_ZZZ_S$")>;
// SVE instructions added by SME and available when not in Streaming SVE mode
// -----------------------------------------------------------------------------
// BFloat16 floating-point multiply-subtract long from single-precision vector and indexed form
-def : InstRW<[C1UWrite_4c_1V_Streaming], (instregex "^BFMLSLB_", "^BFMLSLT_")>;
+def : InstRW<[C1UWrite_4c_1V_StreamingCME], (instregex "^BFMLSLB_", "^BFMLSLT_")>;
// Floating-point clamp to minimum/maximu m number
-def : InstRW<[C1UWrite_2c_1V_Streaming], (instregex "^FCLAMP_ZZZ")>;
+def : InstRW<[C1UWrite_2c_1V_StreamingCME], (instregex "^FCLAMP_ZZZ")>;
// Half-precision floating-point indexed or vector forms dot product
-def : InstRW<[C1UWrite_4c_1V_Streaming], (instregex "^FDOT_ZZZI?_S$")>;
+def : InstRW<[C1UWrite_4c_1V_StreamingCME], (instregex "^FDOT_ZZZI?_S$")>;
// Predicate selection
-def : InstRW<[C1UWrite_2c_2M_Streaming], (instregex "^PSEL_PPPRI")>;
+def : InstRW<[C1UWrite_2c_2M_StreamingCME], (instregex "^PSEL_PPPRI")>;
// Reverse doubleword elements
-def : InstRW<[C1UWrite_2c_1V_Streaming], (instregex "^REVD_ZPmZ")>;
+def : InstRW<[C1UWrite_2c_1V_StreamingCME], (instregex "^REVD_ZPmZ")>;
// Signed/unsigned clamp
-def : InstRW<[C1UWrite_2c_1V_Streaming], (instregex "^(S|U)CLAMP_ZZZ")>;
+def : InstRW<[C1UWrite_2c_1V_StreamingCME], (instregex "^(S|U)CLAMP_ZZZ")>;
// TODO: throughput is 2 instead of 4
// Half-precision signed/unsigned dot product vector and indexed forms
-def : InstRW<[C1UWrite_3c_1V01_Streaming], (instregex "^(S|U)DOT_ZZZI?_HtoS")>;
+def : InstRW<[C1UWrite_3c_1V01_StreamingCME], (instregex "^(S|U)DOT_ZZZI?_HtoS")>;
// Signed/unsigned saturating narrow conversion
-def : InstRW<[C1UWrite_2c_1V_Streaming], (instregex "^(SQCVTN|SQCVTUN|UQCVTN)_Z2Z_StoH")>;
+def : InstRW<[C1UWrite_2c_1V_StreamingCME], (instregex "^(SQCVTN|SQCVTUN|UQCVTN)_Z2Z_StoH")>;
// Signed/unsigned saturating rounding shift-right narrow
-def : InstRW<[C1UWrite_3c_1V01_Streaming], (instregex "^(SQRSHRN|SQRSHRUN|UQRSHRN)_Z2ZI_StoH")>;
+def : InstRW<[C1UWrite_3c_1V01_StreamingCME], (instregex "^(SQRSHRN|SQRSHRUN|UQRSHRN)_Z2ZI_StoH")>;
// Signed/unsigned pair-producing while compare
-def : InstRW<[C1UWrite_2c_1M_Streaming], (instregex "^WHILE(GE|GT|HI|HS|LE|LO|LS|LT)_2PXX")>;
+def : InstRW<[C1UWrite_2c_1M_StreamingCME], (instregex "^WHILE(GE|GT|HI|HS|LE|LO|LS|LT)_2PXX")>;
// SVE instructions added by SME but not sent to CME when in Streaming SVE mode
// -----------------------------------------------------------------------------
diff --git a/llvm/lib/Target/AArch64/AArch64SchedPredicates.td b/llvm/lib/Target/AArch64/AArch64SchedPredicates.td
index 8de4e8dcece2d..f773d48600e67 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedPredicates.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedPredicates.td
@@ -417,6 +417,9 @@ def FPIsQForm : MCSchedPredicate<
// Check whether the subtarget enables SME.
def SMESchedPred : FeatureSchedPredicate<FeatureSME>;
+def MCStreamingSchedPred : FeatureSchedPredicate<FeatureMCAStreamingSched>;
// Check whether the subtarget enables SME and is in streaming mode.
def SMEStreamingSchedPred : SchedPredicate<[{STI->hasSME() && STI->isStreaming()}]>;
+def SMEMCStreamingSchedPred : AllOfSchedPreds<[SMESchedPred,
+ MCStreamingSchedPred]>;
diff --git a/llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-streaming-cme-instructions.s b/llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-streaming-cme-instructions.s
new file mode 100644
index 0000000000000..17720bebd7bcf
--- /dev/null
+++ b/llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-streaming-cme-instructions.s
@@ -0,0 +1,284 @@
+# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
+# RUN: llvm-mca -mtriple=aarch64 -mcpu=c1-ultra -mattr=+sme2p2,+mca-streaming-sched -instruction-tables=full < %p/../Inputs/streaming-cme-instructions.s | FileCheck %s --check-prefix=STREAMING
+# RUN: llvm-mca -mtriple=aarch64 -mcpu=c1-ultra -mattr=+sme2p2 -instruction-tables=full < %p/../Inputs/streaming-cme-instructions.s | FileCheck %s --check-prefix=NONSTREAMING
+
+fadd s0, s1, s2
+fcvtzs w0, s1
+ldr s0, [x0]
+ldr q0, [x0, x1, lsl #4]
+str s0, [x0]
+fadd v0.4s, v1.4s, v2.4s
+bfdot v0.4s, v1.8h, v2.8h
+add z0.s, z1.s, z2.s
+clastb w0, p0, w0, z2.s
+fadd z0.s, p0/m, z0.s, z1.s
+bfdot z0.s, z1.h, z2.h
+ld1w { z0.s }, p0/z, [x0]
+ld2w { z0.s, z1.s }, p0/z, [x0]
+ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
+st1w { z0.s }, p0, [x0]
+st2w { z0.s, z1.s }, p0, [x0]
+st1w { z0.s }, p0, [x0, z0.s, uxtw]
+eor3 z0.d, z0.d, z1.d, z2.d
+bfmlslb z0.s, z1.h, z2.h
+fdot z0.s, z1.h, z2.h
+psel p0, p0, p0.b[w12, 0]
+sqcvtn z0.h, { z0.s, z1.s }
+
+# NONSTREAMING: Resources:
+# NONSTREAMING-NEXT: [0] - C1UUnitB:3
+# NONSTREAMING-NEXT: [1] - C1UUnitCME:1
+# NONSTREAMING-NEXT: [2] - C1UUnitD:2
+# NONSTREAMING-NEXT: [3] - C1UUnitFlg:4
+# NONSTREAMING-NEXT: [4] - C1UUnitI:8 C1UUnitS0, C1UUnitS1, C1UUnitS2, C1UUnitS3, C1UUnitS4, C1UUnitS5, C1UUnitM0, C1UUnitM1
+# NONSTREAMING-NEXT: [5] - C1UUnitI4:4 C1UUnitS0, C1UUnitS2, C1UUnitS4, C1UUnitM0
+# NONSTREAMING-NEXT: [6] - C1UUnitL:4 C1UUnitLS0, C1UUnitLS1, C1UUnitL23, C1UUnitL23
+# NONSTREAMING-NEXT: [7] - C1UUnitL23:2
+# NONSTREAMING-NEXT: [8] - C1UUnitLS0:1
+# NONSTREAMING-NEXT: [9] - C1UUnitLS1:1
+# NONSTREAMING-NEXT: [10] - C1UUnitM:2 C1UUnitM0, C1UUnitM1
+# NONSTREAMING-NEXT: [11] - C1UUnitM0:1
+# NONSTREAMING-NEXT: [12] - C1UUnitM1:1
+# NONSTREAMING-NEXT: [13] - C1UUnitS:6 C1UUnitS0, C1UUnitS1, C1UUnitS2, C1UUnitS3, C1UUnitS4, C1UUnitS5
+# NONSTREAMING-NEXT: [14] - C1UUnitS0:1
+# NONSTREAMING-NEXT: [15] - C1UUnitS1:1
+# NONSTREAMING-NEXT: [16] - C1UUnitS2:1
+# NONSTREAMING-NEXT: [17] - C1UUnitS3:1
+# NONSTREAMING-NEXT: [18] - C1UUnitS4:1
+# NONSTREAMING-NEXT: [19] - C1UUnitS5:1
+# NONSTREAMING-NEXT: [20] - C1UUnitSA:2 C1UUnitLS0, C1UUnitLS1
+# NONSTREAMING-NEXT: [21] - C1UUnitV:6 C1UUnitV0, C1UUnitV1, C1UUnitV2, C1UUnitV3, C1UUnitV4, C1UUnitV5
+# NONSTREAMING-NEXT: [22] - C1UUnitV0:1
+# NONSTREAMING-NEXT: [23] - C1UUnitV1:1
+# NONSTREAMING-NEXT: [24] - C1UUnitV2:1
+# NONSTREAMING-NEXT: [25] - C1UUnitV3:1
+# NONSTREAMING-NEXT: [26] - C1UUnitV4:1
+# NONSTREAMING-NEXT: [27] - C1UUnitV5:1
+# NONSTREAMING-NEXT: [28] - C1UUnitV01:2 C1UUnitV0, C1UUnitV1
+# NONSTREAMING-NEXT: [29] - C1UUnitV02:2 C1UUnitV0, C1UUnitV2
+# NONSTREAMING-NEXT: [30] - C1UUnitV13:2 C1UUnitV1, C1UUnitV3
+# NONSTREAMING-NEXT: [31] - C1UUnitV0123:4 C1UUnitV0, C1UUnitV1, C1UUnitV2, C1UUnitV3
+# NONSTREAMING-NEXT: [32] - C1UUnitV0134:4 C1UUnitV0, C1UUnitV1, C1UUnitV3, C1UUnitV4
+
+# STREAMING: Resources:
+# STREAMING-NEXT: [0] - C1UUnitB:3
+# STREAMING-NEXT: [1] - C1UUnitCME:1
+# STREAMING-NEXT: [2] - C1UUnitD:2
+# STREAMING-NEXT: [3] - C1UUnitFlg:4
+# STREAMING-NEXT: [4] - C1UUnitI:8 C1UUnitS0, C1UUnitS1, C1UUnitS2, C1UUnitS3, C1UUnitS4, C1UUnitS5, C1UUnitM0, C1UUnitM1
+# STREAMING-NEXT: [5] - C1UUnitI4:4 C1UUnitS0, C1UUnitS2, C1UUnitS4, C1UUnitM0
+# STREAMING-NEXT: [6] - C1UUnitL:4 C1UUnitLS0, C1UUnitLS1, C1UUnitL23, C1UUnitL23
+# STREAMING-NEXT: [7] - C1UUnitL23:2
+# STREAMING-NEXT: [8] - C1UUnitLS0:1
+# STREAMING-NEXT: [9] - C1UUnitLS1:1
+# STREAMING-NEXT: [10] - C1UUnitM:2 C1UUnitM0, C1UUnitM1
+# STREAMING-NEXT: [11] - C1UUnitM0:1
+# STREAMING-NEXT: [12] - C1UUnitM1:1
+# STREAMING-NEXT: [13] - C1UUnitS:6 C1UUnitS0, C1UUnitS1, C1UUnitS2, C1UUnitS3, C1UUnitS4, C1UUnitS5
+# STREAMING-NEXT: [14] - C1UUnitS0:1
+# STREAMING-NEXT: [15] - C1UUnitS1:1
+# STREAMING-NEXT: [16] - C1UUnitS2:1
+# STREAMING-NEXT: [17] - C1UUnitS3:1
+# STREAMING-NEXT: [18] - C1UUnitS4:1
+# STREAMING-NEXT: [19] - C1UUnitS5:1
+# STREAMING-NEXT: [20] - C1UUnitSA:2 C1UUnitLS0, C1UUnitLS1
+# STREAMING-NEXT: [21] - C1UUnitV:6 C1UUnitV0, C1UUnitV1, C1UUnitV2, C1UUnitV3, C1UUnitV4, C1UUnitV5
+# STREAMING-NEXT: [22] - C1UUnitV0:1
+# STREAMING-NEXT: [23] - C1UUnitV1:1
+# STREAMING-NEXT: [24] - C1UUnitV2:1
+# STREAMING-NEXT: [25] - C1UUnitV3:1
+# STREAMING-NEXT: [26] - C1UUnitV4:1
+# STREAMING-NEXT: [27] - C1UUnitV5:1
+# STREAMING-NEXT: [28] - C1UUnitV01:2 C1UUnitV0, C1UUnitV1
+# STREAMING-NEXT: [29] - C1UUnitV02:2 C1UUnitV0, C1UUnitV2
+# STREAMING-NEXT: [30] - C1UUnitV13:2 C1UUnitV1, C1UUnitV3
+# STREAMING-NEXT: [31] - C1UUnitV0123:4 C1UUnitV0, C1UUnitV1, C1UUnitV2, C1UUnitV3
+# STREAMING-NEXT: [32] - C1UUnitV0134:4 C1UUnitV0, C1UUnitV1, C1UUnitV3, C1UUnitV4
+
+# NONSTREAMING: Instruction Info:
+# NONSTREAMING-NEXT: [1]: #uOps
+# NONSTREAMING-NEXT: [2]: Latency
+# NONSTREAMING-NEXT: [3]: RThroughput
+# NONSTREAMING-NEXT: [4]: MayLoad
+# NONSTREAMING-NEXT: [5]: MayStore
+# NONSTREAMING-NEXT: [6]: HasSideEffects (U)
+# NONSTREAMING-NEXT: [7]: Bypass Latency
+# NONSTREAMING-NEXT: [8]: Resources (<Name> | <Name>[<ReleaseAtCycle>] | <Name>[<AcquireAtCycle>,<ReleaseAtCycle])
+# NONSTREAMING-NEXT: [9]: LLVM Opcode Name
+
+# STREAMING: Instruction Info:
+# STREAMING-NEXT: [1]: #uOps
+# STREAMING-NEXT: [2]: Latency
+# STREAMING-NEXT: [3]: RThroughput
+# STREAMING-NEXT: [4]: MayLoad
+# STREAMING-NEXT: [5]: MayStore
+# STREAMING-NEXT: [6]: HasSideEffects (U)
+# STREAMING-NEXT: [7]: Bypass Latency
+# STREAMING-NEXT: [8]: Resources (<Name> | <Name>[<ReleaseAtCycle>] | <Name>[<AcquireAtCycle>,<ReleaseAtCycle])
+# STREAMING-NEXT: [9]: LLVM Opcode Name
+
+# NONSTREAMING: [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
+# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV FADDSrr fadd s0, s1, s2
+# NONSTREAMING-NEXT: 1 3 0.50 3 C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 FCVTZSUWSr fcvtzs w0, s1
+# NONSTREAMING-NEXT: 1 6 0.25 * 6 C1UUnitL LDRSui ldr s0, [x0]
+# NONSTREAMING-NEXT: 1 7 0.25 * 7 C1UUnitI,C1UUnitL LDRQroX ldr q0, [x0, x1, lsl #4]
+# NONSTREAMING-NEXT: 1 2 0.50 * 2 C1UUnitL,C1UUnitSA,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 STRSui str s0, [x0]
+# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV FADDv4f32 fadd v0.4s, v1.4s, v2.4s
+# NONSTREAMING-NEXT: 1 4 0.17 2 C1UUnitV BFDOTv8bf16 bfdot v0.4s, v1.8h, v2.8h
+# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV ADD_ZZZ_S add z0.s, z1.s, z2.s
+# NONSTREAMING-NEXT: 1 8 1.00 8 C1UUnitI,C1UUnitI4,C1UUnitM,C1UUnitM0,C1UUnitV[2],C1UUnitV1,C1UUnitV01[2],C1UUnitV13,C1UUnitV0123[2],C1UUnitV0134[2] CLASTB_RPZ_S clastb w0, p0, w0, z2.s
+# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV FADD_ZPmZ_S fadd z0.s, p0/m, z0.s, z1.s
+# NONSTREAMING-NEXT: 1 4 0.17 2 C1UUnitV BFDOT_ZZZ bfdot z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: 1 6 0.25 * 6 C1UUnitL LD1W_IMM ld1w { z0.s }, p0/z, [x0]
+# NONSTREAMING-NEXT: 1 8 0.50 * 8 C1UUnitL[2],C1UUnitV[2] LD2W_IMM ld2w { z0.s, z1.s }, p0/z, [x0]
+# NONSTREAMING-NEXT: 1 9 0.50 * 9 C1UUnitL,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 GLD1D_UXTW ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
+# NONSTREAMING-NEXT: 1 2 0.50 * 2 C1UUnitL,C1UUnitSA,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 ST1W_IMM st1w { z0.s }, p0, [x0]
+# NONSTREAMING-NEXT: 1 4 1.00 * 4 C1UUnitL[2],C1UUnitSA[2],C1UUnitV[2],C1UUnitV01[2],C1UUnitV0123[2],C1UUnitV0134[2] ST2W_IMM st2w { z0.s, z1.s }, p0, [x0]
+# NONSTREAMING-NEXT: 1 2 0.50 * 2 C1UUnitL,C1UUnitSA,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 SST1W_UXTW st1w { z0.s }, p0, [x0, z0.s, uxtw]
+# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV EOR3_ZZZZ eor3 z0.d, z0.d, z1.d, z2.d
+# NONSTREAMING-NEXT: 1 4 0.17 4 C1UUnitV BFMLSLB_ZZZ_S bfmlslb z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: 1 4 0.17 4 C1UUnitV FDOT_ZZZ_S fdot z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: 1 2 1.00 2 C1UUnitI[2],C1UUnitM[2] PSEL_PPPRI_B psel p0, p0, p0.b[w12, 0]
+# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV SQCVTN_Z2Z_StoH sqcvtn z0.h, { z0.s, z1.s }
+
+# STREAMING: [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME FADDSrr fadd s0, s1, s2
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME FCVTZSUWSr fcvtzs w0, s1
+# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL LDRSui ldr s0, [x0]
+# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitI,C1UUnitL LDRQroX ldr q0, [x0, x1, lsl #4]
+# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitSA STRSui str s0, [x0]
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME FADDv4f32 fadd v0.4s, v1.4s, v2.4s
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME BFDOTv8bf16 bfdot v0.4s, v1.8h, v2.8h
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME ADD_ZZZ_S add z0.s, z1.s, z2.s
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME,C1UUnitI,C1UUnitM CLASTB_RPZ_S clastb w0, p0, w0, z2.s
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME FADD_ZPmZ_S fadd z0.s, p0/m, z0.s, z1.s
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME BFDOT_ZZZ bfdot z0.s, z1.h, z2.h
+# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL LD1W_IMM ld1w { z0.s }, p0/z, [x0]
+# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 LD2W_IMM ld2w { z0.s, z1.s }, p0/z, [x0]
+# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 GLD1D_UXTW ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
+# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitSA ST1W_IMM st1w { z0.s }, p0, [x0]
+# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitSA ST2W_IMM st2w { z0.s, z1.s }, p0, [x0]
+# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitSA SST1W_UXTW st1w { z0.s }, p0, [x0, z0.s, uxtw]
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME EOR3_ZZZZ eor3 z0.d, z0.d, z1.d, z2.d
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME BFMLSLB_ZZZ_S bfmlslb z0.s, z1.h, z2.h
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME FDOT_ZZZ_S fdot z0.s, z1.h, z2.h
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME,C1UUnitI,C1UUnitM PSEL_PPPRI_B psel p0, p0, p0.b[w12, 0]
+# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME SQCVTN_Z2Z_StoH sqcvtn z0.h, { z0.s, z1.s }
+
+# NONSTREAMING: Resources:
+# NONSTREAMING-NEXT: [0.0] - C1UUnitB
+# NONSTREAMING-NEXT: [0.1] - C1UUnitB
+# NONSTREAMING-NEXT: [0.2] - C1UUnitB
+# NONSTREAMING-NEXT: [1] - C1UUnitCME
+# NONSTREAMING-NEXT: [2.0] - C1UUnitD
+# NONSTREAMING-NEXT: [2.1] - C1UUnitD
+# NONSTREAMING-NEXT: [3.0] - C1UUnitFlg
+# NONSTREAMING-NEXT: [3.1] - C1UUnitFlg
+# NONSTREAMING-NEXT: [3.2] - C1UUnitFlg
+# NONSTREAMING-NEXT: [3.3] - C1UUnitFlg
+# NONSTREAMING-NEXT: [4.0] - C1UUnitL23
+# NONSTREAMING-NEXT: [4.1] - C1UUnitL23
+# NONSTREAMING-NEXT: [5] - C1UUnitLS0
+# NONSTREAMING-NEXT: [6] - C1UUnitLS1
+# NONSTREAMING-NEXT: [7] - C1UUnitM0
+# NONSTREAMING-NEXT: [8] - C1UUnitM1
+# NONSTREAMING-NEXT: [9] - C1UUnitS0
+# NONSTREAMING-NEXT: [10] - C1UUnitS1
+# NONSTREAMING-NEXT: [11] - C1UUnitS2
+# NONSTREAMING-NEXT: [12] - C1UUnitS3
+# NONSTREAMING-NEXT: [13] - C1UUnitS4
+# NONSTREAMING-NEXT: [14] - C1UUnitS5
+# NONSTREAMING-NEXT: [15] - C1UUnitV0
+# NONSTREAMING-NEXT: [16] - C1UUnitV1
+# NONSTREAMING-NEXT: [17] - C1UUnitV2
+# NONSTREAMING-NEXT: [18] - C1UUnitV3
+# NONSTREAMING-NEXT: [19] - C1UUnitV4
+# NONSTREAMING-NEXT: [20] - C1UUnitV5
+
+# STREAMING: Resources:
+# STREAMING-NEXT: [0.0] - C1UUnitB
+# STREAMING-NEXT: [0.1] - C1UUnitB
+# STREAMING-NEXT: [0.2] - C1UUnitB
+# STREAMING-NEXT: [1] - C1UUnitCME
+# STREAMING-NEXT: [2.0] - C1UUnitD
+# STREAMING-NEXT: [2.1] - C1UUnitD
+# STREAMING-NEXT: [3.0] - C1UUnitFlg
+# STREAMING-NEXT: [3.1] - C1UUnitFlg
+# STREAMING-NEXT: [3.2] - C1UUnitFlg
+# STREAMING-NEXT: [3.3] - C1UUnitFlg
+# STREAMING-NEXT: [4.0] - C1UUnitL23
+# STREAMING-NEXT: [4.1] - C1UUnitL23
+# STREAMING-NEXT: [5] - C1UUnitLS0
+# STREAMING-NEXT: [6] - C1UUnitLS1
+# STREAMING-NEXT: [7] - C1UUnitM0
+# STREAMING-NEXT: [8] - C1UUnitM1
+# STREAMING-NEXT: [9] - C1UUnitS0
+# STREAMING-NEXT: [10] - C1UUnitS1
+# STREAMING-NEXT: [11] - C1UUnitS2
+# STREAMING-NEXT: [12] - C1UUnitS3
+# STREAMING-NEXT: [13] - C1UUnitS4
+# STREAMING-NEXT: [14] - C1UUnitS5
+# STREAMING-NEXT: [15] - C1UUnitV0
+# STREAMING-NEXT: [16] - C1UUnitV1
+# STREAMING-NEXT: [17] - C1UUnitV2
+# STREAMING-NEXT: [18] - C1UUnitV3
+# STREAMING-NEXT: [19] - C1UUnitV4
+# STREAMING-NEXT: [20] - C1UUnitV5
+
+# NONSTREAMING: Resource pressure per iteration:
+# NONSTREAMING-NEXT: [0.0] [0.1] [0.2] [1] [2.0] [2.1] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
+# NONSTREAMING-NEXT: - - - - - - - - - - 1.50 1.50 4.00 4.00 2.13 1.13 0.13 0.13 0.13 0.13 0.13 0.13 6.00 7.00 2.00 2.00 2.00 2.00
+
+# STREAMING: Resource pressure per iteration:
+# STREAMING-NEXT: [0.0] [0.1] [0.2] [1] [2.0] [2.1] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
+# STREAMING-NEXT: - - - 22.00 - - - - - - 1.25 1.25 3.25 3.25 1.13 1.13 0.13 0.13 0.13 0.13 0.13 0.13 1.00 1.00 - - - -
+
+# NONSTREAMING: Resource pressure by instruction:
+# NONSTREAMING-NEXT: [0.0] [0.1] [0.2] [1] [2.0] [2.1] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] Instructions:
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fadd s0, s1, s2
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.50 0.50 - - - - fcvtzs w0, s1
+# NONSTREAMING-NEXT: - - - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - ldr s0, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - 0.25 0.25 0.25 0.25 0.13 0.13 0.13 0.13 0.13 0.13 0.13 0.13 - - - - - - ldr q0, [x0, x1, lsl #4]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - 0.50 0.50 - - - - - - - - 0.50 0.50 - - - - str s0, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fadd v0.4s, v1.4s, v2.4s
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 bfdot v0.4s, v1.8h, v2.8h
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 add z0.s, z1.s, z2.s
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - 1.00 - - - - - - - 0.50 1.50 - - - - clastb w0, p0, w0, z2.s
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fadd z0.s, p0/m, z0.s, z1.s
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 bfdot z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: - - - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - ld1w { z0.s }, p0/z, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - 0.33 0.33 0.33 0.33 0.33 0.33 ld2w { z0.s, z1.s }, p0/z, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - 0.50 0.50 - - - - ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - 0.50 0.50 - - - - - - - - 0.50 0.50 - - - - st1w { z0.s }, p0, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - 1.00 1.00 - - - - - - - - 1.00 1.00 - - - - st2w { z0.s, z1.s }, p0, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - 0.50 0.50 - - - - - - - - 0.50 0.50 - - - - st1w { z0.s }, p0, [x0, z0.s, uxtw]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 eor3 z0.d, z0.d, z1.d, z2.d
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 bfmlslb z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fdot z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - 1.00 1.00 - - - - - - - - - - - - psel p0, p0, p0.b[w12, 0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 sqcvtn z0.h, { z0.s, z1.s }
+
+# STREAMING: Resource pressure by instruction:
+# STREAMING-NEXT: [0.0] [0.1] [0.2] [1] [2.0] [2.1] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] Instructions:
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - fadd s0, s1, s2
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - fcvtzs w0, s1
+# STREAMING-NEXT: - - - 1.00 - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - ldr s0, [x0]
+# STREAMING-NEXT: - - - 1.00 - - - - - - 0.25 0.25 0.25 0.25 0.13 0.13 0.13 0.13 0.13 0.13 0.13 0.13 - - - - - - ldr q0, [x0, x1, lsl #4]
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - str s0, [x0]
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - fadd v0.4s, v1.4s, v2.4s
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - bfdot v0.4s, v1.8h, v2.8h
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - add z0.s, z1.s, z2.s
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - clastb w0, p0, w0, z2.s
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - fadd z0.s, p0/m, z0.s, z1.s
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - bfdot z0.s, z1.h, z2.h
+# STREAMING-NEXT: - - - 1.00 - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - ld1w { z0.s }, p0/z, [x0]
+# STREAMING-NEXT: - - - 1.00 - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - 0.50 0.50 - - - - ld2w { z0.s, z1.s }, p0/z, [x0]
+# STREAMING-NEXT: - - - 1.00 - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - 0.50 0.50 - - - - ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - st1w { z0.s }, p0, [x0]
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - st2w { z0.s, z1.s }, p0, [x0]
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - st1w { z0.s }, p0, [x0, z0.s, uxtw]
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - eor3 z0.d, z0.d, z1.d, z2.d
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - bfmlslb z0.s, z1.h, z2.h
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - fdot z0.s, z1.h, z2.h
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - psel p0, p0, p0.b[w12, 0]
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - sqcvtn z0.h, { z0.s, z1.s }
diff --git a/llvm/test/tools/llvm-mca/AArch64/Inputs/streaming-cme-instructions.s b/llvm/test/tools/llvm-mca/AArch64/Inputs/streaming-cme-instructions.s
new file mode 100644
index 0000000000000..fbdf143cf3f40
--- /dev/null
+++ b/llvm/test/tools/llvm-mca/AArch64/Inputs/streaming-cme-instructions.s
@@ -0,0 +1,22 @@
+fadd s0, s1, s2
+fcvtzs w0, s1
+ldr s0, [x0]
+ldr q0, [x0, x1, lsl #4]
+str s0, [x0]
+fadd v0.4s, v1.4s, v2.4s
+bfdot v0.4s, v1.8h, v2.8h
+add z0.s, z1.s, z2.s
+clastb w0, p0, w0, z2.s
+fadd z0.s, p0/m, z0.s, z1.s
+bfdot z0.s, z1.h, z2.h
+ld1w { z0.s }, p0/z, [x0]
+ld2w { z0.s, z1.s }, p0/z, [x0]
+ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
+st1w { z0.s }, p0, [x0]
+st2w { z0.s, z1.s }, p0, [x0]
+st1w { z0.s }, p0, [x0, z0.s, uxtw]
+eor3 z0.d, z0.d, z1.d, z2.d
+bfmlslb z0.s, z1.h, z2.h
+fdot z0.s, z1.h, z2.h
+psel p0, p0, p0.b[w12, 0]
+sqcvtn z0.h, { z0.s, z1.s }
>From cf7ad84605329f068178f303d66bca876f1419f3 Mon Sep 17 00:00:00 2001
From: nasmnc01 <nashe.mncube at arm.com>
Date: Wed, 29 Apr 2026 09:41:41 +0100
Subject: [PATCH 3/3] Throughput adjustments
Adjusted throughputs to align with SWOG
Change-Id: I0d8f389b835dc148bc25d9bbe8d89a5715027e48
---
.../lib/Target/AArch64/AArch64SchedC1Ultra.td | 237 +++++-----
.../C1Ultra-streaming-cme-instructions.s | 404 ++++++++----------
2 files changed, 302 insertions(+), 339 deletions(-)
diff --git a/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td b/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td
index 0d0ecd0ac5736..6c38f261ea7a6 100644
--- a/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td
+++ b/llvm/lib/Target/AArch64/AArch64SchedC1Ultra.td
@@ -55,7 +55,9 @@ def C1UUnitLS0 : ProcResource<1>; // Load/Store 0
def C1UUnitLS1 : ProcResource<1>; // Load/Store 1
def C1UUnitL23 : ProcResource<2>; // Load 2/3
def C1UUnitD : ProcResource<2>; // Store data 0/1
-def C1UUnitCME : ProcResource<1>; // CME operations block
+def C1UUnitCME2X : ProcResource<2>; // CME operations block (2-way)
+def C1UUnitCME3X : ProcResource<3>; // CME operations block (3-way)
+def C1UUnitCME4X : ProcResource<4>; // CME operations block (4-way)
def C1UUnitFlg : ProcResource<4>; // Flags
def C1UUnitS : ProcResGroup<[C1UUnitS0, C1UUnitS1, C1UUnitS2, C1UUnitS3,
@@ -98,25 +100,26 @@ def : WriteRes<WriteLDHi, []> { let Latency = 4; }
// Define generic 0 micro-op types.
def C1UWrite_0c : SchedWriteRes<[]> { let Latency = 0; }
-def C1UWrite_0c_1C : SchedWriteRes<[C1UUnitCME]> { let Latency = 0; }
-def C1UWrite_0c_1M_1C : SchedWriteRes<[C1UUnitM, C1UUnitCME]> {
+def C1UWrite_0c_1C_4X : SchedWriteRes<[C1UUnitCME4X]> { let Latency = 0; }
+def C1UWrite_0c_1M_1C_2X : SchedWriteRes<[C1UUnitM, C1UUnitCME2X]> {
let Latency = 0;
}
-def C1UWrite_0c_1SA_1C : SchedWriteRes<[C1UUnitSA, C1UUnitCME]> {
+def C1UWrite_0c_1SA_1C_2X : SchedWriteRes<[C1UUnitSA, C1UUnitCME2X]> {
let Latency = 0;
}
-def C1UWrite_0c_1L_1C : SchedWriteRes<[C1UUnitL, C1UUnitCME]> {
+def C1UWrite_0c_1L_1C_3X : SchedWriteRes<[C1UUnitL, C1UUnitCME3X]> {
let Latency = 0;
}
-def C1UWrite_0c_1V01_1L_1C : SchedWriteRes<[C1UUnitV01, C1UUnitL,
- C1UUnitCME]> {
+def C1UWrite_0c_1V01_1L_1C_3X : SchedWriteRes<[C1UUnitV01, C1UUnitL,
+ C1UUnitCME3X]> {
let Latency = 0;
}
-def C1UWrite_0c_1I_1L_1C : SchedWriteRes<[C1UUnitI, C1UUnitL, C1UUnitCME]> {
+def C1UWrite_0c_1I_1L_1C_3X : SchedWriteRes<[C1UUnitI, C1UUnitL,
+ C1UUnitCME3X]> {
let Latency = 0;
}
-def C1UWrite_0c_1I_1V01_1L_1C : SchedWriteRes<[C1UUnitI, C1UUnitV01,
- C1UUnitL, C1UUnitCME]> {
+def C1UWrite_0c_1I_1V01_1L_1C_3X : SchedWriteRes<[C1UUnitI, C1UUnitV01,
+ C1UUnitL, C1UUnitCME3X]> {
let Latency = 0;
}
@@ -743,113 +746,113 @@ def C1UWrite_3or4c_1M0_1M : SchedWriteVariant<[
SchedVar<NeoversePdIsPg, [C1UWrite_4c_1M0_1M]>,
SchedVar<NoSchedPred, [C1UWrite_3c_1M0_1M]>]>;
-def C1UWr_FMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_FMA>;
-def C1UWR_VA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VA>;
-def C1UWR_VDOT_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VDOT>;
-def C1UWR_VMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VMMA>;
-def C1UWR_VMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VMA>;
-def C1UWR_VMAH_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VMAH>;
-def C1UWR_VPA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VPA>;
-def C1UWR_VSA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VSA>;
-def C1UWR_VFCMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VFCMA>;
-def C1UWR_VFMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VFMA>;
-def C1UWR_VBFDOT_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VBFDOT>;
-def C1UWR_VBFMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VBFMMA>;
-def C1UWR_VBFMAL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWR_VBFMAL>;
-def C1UWr_ZA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZA>;
-def C1UWr_ZPA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZPA>;
-def C1UWr_ZSA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZSA>;
-def C1UWr_ZDOTB_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZDOTB>;
-def C1UWr_ZDOTH_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZDOTH>;
-def C1UWr_ZCMABHS_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZCMABHS>;
-def C1UWr_ZMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZMMA>;
-def C1UWr_ZMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZMA>;
-def C1UWr_ZMASQL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZMASQL>;
-def C1UWr_ZFCMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZFCMA>;
-def C1UWr_ZFMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZFMA>;
-def C1UWr_ZFMAL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZFMAL>;
-def C1UWr_ZBFDOT_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZBFDOT>;
-def C1UWr_ZBFMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZBFMMA>;
-def C1UWr_ZBFMAL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWr_ZBFMAL>;
-
-def C1UWrite_2c_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_2c_1V>;
-def C1UWrite_2c_1V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_2c_1V0>;
-def C1UWrite_2c_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_2c_1V01>;
-def C1UWrite_2c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_2c_1V0134>;
-def C1UWrite_3c_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_3c_1V>;
-def C1UWrite_3c_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_3c_1V01>;
-def C1UWrite_3c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_3c_1V0134>;
-def C1UWrite_3c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_3c_1V1>;
-def C1UWrite_4c_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V>;
-def C1UWrite_4c_1V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V0>;
-def C1UWrite_4c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V0134>;
-def C1UWrite_4c_1V0134_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V0134_1V>;
-def C1UWrite_4c_1V_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V_1V0134>;
-def C1UWrite_4c_2V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_2V>;
-def C1UWrite_4c_2V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_2V0134>;
-def C1UWrite_5c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_5c_1V1>;
-def C1UWrite_6c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_1V0134>;
-def C1UWrite_6c_1V_2V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_1V_2V0134>;
-def C1UWrite_6c_2V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_2V1>;
-def C1UWrite_6c_2V_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_2V_1V0134>;
-def C1UWrite_6c_3V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_3V>;
-def C1UWrite_6c_6V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_6c_6V0>;
-def C1UWrite_8c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_8c_1V1>;
-def C1UWrite_8c_1V1_4rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_8c_1V1_4rc>;
-def C1UWrite_8c_1V_3V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_8c_1V_3V0134>;
-def C1UWrite_8c_4V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_8c_4V>;
-def C1UWrite_9c_1V1_2rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_9c_1V1_2rc>;
-def C1UWrite_10c_10V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_10c_10V0>;
-def C1UWrite_11c_1V0_4rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_11c_1V0_4rc>;
-def C1UWrite_11c_1V1_4rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_11c_1V1_4rc>;
-def C1UWrite_12c_1V0_8rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_12c_1V0_8rc>;
-def C1UWrite_12c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_12c_1V1>;
-def C1UWrite_12c_1V1_8rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_12c_1V1_8rc>;
-def C1UWrite_12c_7V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_12c_7V0>;
-def C1UWrite_13c_1V0_2rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_13c_1V0_2rc>;
-def C1UWrite_13c_1V1_2rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_13c_1V1_2rc>;
-def C1UWrite_20c_7V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_20c_7V0>;
-
-def C1UWrite_3c_1M0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_3c_1M0>;
-def C1UWrite_3c_1M0_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_3c_1M0_1V>;
-def C1UWrite_5c_1M0_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_5c_1M0_1V>;
-def C1UWrite_5c_1V1_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_5c_1V1_1V01>;
-def C1UWrite_5c_1V_1M0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_5c_1V_1M0>;
-def C1UWrite_7c_1M0_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_7c_1M0_1V0134>;
-def C1UWrite_8c_1M0_1V1_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_8c_1M0_1V1_1V01>;
-
-def C1UWrite_6c_1L_CME : C1UStreamingSchedWrite<C1UWrite_0c_1L_1C, C1UWrite_6c_1L>;
-def C1UWrite_6c_1L_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1L_1C, C1UWrite_6c_1L_1I>;
-def C1UWrite_6c_1L_1M_CME : C1UStreamingSchedWrite<C1UWrite_0c_1L_1C, C1UWrite_6c_1L_1M>;
-def C1UWrite_6c_2L_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1L_1C, C1UWrite_6c_2L_1I>;
-def C1UWrite_7c_1L_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1L_1C, C1UWrite_7c_1L_1I>;
-def C1UWrite_8c_2L_2V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C, C1UWrite_8c_2L_2V>;
-def C1UWrite_8c_3L_3V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C, C1UWrite_8c_3L_3V>;
-def C1UWrite_9c_1V01_1L_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C, C1UWrite_9c_1V01_1L>;
-def C1UWrite_9c_2L_2V_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1V01_1L_1C, C1UWrite_9c_2L_2V_1I>;
-def C1UWrite_9c_3L_3V_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1V01_1L_1C, C1UWrite_9c_3L_3V_1I>;
-def C1UWrite_10c_4L_8V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C, C1UWrite_10c_4L_8V>;
-def C1UWrite_11c_4L_8V_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1V01_1L_1C, C1UWrite_11c_4L_8V_1I>;
+def C1UWr_FMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_FMA>;
+def C1UWR_VA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VA>;
+def C1UWR_VDOT_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VDOT>;
+def C1UWR_VMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VMMA>;
+def C1UWR_VMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VMA>;
+def C1UWR_VMAH_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VMAH>;
+def C1UWR_VPA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VPA>;
+def C1UWR_VSA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VSA>;
+def C1UWR_VFCMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VFCMA>;
+def C1UWR_VFMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VFMA>;
+def C1UWR_VBFDOT_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VBFDOT>;
+def C1UWR_VBFMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VBFMMA>;
+def C1UWR_VBFMAL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWR_VBFMAL>;
+def C1UWr_ZA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZA>;
+def C1UWr_ZPA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZPA>;
+def C1UWr_ZSA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZSA>;
+def C1UWr_ZDOTB_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZDOTB>;
+def C1UWr_ZDOTH_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZDOTH>;
+def C1UWr_ZCMABHS_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZCMABHS>;
+def C1UWr_ZMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZMMA>;
+def C1UWr_ZMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZMA>;
+def C1UWr_ZMASQL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZMASQL>;
+def C1UWr_ZFCMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZFCMA>;
+def C1UWr_ZFMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZFMA>;
+def C1UWr_ZFMAL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZFMAL>;
+def C1UWr_ZBFDOT_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZBFDOT>;
+def C1UWr_ZBFMMA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZBFMMA>;
+def C1UWr_ZBFMAL_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWr_ZBFMAL>;
+
+def C1UWrite_2c_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_2c_1V>;
+def C1UWrite_2c_1V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_2c_1V0>;
+def C1UWrite_2c_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_2c_1V01>;
+def C1UWrite_2c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_2c_1V0134>;
+def C1UWrite_3c_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_3c_1V>;
+def C1UWrite_3c_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_3c_1V01>;
+def C1UWrite_3c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_3c_1V0134>;
+def C1UWrite_3c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_3c_1V1>;
+def C1UWrite_4c_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_4c_1V>;
+def C1UWrite_4c_1V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_4c_1V0>;
+def C1UWrite_4c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_4c_1V0134>;
+def C1UWrite_4c_1V0134_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_4c_1V0134_1V>;
+def C1UWrite_4c_1V_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_4c_1V_1V0134>;
+def C1UWrite_4c_2V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_4c_2V>;
+def C1UWrite_4c_2V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_4c_2V0134>;
+def C1UWrite_5c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_5c_1V1>;
+def C1UWrite_6c_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_6c_1V0134>;
+def C1UWrite_6c_1V_2V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_6c_1V_2V0134>;
+def C1UWrite_6c_2V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_6c_2V1>;
+def C1UWrite_6c_2V_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_6c_2V_1V0134>;
+def C1UWrite_6c_3V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_6c_3V>;
+def C1UWrite_6c_6V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_6c_6V0>;
+def C1UWrite_8c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_8c_1V1>;
+def C1UWrite_8c_1V1_4rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_8c_1V1_4rc>;
+def C1UWrite_8c_1V_3V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_8c_1V_3V0134>;
+def C1UWrite_8c_4V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_8c_4V>;
+def C1UWrite_9c_1V1_2rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_9c_1V1_2rc>;
+def C1UWrite_10c_10V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_10c_10V0>;
+def C1UWrite_11c_1V0_4rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_11c_1V0_4rc>;
+def C1UWrite_11c_1V1_4rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_11c_1V1_4rc>;
+def C1UWrite_12c_1V0_8rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_12c_1V0_8rc>;
+def C1UWrite_12c_1V1_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_12c_1V1>;
+def C1UWrite_12c_1V1_8rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_12c_1V1_8rc>;
+def C1UWrite_12c_7V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_12c_7V0>;
+def C1UWrite_13c_1V0_2rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_13c_1V0_2rc>;
+def C1UWrite_13c_1V1_2rc_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_13c_1V1_2rc>;
+def C1UWrite_20c_7V0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_20c_7V0>;
+
+def C1UWrite_3c_1M0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C_2X, C1UWrite_3c_1M0>;
+def C1UWrite_3c_1M0_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C_2X, C1UWrite_3c_1M0_1V>;
+def C1UWrite_5c_1M0_1V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C_2X, C1UWrite_5c_1M0_1V>;
+def C1UWrite_5c_1V1_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C_2X, C1UWrite_5c_1V1_1V01>;
+def C1UWrite_5c_1V_1M0_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C_2X, C1UWrite_5c_1V_1M0>;
+def C1UWrite_7c_1M0_1V0134_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C_2X, C1UWrite_7c_1M0_1V0134>;
+def C1UWrite_8c_1M0_1V1_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1M_1C_2X, C1UWrite_8c_1M0_1V1_1V01>;
+
+def C1UWrite_6c_1L_CME : C1UStreamingSchedWrite<C1UWrite_0c_1L_1C_3X, C1UWrite_6c_1L>;
+def C1UWrite_6c_1L_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1L_1C_3X, C1UWrite_6c_1L_1I>;
+def C1UWrite_6c_1L_1M_CME : C1UStreamingSchedWrite<C1UWrite_0c_1L_1C_3X, C1UWrite_6c_1L_1M>;
+def C1UWrite_6c_2L_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1L_1C_3X, C1UWrite_6c_2L_1I>;
+def C1UWrite_7c_1L_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1L_1C_3X, C1UWrite_7c_1L_1I>;
+def C1UWrite_8c_2L_2V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C_3X, C1UWrite_8c_2L_2V>;
+def C1UWrite_8c_3L_3V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C_3X, C1UWrite_8c_3L_3V>;
+def C1UWrite_9c_1V01_1L_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C_3X, C1UWrite_9c_1V01_1L>;
+def C1UWrite_9c_2L_2V_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1V01_1L_1C_3X, C1UWrite_9c_2L_2V_1I>;
+def C1UWrite_9c_3L_3V_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1V01_1L_1C_3X, C1UWrite_9c_3L_3V_1I>;
+def C1UWrite_10c_4L_8V_CME : C1UStreamingSchedWrite<C1UWrite_0c_1V01_1L_1C_3X, C1UWrite_10c_4L_8V>;
+def C1UWrite_11c_4L_8V_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1I_1V01_1L_1C_3X, C1UWrite_11c_4L_8V_1I>;
def C1UWrite_LdrQ_CME : SchedWriteVariant<[
SchedVar<FPIsQForm, [C1UWrite_7c_1L_1I_CME]>,
SchedVar<NoSchedPred, [C1UWrite_6c_1L_CME]>]>;
-def C1UWrite_1c_1SA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_1c_1SA>;
-def C1UWrite_2c_1SA_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_2c_1SA_1V01>;
-def C1UWrite_2c_1SA_1V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_2c_1SA_1V01_1I>;
-def C1UWrite_2or4c_1SA_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_2or4c_1SA_1V01>;
-def C1UWrite_2or4c_3SA_6V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_2or4c_3SA_6V01>;
-def C1UWrite_2c_2SA_2V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_2c_2SA_2V01>;
-def C1UWrite_4c_2SA_2V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_4c_2SA_2V01>;
-def C1UWrite_4c_2SA_2V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_4c_2SA_2V01_1I>;
-def C1UWrite_4or6c_3SA_3V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_4or6c_3SA_3V01>;
-def C1UWrite_5c_3SA_3V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_5c_3SA_3V01>;
-def C1UWrite_5c_3SA_3V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_5c_3SA_3V01_1I>;
-def C1UWrite_5or7c_3SA_6V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_5or7c_3SA_6V01>;
-def C1UWrite_5or7c_5SA_5V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_5or7c_5SA_5V01>;
-def C1UWrite_7c_4SA_4V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_7c_4SA_4V01>;
-def C1UWrite_7c_4SA_4V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C, C1UWrite_7c_4SA_4V01_1I>;
+def C1UWrite_1c_1SA_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_1c_1SA>;
+def C1UWrite_2c_1SA_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_2c_1SA_1V01>;
+def C1UWrite_2c_1SA_1V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_2c_1SA_1V01_1I>;
+def C1UWrite_2or4c_1SA_1V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_2or4c_1SA_1V01>;
+def C1UWrite_2or4c_3SA_6V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_2or4c_3SA_6V01>;
+def C1UWrite_2c_2SA_2V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_2c_2SA_2V01>;
+def C1UWrite_4c_2SA_2V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_4c_2SA_2V01>;
+def C1UWrite_4c_2SA_2V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_4c_2SA_2V01_1I>;
+def C1UWrite_4or6c_3SA_3V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_4or6c_3SA_3V01>;
+def C1UWrite_5c_3SA_3V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_5c_3SA_3V01>;
+def C1UWrite_5c_3SA_3V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_5c_3SA_3V01_1I>;
+def C1UWrite_5or7c_3SA_6V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_5or7c_3SA_6V01>;
+def C1UWrite_5or7c_5SA_5V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_5or7c_5SA_5V01>;
+def C1UWrite_7c_4SA_4V01_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_7c_4SA_4V01>;
+def C1UWrite_7c_4SA_4V01_1I_CME : C1UStreamingSchedWrite<C1UWrite_0c_1SA_1C_2X, C1UWrite_7c_4SA_4V01_1I>;
def C1UWrite_StrQ_CME : SchedWriteVariant<[
SchedVar<FPIsQForm, [C1UWrite_2c_1SA_1V01_1I_CME]>,
@@ -893,11 +896,11 @@ def C1UWrite_2c_2M_Streaming : SchedWriteVariant<[
SchedVar<SMESchedPred, [C1UWrite_2c_2M]>,
SchedVar<NoSchedPred, [C1UWrite_0c]>]>;
-def C1UWrite_2c_1V_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_2c_1V>;
-def C1UWrite_3c_1V01_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_3c_1V01>;
-def C1UWrite_4c_1V_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1C, C1UWrite_4c_1V>;
-def C1UWrite_2c_1M_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_2c_1M>;
-def C1UWrite_2c_2M_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1M_1C, C1UWrite_2c_2M>;
+def C1UWrite_2c_1V_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_2c_1V>;
+def C1UWrite_3c_1V01_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_3c_1V01>;
+def C1UWrite_4c_1V_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1C_4X, C1UWrite_4c_1V>;
+def C1UWrite_2c_1M_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1M_1C_2X, C1UWrite_2c_1M>;
+def C1UWrite_2c_2M_StreamingCME : C1USMEStreamingSchedWrite<C1UWrite_0c_1M_1C_2X, C1UWrite_2c_2M>;
// Miscellaneous
diff --git a/llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-streaming-cme-instructions.s b/llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-streaming-cme-instructions.s
index 17720bebd7bcf..40d1a57393f4e 100644
--- a/llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-streaming-cme-instructions.s
+++ b/llvm/test/tools/llvm-mca/AArch64/Cortex/C1Ultra-streaming-cme-instructions.s
@@ -1,6 +1,6 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=aarch64 -mcpu=c1-ultra -mattr=+sme2p2,+mca-streaming-sched -instruction-tables=full < %p/../Inputs/streaming-cme-instructions.s | FileCheck %s --check-prefix=STREAMING
-# RUN: llvm-mca -mtriple=aarch64 -mcpu=c1-ultra -mattr=+sme2p2 -instruction-tables=full < %p/../Inputs/streaming-cme-instructions.s | FileCheck %s --check-prefix=NONSTREAMING
+# RUN: llvm-mca -mtriple=aarch64 -mcpu=c1-ultra -mattr=+sme2p2,+mca-streaming-sched < %p/../Inputs/streaming-cme-instructions.s | FileCheck %s --check-prefix=STREAMING
+# RUN: llvm-mca -mtriple=aarch64 -mcpu=c1-ultra -mattr=+sme2p2 < %p/../Inputs/streaming-cme-instructions.s | FileCheck %s --check-prefix=NONSTREAMING
fadd s0, s1, s2
fcvtzs w0, s1
@@ -25,75 +25,25 @@ fdot z0.s, z1.h, z2.h
psel p0, p0, p0.b[w12, 0]
sqcvtn z0.h, { z0.s, z1.s }
-# NONSTREAMING: Resources:
-# NONSTREAMING-NEXT: [0] - C1UUnitB:3
-# NONSTREAMING-NEXT: [1] - C1UUnitCME:1
-# NONSTREAMING-NEXT: [2] - C1UUnitD:2
-# NONSTREAMING-NEXT: [3] - C1UUnitFlg:4
-# NONSTREAMING-NEXT: [4] - C1UUnitI:8 C1UUnitS0, C1UUnitS1, C1UUnitS2, C1UUnitS3, C1UUnitS4, C1UUnitS5, C1UUnitM0, C1UUnitM1
-# NONSTREAMING-NEXT: [5] - C1UUnitI4:4 C1UUnitS0, C1UUnitS2, C1UUnitS4, C1UUnitM0
-# NONSTREAMING-NEXT: [6] - C1UUnitL:4 C1UUnitLS0, C1UUnitLS1, C1UUnitL23, C1UUnitL23
-# NONSTREAMING-NEXT: [7] - C1UUnitL23:2
-# NONSTREAMING-NEXT: [8] - C1UUnitLS0:1
-# NONSTREAMING-NEXT: [9] - C1UUnitLS1:1
-# NONSTREAMING-NEXT: [10] - C1UUnitM:2 C1UUnitM0, C1UUnitM1
-# NONSTREAMING-NEXT: [11] - C1UUnitM0:1
-# NONSTREAMING-NEXT: [12] - C1UUnitM1:1
-# NONSTREAMING-NEXT: [13] - C1UUnitS:6 C1UUnitS0, C1UUnitS1, C1UUnitS2, C1UUnitS3, C1UUnitS4, C1UUnitS5
-# NONSTREAMING-NEXT: [14] - C1UUnitS0:1
-# NONSTREAMING-NEXT: [15] - C1UUnitS1:1
-# NONSTREAMING-NEXT: [16] - C1UUnitS2:1
-# NONSTREAMING-NEXT: [17] - C1UUnitS3:1
-# NONSTREAMING-NEXT: [18] - C1UUnitS4:1
-# NONSTREAMING-NEXT: [19] - C1UUnitS5:1
-# NONSTREAMING-NEXT: [20] - C1UUnitSA:2 C1UUnitLS0, C1UUnitLS1
-# NONSTREAMING-NEXT: [21] - C1UUnitV:6 C1UUnitV0, C1UUnitV1, C1UUnitV2, C1UUnitV3, C1UUnitV4, C1UUnitV5
-# NONSTREAMING-NEXT: [22] - C1UUnitV0:1
-# NONSTREAMING-NEXT: [23] - C1UUnitV1:1
-# NONSTREAMING-NEXT: [24] - C1UUnitV2:1
-# NONSTREAMING-NEXT: [25] - C1UUnitV3:1
-# NONSTREAMING-NEXT: [26] - C1UUnitV4:1
-# NONSTREAMING-NEXT: [27] - C1UUnitV5:1
-# NONSTREAMING-NEXT: [28] - C1UUnitV01:2 C1UUnitV0, C1UUnitV1
-# NONSTREAMING-NEXT: [29] - C1UUnitV02:2 C1UUnitV0, C1UUnitV2
-# NONSTREAMING-NEXT: [30] - C1UUnitV13:2 C1UUnitV1, C1UUnitV3
-# NONSTREAMING-NEXT: [31] - C1UUnitV0123:4 C1UUnitV0, C1UUnitV1, C1UUnitV2, C1UUnitV3
-# NONSTREAMING-NEXT: [32] - C1UUnitV0134:4 C1UUnitV0, C1UUnitV1, C1UUnitV3, C1UUnitV4
+# NONSTREAMING: Iterations: 100
+# NONSTREAMING-NEXT: Instructions: 2200
+# NONSTREAMING-NEXT: Total Cycles: 1924
+# NONSTREAMING-NEXT: Total uOps: 2200
-# STREAMING: Resources:
-# STREAMING-NEXT: [0] - C1UUnitB:3
-# STREAMING-NEXT: [1] - C1UUnitCME:1
-# STREAMING-NEXT: [2] - C1UUnitD:2
-# STREAMING-NEXT: [3] - C1UUnitFlg:4
-# STREAMING-NEXT: [4] - C1UUnitI:8 C1UUnitS0, C1UUnitS1, C1UUnitS2, C1UUnitS3, C1UUnitS4, C1UUnitS5, C1UUnitM0, C1UUnitM1
-# STREAMING-NEXT: [5] - C1UUnitI4:4 C1UUnitS0, C1UUnitS2, C1UUnitS4, C1UUnitM0
-# STREAMING-NEXT: [6] - C1UUnitL:4 C1UUnitLS0, C1UUnitLS1, C1UUnitL23, C1UUnitL23
-# STREAMING-NEXT: [7] - C1UUnitL23:2
-# STREAMING-NEXT: [8] - C1UUnitLS0:1
-# STREAMING-NEXT: [9] - C1UUnitLS1:1
-# STREAMING-NEXT: [10] - C1UUnitM:2 C1UUnitM0, C1UUnitM1
-# STREAMING-NEXT: [11] - C1UUnitM0:1
-# STREAMING-NEXT: [12] - C1UUnitM1:1
-# STREAMING-NEXT: [13] - C1UUnitS:6 C1UUnitS0, C1UUnitS1, C1UUnitS2, C1UUnitS3, C1UUnitS4, C1UUnitS5
-# STREAMING-NEXT: [14] - C1UUnitS0:1
-# STREAMING-NEXT: [15] - C1UUnitS1:1
-# STREAMING-NEXT: [16] - C1UUnitS2:1
-# STREAMING-NEXT: [17] - C1UUnitS3:1
-# STREAMING-NEXT: [18] - C1UUnitS4:1
-# STREAMING-NEXT: [19] - C1UUnitS5:1
-# STREAMING-NEXT: [20] - C1UUnitSA:2 C1UUnitLS0, C1UUnitLS1
-# STREAMING-NEXT: [21] - C1UUnitV:6 C1UUnitV0, C1UUnitV1, C1UUnitV2, C1UUnitV3, C1UUnitV4, C1UUnitV5
-# STREAMING-NEXT: [22] - C1UUnitV0:1
-# STREAMING-NEXT: [23] - C1UUnitV1:1
-# STREAMING-NEXT: [24] - C1UUnitV2:1
-# STREAMING-NEXT: [25] - C1UUnitV3:1
-# STREAMING-NEXT: [26] - C1UUnitV4:1
-# STREAMING-NEXT: [27] - C1UUnitV5:1
-# STREAMING-NEXT: [28] - C1UUnitV01:2 C1UUnitV0, C1UUnitV1
-# STREAMING-NEXT: [29] - C1UUnitV02:2 C1UUnitV0, C1UUnitV2
-# STREAMING-NEXT: [30] - C1UUnitV13:2 C1UUnitV1, C1UUnitV3
-# STREAMING-NEXT: [31] - C1UUnitV0123:4 C1UUnitV0, C1UUnitV1, C1UUnitV2, C1UUnitV3
-# STREAMING-NEXT: [32] - C1UUnitV0134:4 C1UUnitV0, C1UUnitV1, C1UUnitV3, C1UUnitV4
+# STREAMING: Iterations: 100
+# STREAMING-NEXT: Instructions: 2200
+# STREAMING-NEXT: Total Cycles: 303
+# STREAMING-NEXT: Total uOps: 2200
+
+# NONSTREAMING: Dispatch Width: 10
+# NONSTREAMING-NEXT: uOps Per Cycle: 1.14
+# NONSTREAMING-NEXT: IPC: 1.14
+# NONSTREAMING-NEXT: Block RThroughput: 4.0
+
+# STREAMING: Dispatch Width: 10
+# STREAMING-NEXT: uOps Per Cycle: 7.26
+# STREAMING-NEXT: IPC: 7.26
+# STREAMING-NEXT: Block RThroughput: 3.0
# NONSTREAMING: Instruction Info:
# NONSTREAMING-NEXT: [1]: #uOps
@@ -102,9 +52,6 @@ sqcvtn z0.h, { z0.s, z1.s }
# NONSTREAMING-NEXT: [4]: MayLoad
# NONSTREAMING-NEXT: [5]: MayStore
# NONSTREAMING-NEXT: [6]: HasSideEffects (U)
-# NONSTREAMING-NEXT: [7]: Bypass Latency
-# NONSTREAMING-NEXT: [8]: Resources (<Name> | <Name>[<ReleaseAtCycle>] | <Name>[<AcquireAtCycle>,<ReleaseAtCycle])
-# NONSTREAMING-NEXT: [9]: LLVM Opcode Name
# STREAMING: Instruction Info:
# STREAMING-NEXT: [1]: #uOps
@@ -113,172 +60,185 @@ sqcvtn z0.h, { z0.s, z1.s }
# STREAMING-NEXT: [4]: MayLoad
# STREAMING-NEXT: [5]: MayStore
# STREAMING-NEXT: [6]: HasSideEffects (U)
-# STREAMING-NEXT: [7]: Bypass Latency
-# STREAMING-NEXT: [8]: Resources (<Name> | <Name>[<ReleaseAtCycle>] | <Name>[<AcquireAtCycle>,<ReleaseAtCycle])
-# STREAMING-NEXT: [9]: LLVM Opcode Name
-# NONSTREAMING: [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
-# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV FADDSrr fadd s0, s1, s2
-# NONSTREAMING-NEXT: 1 3 0.50 3 C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 FCVTZSUWSr fcvtzs w0, s1
-# NONSTREAMING-NEXT: 1 6 0.25 * 6 C1UUnitL LDRSui ldr s0, [x0]
-# NONSTREAMING-NEXT: 1 7 0.25 * 7 C1UUnitI,C1UUnitL LDRQroX ldr q0, [x0, x1, lsl #4]
-# NONSTREAMING-NEXT: 1 2 0.50 * 2 C1UUnitL,C1UUnitSA,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 STRSui str s0, [x0]
-# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV FADDv4f32 fadd v0.4s, v1.4s, v2.4s
-# NONSTREAMING-NEXT: 1 4 0.17 2 C1UUnitV BFDOTv8bf16 bfdot v0.4s, v1.8h, v2.8h
-# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV ADD_ZZZ_S add z0.s, z1.s, z2.s
-# NONSTREAMING-NEXT: 1 8 1.00 8 C1UUnitI,C1UUnitI4,C1UUnitM,C1UUnitM0,C1UUnitV[2],C1UUnitV1,C1UUnitV01[2],C1UUnitV13,C1UUnitV0123[2],C1UUnitV0134[2] CLASTB_RPZ_S clastb w0, p0, w0, z2.s
-# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV FADD_ZPmZ_S fadd z0.s, p0/m, z0.s, z1.s
-# NONSTREAMING-NEXT: 1 4 0.17 2 C1UUnitV BFDOT_ZZZ bfdot z0.s, z1.h, z2.h
-# NONSTREAMING-NEXT: 1 6 0.25 * 6 C1UUnitL LD1W_IMM ld1w { z0.s }, p0/z, [x0]
-# NONSTREAMING-NEXT: 1 8 0.50 * 8 C1UUnitL[2],C1UUnitV[2] LD2W_IMM ld2w { z0.s, z1.s }, p0/z, [x0]
-# NONSTREAMING-NEXT: 1 9 0.50 * 9 C1UUnitL,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 GLD1D_UXTW ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
-# NONSTREAMING-NEXT: 1 2 0.50 * 2 C1UUnitL,C1UUnitSA,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 ST1W_IMM st1w { z0.s }, p0, [x0]
-# NONSTREAMING-NEXT: 1 4 1.00 * 4 C1UUnitL[2],C1UUnitSA[2],C1UUnitV[2],C1UUnitV01[2],C1UUnitV0123[2],C1UUnitV0134[2] ST2W_IMM st2w { z0.s, z1.s }, p0, [x0]
-# NONSTREAMING-NEXT: 1 2 0.50 * 2 C1UUnitL,C1UUnitSA,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 SST1W_UXTW st1w { z0.s }, p0, [x0, z0.s, uxtw]
-# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV EOR3_ZZZZ eor3 z0.d, z0.d, z1.d, z2.d
-# NONSTREAMING-NEXT: 1 4 0.17 4 C1UUnitV BFMLSLB_ZZZ_S bfmlslb z0.s, z1.h, z2.h
-# NONSTREAMING-NEXT: 1 4 0.17 4 C1UUnitV FDOT_ZZZ_S fdot z0.s, z1.h, z2.h
-# NONSTREAMING-NEXT: 1 2 1.00 2 C1UUnitI[2],C1UUnitM[2] PSEL_PPPRI_B psel p0, p0, p0.b[w12, 0]
-# NONSTREAMING-NEXT: 1 2 0.17 2 C1UUnitV SQCVTN_Z2Z_StoH sqcvtn z0.h, { z0.s, z1.s }
+# NONSTREAMING: [1] [2] [3] [4] [5] [6] Instructions:
+# NONSTREAMING-NEXT: 1 2 0.17 fadd s0, s1, s2
+# NONSTREAMING-NEXT: 1 3 0.50 fcvtzs w0, s1
+# NONSTREAMING-NEXT: 1 6 0.25 * ldr s0, [x0]
+# NONSTREAMING-NEXT: 1 7 0.25 * ldr q0, [x0, x1, lsl #4]
+# NONSTREAMING-NEXT: 1 2 0.50 * str s0, [x0]
+# NONSTREAMING-NEXT: 1 2 0.17 fadd v0.4s, v1.4s, v2.4s
+# NONSTREAMING-NEXT: 1 4 0.17 bfdot v0.4s, v1.8h, v2.8h
+# NONSTREAMING-NEXT: 1 2 0.17 add z0.s, z1.s, z2.s
+# NONSTREAMING-NEXT: 1 8 1.00 clastb w0, p0, w0, z2.s
+# NONSTREAMING-NEXT: 1 2 0.17 fadd z0.s, p0/m, z0.s, z1.s
+# NONSTREAMING-NEXT: 1 4 0.17 bfdot z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: 1 6 0.25 * ld1w { z0.s }, p0/z, [x0]
+# NONSTREAMING-NEXT: 1 8 0.50 * ld2w { z0.s, z1.s }, p0/z, [x0]
+# NONSTREAMING-NEXT: 1 9 0.50 * ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
+# NONSTREAMING-NEXT: 1 2 0.50 * st1w { z0.s }, p0, [x0]
+# NONSTREAMING-NEXT: 1 4 1.00 * st2w { z0.s, z1.s }, p0, [x0]
+# NONSTREAMING-NEXT: 1 2 0.50 * st1w { z0.s }, p0, [x0, z0.s, uxtw]
+# NONSTREAMING-NEXT: 1 2 0.17 eor3 z0.d, z0.d, z1.d, z2.d
+# NONSTREAMING-NEXT: 1 4 0.17 bfmlslb z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: 1 4 0.17 fdot z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: 1 2 1.00 psel p0, p0, p0.b[w12, 0]
+# NONSTREAMING-NEXT: 1 2 0.17 sqcvtn z0.h, { z0.s, z1.s }
-# STREAMING: [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME FADDSrr fadd s0, s1, s2
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME FCVTZSUWSr fcvtzs w0, s1
-# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL LDRSui ldr s0, [x0]
-# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitI,C1UUnitL LDRQroX ldr q0, [x0, x1, lsl #4]
-# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitSA STRSui str s0, [x0]
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME FADDv4f32 fadd v0.4s, v1.4s, v2.4s
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME BFDOTv8bf16 bfdot v0.4s, v1.8h, v2.8h
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME ADD_ZZZ_S add z0.s, z1.s, z2.s
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME,C1UUnitI,C1UUnitM CLASTB_RPZ_S clastb w0, p0, w0, z2.s
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME FADD_ZPmZ_S fadd z0.s, p0/m, z0.s, z1.s
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME BFDOT_ZZZ bfdot z0.s, z1.h, z2.h
-# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL LD1W_IMM ld1w { z0.s }, p0/z, [x0]
-# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 LD2W_IMM ld2w { z0.s, z1.s }, p0/z, [x0]
-# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitV,C1UUnitV01,C1UUnitV0123,C1UUnitV0134 GLD1D_UXTW ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
-# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitSA ST1W_IMM st1w { z0.s }, p0, [x0]
-# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitSA ST2W_IMM st2w { z0.s, z1.s }, p0, [x0]
-# STREAMING-NEXT: 1 0 1.00 * 0 C1UUnitCME,C1UUnitL,C1UUnitSA SST1W_UXTW st1w { z0.s }, p0, [x0, z0.s, uxtw]
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME EOR3_ZZZZ eor3 z0.d, z0.d, z1.d, z2.d
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME BFMLSLB_ZZZ_S bfmlslb z0.s, z1.h, z2.h
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME FDOT_ZZZ_S fdot z0.s, z1.h, z2.h
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME,C1UUnitI,C1UUnitM PSEL_PPPRI_B psel p0, p0, p0.b[w12, 0]
-# STREAMING-NEXT: 1 0 1.00 0 C1UUnitCME SQCVTN_Z2Z_StoH sqcvtn z0.h, { z0.s, z1.s }
+# STREAMING: [1] [2] [3] [4] [5] [6] Instructions:
+# STREAMING-NEXT: 1 0 0.25 fadd s0, s1, s2
+# STREAMING-NEXT: 1 0 0.25 fcvtzs w0, s1
+# STREAMING-NEXT: 1 0 0.33 * ldr s0, [x0]
+# STREAMING-NEXT: 1 0 0.33 * ldr q0, [x0, x1, lsl #4]
+# STREAMING-NEXT: 1 0 0.50 * str s0, [x0]
+# STREAMING-NEXT: 1 0 0.25 fadd v0.4s, v1.4s, v2.4s
+# STREAMING-NEXT: 1 0 0.25 bfdot v0.4s, v1.8h, v2.8h
+# STREAMING-NEXT: 1 0 0.25 add z0.s, z1.s, z2.s
+# STREAMING-NEXT: 1 0 0.50 clastb w0, p0, w0, z2.s
+# STREAMING-NEXT: 1 0 0.25 fadd z0.s, p0/m, z0.s, z1.s
+# STREAMING-NEXT: 1 0 0.25 bfdot z0.s, z1.h, z2.h
+# STREAMING-NEXT: 1 0 0.33 * ld1w { z0.s }, p0/z, [x0]
+# STREAMING-NEXT: 1 0 0.50 * ld2w { z0.s, z1.s }, p0/z, [x0]
+# STREAMING-NEXT: 1 0 0.50 * ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
+# STREAMING-NEXT: 1 0 0.50 * st1w { z0.s }, p0, [x0]
+# STREAMING-NEXT: 1 0 0.50 * st2w { z0.s, z1.s }, p0, [x0]
+# STREAMING-NEXT: 1 0 0.50 * st1w { z0.s }, p0, [x0, z0.s, uxtw]
+# STREAMING-NEXT: 1 0 0.25 eor3 z0.d, z0.d, z1.d, z2.d
+# STREAMING-NEXT: 1 0 0.25 bfmlslb z0.s, z1.h, z2.h
+# STREAMING-NEXT: 1 0 0.25 fdot z0.s, z1.h, z2.h
+# STREAMING-NEXT: 1 0 0.50 psel p0, p0, p0.b[w12, 0]
+# STREAMING-NEXT: 1 0 0.25 sqcvtn z0.h, { z0.s, z1.s }
# NONSTREAMING: Resources:
# NONSTREAMING-NEXT: [0.0] - C1UUnitB
# NONSTREAMING-NEXT: [0.1] - C1UUnitB
# NONSTREAMING-NEXT: [0.2] - C1UUnitB
-# NONSTREAMING-NEXT: [1] - C1UUnitCME
-# NONSTREAMING-NEXT: [2.0] - C1UUnitD
-# NONSTREAMING-NEXT: [2.1] - C1UUnitD
-# NONSTREAMING-NEXT: [3.0] - C1UUnitFlg
-# NONSTREAMING-NEXT: [3.1] - C1UUnitFlg
-# NONSTREAMING-NEXT: [3.2] - C1UUnitFlg
-# NONSTREAMING-NEXT: [3.3] - C1UUnitFlg
-# NONSTREAMING-NEXT: [4.0] - C1UUnitL23
-# NONSTREAMING-NEXT: [4.1] - C1UUnitL23
-# NONSTREAMING-NEXT: [5] - C1UUnitLS0
-# NONSTREAMING-NEXT: [6] - C1UUnitLS1
-# NONSTREAMING-NEXT: [7] - C1UUnitM0
-# NONSTREAMING-NEXT: [8] - C1UUnitM1
-# NONSTREAMING-NEXT: [9] - C1UUnitS0
-# NONSTREAMING-NEXT: [10] - C1UUnitS1
-# NONSTREAMING-NEXT: [11] - C1UUnitS2
-# NONSTREAMING-NEXT: [12] - C1UUnitS3
-# NONSTREAMING-NEXT: [13] - C1UUnitS4
-# NONSTREAMING-NEXT: [14] - C1UUnitS5
-# NONSTREAMING-NEXT: [15] - C1UUnitV0
-# NONSTREAMING-NEXT: [16] - C1UUnitV1
-# NONSTREAMING-NEXT: [17] - C1UUnitV2
-# NONSTREAMING-NEXT: [18] - C1UUnitV3
-# NONSTREAMING-NEXT: [19] - C1UUnitV4
-# NONSTREAMING-NEXT: [20] - C1UUnitV5
+# NONSTREAMING-NEXT: [1.0] - C1UUnitCME2X
+# NONSTREAMING-NEXT: [1.1] - C1UUnitCME2X
+# NONSTREAMING-NEXT: [2.0] - C1UUnitCME3X
+# NONSTREAMING-NEXT: [2.1] - C1UUnitCME3X
+# NONSTREAMING-NEXT: [2.2] - C1UUnitCME3X
+# NONSTREAMING-NEXT: [3.0] - C1UUnitCME4X
+# NONSTREAMING-NEXT: [3.1] - C1UUnitCME4X
+# NONSTREAMING-NEXT: [3.2] - C1UUnitCME4X
+# NONSTREAMING-NEXT: [3.3] - C1UUnitCME4X
+# NONSTREAMING-NEXT: [4.0] - C1UUnitD
+# NONSTREAMING-NEXT: [4.1] - C1UUnitD
+# NONSTREAMING-NEXT: [5.0] - C1UUnitFlg
+# NONSTREAMING-NEXT: [5.1] - C1UUnitFlg
+# NONSTREAMING-NEXT: [5.2] - C1UUnitFlg
+# NONSTREAMING-NEXT: [5.3] - C1UUnitFlg
+# NONSTREAMING-NEXT: [6.0] - C1UUnitL23
+# NONSTREAMING-NEXT: [6.1] - C1UUnitL23
+# NONSTREAMING-NEXT: [7] - C1UUnitLS0
+# NONSTREAMING-NEXT: [8] - C1UUnitLS1
+# NONSTREAMING-NEXT: [9] - C1UUnitM0
+# NONSTREAMING-NEXT: [10] - C1UUnitM1
+# NONSTREAMING-NEXT: [11] - C1UUnitS0
+# NONSTREAMING-NEXT: [12] - C1UUnitS1
+# NONSTREAMING-NEXT: [13] - C1UUnitS2
+# NONSTREAMING-NEXT: [14] - C1UUnitS3
+# NONSTREAMING-NEXT: [15] - C1UUnitS4
+# NONSTREAMING-NEXT: [16] - C1UUnitS5
+# NONSTREAMING-NEXT: [17] - C1UUnitV0
+# NONSTREAMING-NEXT: [18] - C1UUnitV1
+# NONSTREAMING-NEXT: [19] - C1UUnitV2
+# NONSTREAMING-NEXT: [20] - C1UUnitV3
+# NONSTREAMING-NEXT: [21] - C1UUnitV4
+# NONSTREAMING-NEXT: [22] - C1UUnitV5
# STREAMING: Resources:
# STREAMING-NEXT: [0.0] - C1UUnitB
# STREAMING-NEXT: [0.1] - C1UUnitB
# STREAMING-NEXT: [0.2] - C1UUnitB
-# STREAMING-NEXT: [1] - C1UUnitCME
-# STREAMING-NEXT: [2.0] - C1UUnitD
-# STREAMING-NEXT: [2.1] - C1UUnitD
-# STREAMING-NEXT: [3.0] - C1UUnitFlg
-# STREAMING-NEXT: [3.1] - C1UUnitFlg
-# STREAMING-NEXT: [3.2] - C1UUnitFlg
-# STREAMING-NEXT: [3.3] - C1UUnitFlg
-# STREAMING-NEXT: [4.0] - C1UUnitL23
-# STREAMING-NEXT: [4.1] - C1UUnitL23
-# STREAMING-NEXT: [5] - C1UUnitLS0
-# STREAMING-NEXT: [6] - C1UUnitLS1
-# STREAMING-NEXT: [7] - C1UUnitM0
-# STREAMING-NEXT: [8] - C1UUnitM1
-# STREAMING-NEXT: [9] - C1UUnitS0
-# STREAMING-NEXT: [10] - C1UUnitS1
-# STREAMING-NEXT: [11] - C1UUnitS2
-# STREAMING-NEXT: [12] - C1UUnitS3
-# STREAMING-NEXT: [13] - C1UUnitS4
-# STREAMING-NEXT: [14] - C1UUnitS5
-# STREAMING-NEXT: [15] - C1UUnitV0
-# STREAMING-NEXT: [16] - C1UUnitV1
-# STREAMING-NEXT: [17] - C1UUnitV2
-# STREAMING-NEXT: [18] - C1UUnitV3
-# STREAMING-NEXT: [19] - C1UUnitV4
-# STREAMING-NEXT: [20] - C1UUnitV5
+# STREAMING-NEXT: [1.0] - C1UUnitCME2X
+# STREAMING-NEXT: [1.1] - C1UUnitCME2X
+# STREAMING-NEXT: [2.0] - C1UUnitCME3X
+# STREAMING-NEXT: [2.1] - C1UUnitCME3X
+# STREAMING-NEXT: [2.2] - C1UUnitCME3X
+# STREAMING-NEXT: [3.0] - C1UUnitCME4X
+# STREAMING-NEXT: [3.1] - C1UUnitCME4X
+# STREAMING-NEXT: [3.2] - C1UUnitCME4X
+# STREAMING-NEXT: [3.3] - C1UUnitCME4X
+# STREAMING-NEXT: [4.0] - C1UUnitD
+# STREAMING-NEXT: [4.1] - C1UUnitD
+# STREAMING-NEXT: [5.0] - C1UUnitFlg
+# STREAMING-NEXT: [5.1] - C1UUnitFlg
+# STREAMING-NEXT: [5.2] - C1UUnitFlg
+# STREAMING-NEXT: [5.3] - C1UUnitFlg
+# STREAMING-NEXT: [6.0] - C1UUnitL23
+# STREAMING-NEXT: [6.1] - C1UUnitL23
+# STREAMING-NEXT: [7] - C1UUnitLS0
+# STREAMING-NEXT: [8] - C1UUnitLS1
+# STREAMING-NEXT: [9] - C1UUnitM0
+# STREAMING-NEXT: [10] - C1UUnitM1
+# STREAMING-NEXT: [11] - C1UUnitS0
+# STREAMING-NEXT: [12] - C1UUnitS1
+# STREAMING-NEXT: [13] - C1UUnitS2
+# STREAMING-NEXT: [14] - C1UUnitS3
+# STREAMING-NEXT: [15] - C1UUnitS4
+# STREAMING-NEXT: [16] - C1UUnitS5
+# STREAMING-NEXT: [17] - C1UUnitV0
+# STREAMING-NEXT: [18] - C1UUnitV1
+# STREAMING-NEXT: [19] - C1UUnitV2
+# STREAMING-NEXT: [20] - C1UUnitV3
+# STREAMING-NEXT: [21] - C1UUnitV4
+# STREAMING-NEXT: [22] - C1UUnitV5
# NONSTREAMING: Resource pressure per iteration:
-# NONSTREAMING-NEXT: [0.0] [0.1] [0.2] [1] [2.0] [2.1] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
-# NONSTREAMING-NEXT: - - - - - - - - - - 1.50 1.50 4.00 4.00 2.13 1.13 0.13 0.13 0.13 0.13 0.13 0.13 6.00 7.00 2.00 2.00 2.00 2.00
+# NONSTREAMING-NEXT: [0.0] [0.1] [0.2] [1.0] [1.1] [2.0] [2.1] [2.2] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5.0] [5.1] [5.2] [5.3] [6.0] [6.1] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - 2.97 3.00 3.01 2.02 1.12 1.89 0.16 0.16 0.16 0.17 0.17 0.17 4.01 5.00 2.98 3.00 3.01 3.00
# STREAMING: Resource pressure per iteration:
-# STREAMING-NEXT: [0.0] [0.1] [0.2] [1] [2.0] [2.1] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
-# STREAMING-NEXT: - - - 22.00 - - - - - - 1.25 1.25 3.25 3.25 1.13 1.13 0.13 0.13 0.13 0.13 0.13 0.13 1.00 1.00 - - - -
+# STREAMING-NEXT: [0.0] [0.1] [0.2] [1.0] [1.1] [2.0] [2.1] [2.2] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5.0] [5.1] [5.2] [5.3] [6.0] [6.1] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22]
+# STREAMING-NEXT: - - - 3.00 3.00 1.66 1.67 1.67 2.75 2.75 2.75 2.75 - - - - - - 1.99 1.99 2.51 2.51 1.00 1.00 0.16 0.16 0.17 0.17 0.17 0.17 1.00 1.00 - - - -
# NONSTREAMING: Resource pressure by instruction:
-# NONSTREAMING-NEXT: [0.0] [0.1] [0.2] [1] [2.0] [2.1] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] Instructions:
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fadd s0, s1, s2
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.50 0.50 - - - - fcvtzs w0, s1
-# NONSTREAMING-NEXT: - - - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - ldr s0, [x0]
-# NONSTREAMING-NEXT: - - - - - - - - - - 0.25 0.25 0.25 0.25 0.13 0.13 0.13 0.13 0.13 0.13 0.13 0.13 - - - - - - ldr q0, [x0, x1, lsl #4]
-# NONSTREAMING-NEXT: - - - - - - - - - - - - 0.50 0.50 - - - - - - - - 0.50 0.50 - - - - str s0, [x0]
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fadd v0.4s, v1.4s, v2.4s
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 bfdot v0.4s, v1.8h, v2.8h
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 add z0.s, z1.s, z2.s
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - 1.00 - - - - - - - 0.50 1.50 - - - - clastb w0, p0, w0, z2.s
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fadd z0.s, p0/m, z0.s, z1.s
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 bfdot z0.s, z1.h, z2.h
-# NONSTREAMING-NEXT: - - - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - ld1w { z0.s }, p0/z, [x0]
-# NONSTREAMING-NEXT: - - - - - - - - - - 0.50 0.50 0.50 0.50 - - - - - - - - 0.33 0.33 0.33 0.33 0.33 0.33 ld2w { z0.s, z1.s }, p0/z, [x0]
-# NONSTREAMING-NEXT: - - - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - 0.50 0.50 - - - - ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
-# NONSTREAMING-NEXT: - - - - - - - - - - - - 0.50 0.50 - - - - - - - - 0.50 0.50 - - - - st1w { z0.s }, p0, [x0]
-# NONSTREAMING-NEXT: - - - - - - - - - - - - 1.00 1.00 - - - - - - - - 1.00 1.00 - - - - st2w { z0.s, z1.s }, p0, [x0]
-# NONSTREAMING-NEXT: - - - - - - - - - - - - 0.50 0.50 - - - - - - - - 0.50 0.50 - - - - st1w { z0.s }, p0, [x0, z0.s, uxtw]
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 eor3 z0.d, z0.d, z1.d, z2.d
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 bfmlslb z0.s, z1.h, z2.h
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 fdot z0.s, z1.h, z2.h
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - 1.00 1.00 - - - - - - - - - - - - psel p0, p0, p0.b[w12, 0]
-# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.17 0.17 0.17 0.17 0.17 0.17 sqcvtn z0.h, { z0.s, z1.s }
+# NONSTREAMING-NEXT: [0.0] [0.1] [0.2] [1.0] [1.1] [2.0] [2.1] [2.2] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5.0] [5.1] [5.2] [5.3] [6.0] [6.1] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] Instructions:
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.24 0.25 0.25 0.26 fadd s0, s1, s2
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1.00 - - - - fcvtzs w0, s1
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - 0.49 0.50 - 0.01 - - - - - - - - - - - - - - ldr s0, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - 0.50 0.49 0.01 - - 0.01 0.16 0.16 0.16 0.17 0.17 0.17 - - - - - - ldr q0, [x0, x1, lsl #4]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - 0.99 0.01 - - - - - - - - - 1.00 - - - - str s0, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.25 0.25 0.26 0.24 fadd v0.4s, v1.4s, v2.4s
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.26 0.24 0.25 0.25 bfdot v0.4s, v1.8h, v2.8h
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.25 0.26 0.24 0.25 add z0.s, z1.s, z2.s
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 1.00 - - - - - - - 1.00 1.00 - - - - clastb w0, p0, w0, z2.s
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.01 - 0.24 0.25 0.25 0.25 fadd z0.s, p0/m, z0.s, z1.s
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.25 0.25 0.25 0.25 bfdot z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - 0.51 0.49 - - - - - - - - - - - - - - - - ld1w { z0.s }, p0/z, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - 0.98 1.02 - - - - - - - - - - - - 0.48 0.50 0.52 0.50 ld2w { z0.s, z1.s }, p0/z, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - 0.49 0.50 0.01 - - - - - - - - - 1.00 - - - - - ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - 1.00 - - - - - - - - 0.99 0.01 - - - - st1w { z0.s }, p0, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - 2.00 - - - - - - - - - 0.02 1.98 - - - - st2w { z0.s, z1.s }, p0, [x0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - 1.00 - - - - - - - - 0.99 0.01 - - - - st1w { z0.s }, p0, [x0, z0.s, uxtw]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.26 0.25 0.24 0.25 eor3 z0.d, z0.d, z1.d, z2.d
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.25 0.24 0.25 0.26 bfmlslb z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.25 0.25 0.26 0.24 fdot z0.s, z1.h, z2.h
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - 0.12 1.88 - - - - - - - - - - - - psel p0, p0, p0.b[w12, 0]
+# NONSTREAMING-NEXT: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.25 0.26 0.24 0.25 sqcvtn z0.h, { z0.s, z1.s }
# STREAMING: Resource pressure by instruction:
-# STREAMING-NEXT: [0.0] [0.1] [0.2] [1] [2.0] [2.1] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] Instructions:
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - fadd s0, s1, s2
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - fcvtzs w0, s1
-# STREAMING-NEXT: - - - 1.00 - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - ldr s0, [x0]
-# STREAMING-NEXT: - - - 1.00 - - - - - - 0.25 0.25 0.25 0.25 0.13 0.13 0.13 0.13 0.13 0.13 0.13 0.13 - - - - - - ldr q0, [x0, x1, lsl #4]
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - str s0, [x0]
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - fadd v0.4s, v1.4s, v2.4s
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - bfdot v0.4s, v1.8h, v2.8h
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - add z0.s, z1.s, z2.s
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - clastb w0, p0, w0, z2.s
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - fadd z0.s, p0/m, z0.s, z1.s
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - bfdot z0.s, z1.h, z2.h
-# STREAMING-NEXT: - - - 1.00 - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - ld1w { z0.s }, p0/z, [x0]
-# STREAMING-NEXT: - - - 1.00 - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - 0.50 0.50 - - - - ld2w { z0.s, z1.s }, p0/z, [x0]
-# STREAMING-NEXT: - - - 1.00 - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - 0.50 0.50 - - - - ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - st1w { z0.s }, p0, [x0]
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - st2w { z0.s, z1.s }, p0, [x0]
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - st1w { z0.s }, p0, [x0, z0.s, uxtw]
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - eor3 z0.d, z0.d, z1.d, z2.d
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - bfmlslb z0.s, z1.h, z2.h
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - fdot z0.s, z1.h, z2.h
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - psel p0, p0, p0.b[w12, 0]
-# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - - - - - - - - - sqcvtn z0.h, { z0.s, z1.s }
+# STREAMING-NEXT: [0.0] [0.1] [0.2] [1.0] [1.1] [2.0] [2.1] [2.2] [3.0] [3.1] [3.2] [3.3] [4.0] [4.1] [5.0] [5.1] [5.2] [5.3] [6.0] [6.1] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] Instructions:
+# STREAMING-NEXT: - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - fadd s0, s1, s2
+# STREAMING-NEXT: - - - - - - - - 0.24 0.25 0.25 0.26 - - - - - - - - - - - - - - - - - - - - - - - - fcvtzs w0, s1
+# STREAMING-NEXT: - - - - - 0.33 0.33 0.34 - - - - - - - - - - - 0.99 - 0.01 - - - - - - - - - - - - - - ldr s0, [x0]
+# STREAMING-NEXT: - - - - - 0.33 0.34 0.33 - - - - - - - - - - 0.99 - 0.01 - - - 0.16 0.16 0.17 0.17 0.17 0.17 - - - - - - ldr q0, [x0, x1, lsl #4]
+# STREAMING-NEXT: - - - 1.00 - - - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - str s0, [x0]
+# STREAMING-NEXT: - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - fadd v0.4s, v1.4s, v2.4s
+# STREAMING-NEXT: - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - bfdot v0.4s, v1.8h, v2.8h
+# STREAMING-NEXT: - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - add z0.s, z1.s, z2.s
+# STREAMING-NEXT: - - - - 1.00 - - - - - - - - - - - - - - - - - - 1.00 - - - - - - - - - - - - clastb w0, p0, w0, z2.s
+# STREAMING-NEXT: - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - fadd z0.s, p0/m, z0.s, z1.s
+# STREAMING-NEXT: - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - bfdot z0.s, z1.h, z2.h
+# STREAMING-NEXT: - - - - - 0.33 0.34 0.33 - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - ld1w { z0.s }, p0/z, [x0]
+# STREAMING-NEXT: - - - - - 0.34 0.33 0.33 - - - - - - - - - - - 1.00 - - - - - - - - - - - 1.00 - - - - ld2w { z0.s, z1.s }, p0/z, [x0]
+# STREAMING-NEXT: - - - - - 0.33 0.33 0.34 - - - - - - - - - - 1.00 - - - - - - - - - - - 1.00 - - - - - ld1d { z0.d }, p0/z, [x0, z0.d, uxtw]
+# STREAMING-NEXT: - - - 0.98 0.02 - - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - st1w { z0.s }, p0, [x0]
+# STREAMING-NEXT: - - - 0.02 0.98 - - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - st2w { z0.s, z1.s }, p0, [x0]
+# STREAMING-NEXT: - - - 0.99 0.01 - - - - - - - - - - - - - - - 0.50 0.50 - - - - - - - - - - - - - - st1w { z0.s }, p0, [x0, z0.s, uxtw]
+# STREAMING-NEXT: - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - eor3 z0.d, z0.d, z1.d, z2.d
+# STREAMING-NEXT: - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - bfmlslb z0.s, z1.h, z2.h
+# STREAMING-NEXT: - - - - - - - - 0.25 0.25 0.25 0.25 - - - - - - - - - - - - - - - - - - - - - - - - fdot z0.s, z1.h, z2.h
+# STREAMING-NEXT: - - - 0.01 0.99 - - - - - - - - - - - - - - - - - 1.00 - - - - - - - - - - - - - psel p0, p0, p0.b[w12, 0]
+# STREAMING-NEXT: - - - - - - - - 0.26 0.25 0.25 0.24 - - - - - - - - - - - - - - - - - - - - - - - - sqcvtn z0.h, { z0.s, z1.s }
More information about the llvm-commits
mailing list