Skip to content

[Mono] Only enable Arm intrinsics for full aot mode - #74301

Merged
SamMonoRT merged 2 commits into
dotnet:mainfrom
fanyang-mono:disable_arm_intrinsics
Aug 23, 2022
Merged

[Mono] Only enable Arm intrinsics for full aot mode#74301
SamMonoRT merged 2 commits into
dotnet:mainfrom
fanyang-mono:disable_arm_intrinsics

Conversation

@fanyang-mono

Copy link
Copy Markdown
Member

@fanyang-mono

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-extra-platforms

@azure-pipelines

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

@lambdageeklambdageek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we need to also check that we're not in --aot=full,interp mode.

Comment threadsrc/mono/mono/mini/simd-intrinsics.c
Comment threadsrc/mono/mono/mini/simd-intrinsics.c Outdated
id = info->id;

#ifdef TARGET_ARM64
if (!(cfg->compile_aot && cfg->full_aot)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this also needs to check cfg->interp:

Suggested change
if (!(cfg->compile_aot&&cfg->full_aot)) {
if (!(cfg->compile_aot&&cfg->full_aot&& !cfg->interp)) {

Also, not sure if we should enable this for llvmonly, too. @vargaz what do you think?

@lambdageek

Copy link
Copy Markdown
Member

/backport to release/7.0-rc1

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/7.0-rc1: https://github.com/dotnet/runtime/actions/runs/2905537115

@SamMonoRT

Copy link
Copy Markdown
Member

This is ready to be merged.

@SamMonoRT
SamMonoRT merged commit 9528e6f into dotnet:mainAug 23, 2022
@ghostghost locked as resolved and limited conversation to collaborators Sep 22, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET 7 exception on Android with EnableLLVM=true

3 participants

@fanyang-mono@lambdageek@SamMonoRT