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

Make AMD assembly completely optional through WITH_ASM_AMD (default ON) #3138

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Spudz76
Copy link
Contributor

@Spudz76 Spudz76 commented Oct 17, 2022

Older Apple assembler doesn't understand some AMD opcodes, this allows completely disabling AMD assembly (ryzen/bulldozer) since Apple hardware would never have an AMD anyway. Only works with UNIX-like platforms, ignored on MSVC (not a problem there anyway).

Also makes the AMD MSRs optional as well (separate configurable WITH_MSR_ZEN) for a fully Intel-only executable.

Related to #3136

@SChernykh
Copy link
Contributor

intel Macs built between 2007 and 2011

All these changes to support 0.01% of the user base, not a fair trade I think.

@SChernykh
Copy link
Contributor

If it was bigger %, what I would do is find asm functions that don't compile, move them to a separate .s file and just remove them from the build in CMakeLists.txt for these systems, not touching any .h/.cpp files.

@SChernykh
Copy link
Contributor

Also, the error in #3136 (comment) has nothing to do with AMD or AMD Zen assembler code specifically, it's just a mov rax, 4389456576511 instruction that works on any CPU, which makes this whole PR pointless.

@Spudz76
Copy link
Contributor Author

Spudz76 commented Oct 18, 2022

IDK, just helping the user. Who knows why Apple assembler doesn't like that instruction which only appears in the ryzen CN code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants