[clang] [Clang][ABI] Classify floating-point matrix types as homogeneous aggregates (PR #222429)
Peter Smith via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 10 07:19:46 PDT 2026
================
@@ -0,0 +1,72 @@
+// RUN: %clang_cc1 -triple aarch64-linux-gnu -fenable-matrix -emit-llvm -o - %s | FileCheck %s --check-prefixes=CHECK,AAPCS
+// RUN: %clang_cc1 -triple arm64-apple-ios -target-abi darwinpcs -fenable-matrix -emit-llvm -o - %s | FileCheck %s --check-prefixes=CHECK,DARWIN
+
+typedef float __attribute__((matrix_type(2, 2))) f2x2;
----------------
smithp35 wrote:
One of the requirements for a homogeneous floating point aggregate HFA is that the size is a multiple of its alignment. Assuming there aren't other tests that cover this, could be worth adding a test for an overaligned matrix_type that does not qualify.
https://github.com/llvm/llvm-project/pull/222429
More information about the cfe-commits
mailing list