Skip to content

[mono][interp] Fix a few local store warnings - #66766

Merged
BrzVlad merged 5 commits into
dotnet:mainfrom
BrzVlad:fix-interp-store
Mar 21, 2022
Merged

BrzVlad merged 5 commits into
dotnet:mainfrom
BrzVlad:fix-interp-store

Conversation

@BrzVlad

@BrzVlad BrzVlad commented Mar 17, 2022

Copy link
Copy Markdown
Member

Fixes #65881

@lewing

lewing commented Mar 17, 2022 •

Copy link
Copy Markdown
Member

this should probably revert radical@a40eb18 too?

Comment thread src/mono/mono/mini/interp/transform.c Resolved
BrzVlad added 4 commits March 19, 2022 00:10
The IL execution stack operates on generic floating type F, which can be stored in local of both float32 or float64. We however operate on the real types and need to add implicit conversions if necessary.
It was previously handling only R8 correctly.
@BrzVlad

BrzVlad commented Mar 19, 2022

Copy link
Copy Markdown
Member Author

/azp run runtime-extra-platforms

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@BrzVlad
BrzVlad merged commit 82d06f5 into dotnet:main Mar 21, 2022
radekdoulik pushed a commit to radekdoulik/runtime that referenced this pull request Mar 30, 2022
* [mono][interp] Fix warning when storing function pointers

* [mono][interp] Fix storing of R4 or R8 into local of different size

The IL execution stack operates on generic floating type F, which can be stored in local of both float32 or float64. We however operate on the real types and need to add implicit conversions if necessary.

* [mono][interp] Fix ckfinite

It was previously handling only R8 correctly.

* [mono][interp] Add implicit conversion between nint and int32

* [mono][interp] Change warning to error
@ghost ghost locked as resolved and limited conversation to collaborators Apr 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[wasm] Interpreter: Local variable of function pointer type emits a warning Test.Prepare: Store local stack type mismatch 0 7

4 participants