genPutArgStk needs to check for FIELD_LIST first (dotnet/coreclr#18499)
authorCarol Eidt <carol.eidt@microsoft.com>
Tue, 19 Jun 2018 00:11:56 +0000 (17:11 -0700)
committerGitHub <noreply@github.com>
Tue, 19 Jun 2018 00:11:56 +0000 (17:11 -0700)
commit0498a6664fb3aa74fba26ef27f261d2f1a0a58c5
treef8c2a801fdf4a81978f675cbc9c112780a424d37
parent474d3a78d733154f9ffb0729af41ddf03c2ad8c1
genPutArgStk needs to check for FIELD_LIST first (dotnet/coreclr#18499)

When a struct is passed on the stack using `FIELD_LIST`, the type of the `FIELD_LIST` is the type of its first field. If that type was a struct type (i.e. a SIMD type), `genPutArgStk` would assume that it was the non-`FIELD_LIST` case.

Fix dotnet/coreclr#18497

Commit migrated from https://github.com/dotnet/coreclr/commit/e9946c0de3bcab0d09ce5f10a039b37d6497d4cb
src/coreclr/src/jit/codegenxarch.cpp
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_18497/GitHub_18497.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_18497/GitHub_18497.csproj [new file with mode: 0644]