From 524d868b0cb233e7c6c8523cdb0dd2229699bbbc Mon Sep 17 00:00:00 2001 From: xuliangyu Date: Thu, 6 Jun 2024 15:48:38 +0800 Subject: [PATCH] [LoongArch64] Fix the TestVector256() size alignment within `src/tests/Interop/StructPacking/StructPacking.cs`. --- src/tests/Interop/StructPacking/StructPacking.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tests/Interop/StructPacking/StructPacking.cs b/src/tests/Interop/StructPacking/StructPacking.cs index 529fe2b72d3931..3e080ef455cb07 100644 --- a/src/tests/Interop/StructPacking/StructPacking.cs +++ b/src/tests/Interop/StructPacking/StructPacking.cs @@ -1326,9 +1326,10 @@ static bool TestVector256() expectedOffsetValue: 8 ); } - else if (RuntimeInformation.ProcessArchitecture == Architecture.Arm64 || RuntimeInformation.ProcessArchitecture == Architecture.RiscV64) + else if (RuntimeInformation.ProcessArchitecture == Architecture.Arm64 || RuntimeInformation.ProcessArchitecture == Architecture.RiscV64 + || RuntimeInformation.ProcessArchitecture == Architecture.LoongArch64) { - // The Procedure Call Standard for ARM64 and RiscV64 defines this type as having 16-byte alignment + // The Procedure Call Standard for ARM64, RiscV64, LoongArch64 defines this type as having 16-byte alignment succeeded &= Test>>( expectedSize: 48,