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

add missing abm, cx16, lahf_lm, pku, sha, xsave features to various microarchs #133

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

haampie
Copy link

@haampie haampie commented Jan 31, 2025

Note: this PR as is will break detection in archspec/archspec, but is correct based on:

#include <math.h>
#include <immintrin.h>

double f(double x, double y) { return fmod(x, y); }
void g(__int128 *p) { __sync_val_compare_and_swap(p, 0, 0); }
int h(int p) { return __builtin_popcount(p); }
int i(int p) { return __builtin_ia32_lzcnt_u32(p); }
int j(void) { return __builtin_ia32_rdpkru(); }
__m128i k(__m128i a, __m128i b) { return _mm_sha1msg1_epu32(a, b); }
void l(void * x, int y) { _xsave64(x, y); }

using gcc -march=....

Ref archspec/archspec#193.

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.

2 participants