[mono][mini] Fix conversion from STACK_PTR to R8 (#88745)
authorVlad Brezae <brezaevlad@gmail.com>
Wed, 12 Jul 2023 19:14:29 +0000 (22:14 +0300)
committerGitHub <noreply@github.com>
Wed, 12 Jul 2023 19:14:29 +0000 (14:14 -0500)
commit11fbd151912a3c5d1e72386fb037595b71e214d6
treef976f374bfaf3ccc5e10348aa436282f4ce8fef2
parent2e7f0dc040a670581a871df37661e51905ad955f
[mono][mini] Fix conversion from STACK_PTR to R8 (#88745)

* [mono][mini] Fix conversion from STACK_PTR

It was hardcoded to int conversion instead of checking the arch ptr size.

* Enable tests
src/libraries/System.Runtime/tests/System/DoubleTests.GenericMath.cs
src/libraries/System.Runtime/tests/System/Int64Tests.GenericMath.cs
src/libraries/System.Runtime/tests/System/IntPtrTests.GenericMath.cs
src/libraries/System.Runtime/tests/System/SingleTests.GenericMath.cs
src/libraries/System.Runtime/tests/System/UInt64Tests.GenericMath.cs
src/mono/mono/mini/method-to-ir.c