[llvm] [GISEL][RISCV] IRTranslator for scalable vector load (PR #80006)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 11:45:43 PST 2024


================
@@ -0,0 +1,7 @@
+; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
+; RUN: llc -mtriple=riscv32 -mattr=+v -global-isel -stop-after=irtranslator -verify-machineinstrs < %s | FileCheck  -check-prefixes=RV32I %s
+
+define void @vload_vint8m1(ptr %pa) {
----------------
topperc wrote:

The alignment is relative to EEW not XLen.

> If an element accessed by a vector memory instruction is not naturally aligned to the size of the element, either the element is transferred successfully or an address misaligned exception is raised on that element.

https://github.com/llvm/llvm-project/pull/80006


More information about the llvm-commits mailing list