Skip to content

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

Merged
alalazo merged 3 commits into
archspec:masterfrom
haampie:hs/fix/missing-features
Sep 15, 2025
Merged

alalazo merged 3 commits into
archspec:masterfrom
haampie:hs/fix/missing-features

Conversation

@haampie

@haampie haampie commented Jan 31, 2025 •

Copy link
Copy Markdown
Collaborator

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.

Comment thread cpu/microarchitectures.json
@alalazo
alalazo force-pushed the hs/fix/missing-features branch from fc9f297 to d8f3451 Compare September 12, 2025 20:39
@alalazo alalazo self-assigned this Sep 12, 2025
Comment thread tests/targets/darwin-mojave-haswell
@alalazo

alalazo commented Sep 13, 2025

Copy link
Copy Markdown
Member

@haampie I pushed some changes here, and submitted archspec/archspec#211 Let me know if you agree with the changes here, so we can merge the PRs and fix this long standing issue.

@haampie

haampie commented Sep 15, 2025

Copy link
Copy Markdown
Collaborator Author

Fine, but I cannot merge. Can you merge this then?

@alalazo
alalazo merged commit 9b22d3d into archspec:master Sep 15, 2025
1 check passed
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.

3 participants