[llvm] [AArch64] C1-Premium SME definitions (PR #212482)
Asher Dobrescu via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 03:48:07 PDT 2026
https://github.com/Asher8118 commented:
Other than what I found in the diff, here are some more discrepancies I found in the SME instructions:
- In the case of contiguous load of quadwords to 128-bit element ZA tile slice, eg: `echo " ld1q { za0h.q[w12, 0] }, p0/z, [x0]" | llvm-mca -mtriple=aarch64 -mcpu=c1-prem
ium -mattr=+mca-streaming-sched,+sme2p2,+fp8,+sve-b16b16,+sme-b16b16,+sme-f64f64,+faminmax,+sme-f8f32,+sme-lutv2,+f64mm,+sve2-aes,+sve2
-sha3,+sve2-sm4,+aes`, the given latency is 7 when the SWOG shows 2:
```
[1] [2] [3] [4] [5] [6] Instructions:
1 7 1.00 * U ld1q {za0h.q[w12, 0]}, p0/z, [x0]
```
- I also noticed that for SME load instructions, the resources used are often:
```
[19.0] - C1PUnitL23
[19.1] - C1PUnitL23
[20] - C1PUnitLS0
[21] - C1PUnitLS1
```
Shouldn't loads be using resource `[2] - C1PUnitCMELD`?
- All of the 4-reg SME load instructions are showing throughput of 1 when it should be 1/2.
- Contiguous store from multiple consecutive vectors (immediate index), 4-reg. eg: `echo " st1w { z0.s-z3.s }, pn8, [x0, #4, mul vl]" | llvm-mca -mtriple=aarch64 -mcpu=c1-premium -mattr=+mca-streaming-sched,+sme2p2,+fp8,+sve-b16b16,+sme-b16b16,+sme-f64f64,+faminmax,+sme-f8f32,+sme-lutv2,+f64mm,+sve2-aes,+sve2-sha3,+sve2-sm4,+aes` shows throughput of 1 when it should be 1/2 based on the SWOG.
- The same applies to Contiguous store from multiple strided vectors (immediate index), 4-reg. Throughput is 1, when it should be 1/2.
- Also Contiguous store from multiple consecutive vectors (scalar index), 4-reg. Throughput is 1, when it should be 1/2.
- Also Contiguous store from multiple strided vectors (scalar index), 4-reg. Throughput is 1, when it should be 1/2.
- Also Contiguous store non-temporal from multiple consecutive vectors (immediate index), 4-reg. Throughput is 1, when it should be 1/2.
- Also Contiguous store non-temporal from multiple strided vectors (immediate
index), 4-reg. Throughput is 1, when it should be 1/2.
- Also Contiguous store non-temporal from multiple consecutive vectors (scalar
index), 4-reg. Throughput is 1, when it should be 1/2.
- Also Contiguous store non-temporal from multiple strided vectors (scalar index),
4-reg. Throughput is 1, when it should be 1/2.
- Similarly to the load case, Contiguous store of quadwords from 128-bit element ZA tile slice shows latency 11 when it should be 2. It also uses resources `[20] -C1PUnitLS0` and `[21] - C1PUnitLS1` when it should only be using `[10] - C1PUnitCMEST`.
https://github.com/llvm/llvm-project/pull/212482
More information about the llvm-commits
mailing list