Support 8-byte alignment for 12-byte structs on ARM32 (#56375)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Thu, 29 Jul 2021 03:45:51 +0000 (05:45 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Jul 2021 03:45:51 +0000 (20:45 -0700)
commit51040e6d6ad73f21085ae2c9258eb2ad46c3ff47
treeb7f8eda29d903949875e0cc8e961cee68f2db96a
parentd0f2752d685593f39d0e2dab5f4604bdd0221e0f
Support 8-byte alignment for 12-byte structs on ARM32 (#56375)

* Support 8-byte alignment for 12-byte structs on ARM32

Through explicit attributes it is possible that 8-byte aligned structs
are 12 bytes in size, so handle this in arm32 when we figure out if we
need an extra spill to keep the alignment.

Fix #42723

* Add a regression test
src/coreclr/jit/lclvars.cpp
src/tests/JIT/Regression/JitBlue/Runtime_42723/Runtime_42723.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_42723/Runtime_42723.csproj [new file with mode: 0644]