Fix passing struct with four floats in registers via reflection (#7716)
authorJan Vorlicek <janvorli@microsoft.com>
Wed, 19 Oct 2016 06:43:29 +0000 (08:43 +0200)
committerJan Kotas <jkotas@microsoft.com>
Wed, 19 Oct 2016 06:43:29 +0000 (23:43 -0700)
commit6dc1f30d29893b8bb085523c49cc79d47d13f2b7
tree7304fdf67f6fc58aaa5153745c968b78ac6fd2f6
parent6a9c0c94484cc9102ef0ec34de372b828a8f05fa
Fix passing struct with four floats in registers via reflection (#7716)

This change fixes a bug in the code that copies a struct into the transition
frame. When it contains four floats, the first two are put to the right place,
but the following two are placed to an address that's offset by 8 instead of
by 16.

It also adds regression test for this problem as Pri 1 test.
src/vm/argdestination.h
tests/src/Regressions/coreclr/GitHub_7685/Test7685.csproj [new file with mode: 0644]
tests/src/Regressions/coreclr/GitHub_7685/test7685.cs [new file with mode: 0644]