Skip to content

Add MSVC-internal workaround for ARM64 popcount intrinsics - #4733

Merged
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
StephanTLavavej:once-you-popcount-you-cant-stopcount
Jun 18, 2024
Merged

Add MSVC-internal workaround for ARM64 popcount intrinsics#4733
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
StephanTLavavej:once-you-popcount-you-cant-stopcount

Conversation

@StephanTLavavej

Copy link
Copy Markdown
Member

As mentioned in #4683, VS 2022 17.11 Preview 1 added ARM64 support for __popcnt64 etc. intrinsics. When merging #4695, everything seemed to be okay during MSVC-internal PR checks, but post-merge CI noticed that the MSVC-internal build starts with a checked-in 17.10p4, which is too old to know about the new intrinsics.

I missed this because I forgot that MSVC-internal PR checks don't build ARM64 (only the CI does) and I didn't build ARM64 locally.

The workaround is to check the compiler version. I'll be able to remove this after we update the internal toolset, which should happen very soon.

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

Labels

bugSomething isn't workinghigh priorityImportant!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@StephanTLavavej@barcharcraz