[all-commits] [llvm/llvm-project] 053346: [RISCV][MC][NFC] Update IME vtype layout to match ...
Kiva via All-commits
all-commits at lists.llvm.org
Thu May 7 00:22:07 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 053346636c3abc150dcecc92ec60e1576130280e
https://github.com/llvm/llvm-project/commit/053346636c3abc150dcecc92ec60e1576130280e
Author: Kiva <zengtao at iscas.ac.cn>
Date: 2026-05-07 (Thu, 07 May 2026)
Changed paths:
M llvm/lib/TargetParser/RISCVTargetParser.cpp
M llvm/unittests/TargetParser/RISCVTargetParserTest.cpp
Log Message:
-----------
[RISCV][MC][NFC] Update IME vtype layout to match latest spec `riscv-isa-release-fa55752-2026-05-04` (#195998)
This updates the IME-specific vtype field layout to match the [latest
IME spec, version
riscv-isa-release-fa55752-2026-05-04](https://github.com/riscv/integrated-matrix-extension/blob/main/src/integrated-matrix.adoc#new-fields-in-the-vector-type-vtype-register).
The latest spec places the IME fields as:
| Field | New Position | Change Description |
|---------------|---------------------------|---------------------------------|
| `lambda[2:0]` | `vtype[XLEN-2:XLEN-4]` | Unchanged |
| `bs` | `vtype[XLEN-5]` | Moved from `vtype[XLEN-7]` |
| `altfmt_A` | `vtype[XLEN-6]` | Moved from `vtype[XLEN-5]` |
| `altfmt_B` | `vtype[XLEN-7]` | Moved from `vtype[XLEN-6]` |
Previously `bs`, `altfmt_A`, and `altfmt_B` followed the older ordering,
which was first introduced in #193956. The new position of altfmt
supports growing in the future for more datatypes.
This patch also updates tests to reflect field changes.
Currently this should be NFC since we didn't have any CodeGen
implementation that involves vtype in IME.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list