Skip to content

Add CPU feature detection using elf_aux_info#130901

Open
am11 wants to merge 1 commit into
dotnet:mainfrom
am11:patch-55
Open

Add CPU feature detection using elf_aux_info#130901
am11 wants to merge 1 commit into
dotnet:mainfrom
am11:patch-55

Conversation

@am11

@am11 am11 commented Jul 16, 2026

Copy link
Copy Markdown
Member

When running AOT smoke tests on freebsd-arm64, it was failing AOT apps with:

[6](https://github.com/am11/CrossRepoCITesting/actions/runs/29426499240/job/87390152366#step:5:336)
  Running /home/runner/work/CrossRepoCITesting/CrossRepoCITesting/runtime/artifacts/tests/coreclr/freebsd.arm64.Checked/nativeaot/SmokeTests/PInvoke/PInvoke/native/PInvoke...
  
  The current CPU is missing one or more of the following instruction sets: AdvSimd
  Abort trap

It's a net11.0 regression from #118101; now passing: https://github.com/am11/CrossRepoCITesting/actions/runs/29519372748/job/87692356810

@github-actions github-actions Bot added the area-PAL-coreclr only for closed issues label Jul 16, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jul 16, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@am11 am11 added arch-arm64 os-freebsd FreeBSD OS area-NativeAOT-coreclr and removed area-PAL-coreclr only for closed issues labels Jul 16, 2026
@am11
am11 requested a review from jkotas July 16, 2026 18:13
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

@am11 am11 mentioned this pull request Jul 16, 2026
#else // !HAVE_AUXV_HWCAP_H

#if HAVE_SYSCTLBYNAME
#elif HAVE_SYSCTLBYNAME

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note that FreeBSD has sysctlbyname but it doesn't define those macOS style stringly names for ISAs, instead uses bitmask like Linux. Hence the order was important.

@am11
am11 requested a review from janvorli July 16, 2026 19:08

@janvorli janvorli 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.

LGTM, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-arm64 area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member os-freebsd FreeBSD OS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants