Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm] Allow scalar valuetypes with r4/r8 members. #94969

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

vargaz
Copy link
Contributor

@vargaz vargaz commented Nov 19, 2023

No description provided.

@vargaz vargaz requested a review from kg November 19, 2023 07:20
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Nov 19, 2023
@ghost ghost assigned vargaz Nov 19, 2023
@vargaz
Copy link
Contributor Author

vargaz commented Nov 19, 2023

Re: #94895

/* Scalar vtypes are passed by value */
if (mini_wasm_is_scalar_vtype (sig->params [i]))
// FIXME: r4/r8
if (mini_wasm_is_scalar_vtype (sig->params [i], &etype) && etype->type != MONO_TYPE_R4 && etype->type != MONO_TYPE_R8) {
margs->iargs [int_i] = *(gpointer*)margs->iargs [int_i];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this work correctly for i8/u8? I'm fine with not fixing those yet though

Copy link
Contributor Author

@vargaz vargaz Nov 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We disable those:

		} else if (size == 8 && t->type != MONO_TYPE_R8) {
			return FALSE;

@kg
Copy link
Member

kg commented Nov 19, 2023

LGTM

@vargaz
Copy link
Contributor Author

vargaz commented Nov 19, 2023

/azp run runtime-wasm

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Nov 19, 2023

The Build browser-wasm linux Release LibraryTests_AOT failures are relevant.

@vargaz
Copy link
Contributor Author

vargaz commented Nov 19, 2023

/azp run runtime-wasm

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@teo-tsirpanis teo-tsirpanis added arch-wasm WebAssembly architecture area-VM-meta-mono and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 19, 2023
@ghost
Copy link

ghost commented Nov 19, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author: vargaz
Assignees: vargaz
Labels:

arch-wasm, area-VM-meta-mono

Milestone: -

@vargaz
Copy link
Contributor Author

vargaz commented Nov 19, 2023

Failures are unrelated.

@vargaz vargaz merged commit 5708568 into dotnet:main Nov 20, 2023
116 of 120 checks passed
@vargaz vargaz deleted the wasm-scalar-vtype branch November 20, 2023 06:28
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants