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

[JDK-8344599] Adapt JDK-8342103: C2 compiler support for Float16 type and associated operations #10117

Open
wants to merge 2 commits into
base: galahad
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

"COMMENT.jdks": "When adding or removing JDKs keep in sync with JDKs in ci/common.jsonnet",
"jdks": {
"galahad-jdk": {"name": "jpg-jdk", "version": "25", "build_id": "jdk-25+2-128", "platformspecific": true, "extrabundles": ["static-libs"]},
"galahad-jdk": {"name": "jpg-jdk", "version": "24", "build_id": "2024-11-20-0758294.yudi.zheng.jdk", "platformspecific": true, "extrabundles": ["static-libs"]},

"oraclejdk17": {"name": "jpg-jdk", "version": "17.0.7", "build_id": "jdk-17.0.7+8", "platformspecific": true, "extrabundles": ["static-libs"]},
"labsjdk-ce-17": {"name": "labsjdk", "version": "ce-17.0.7+4-jvmci-23.1-b02", "platformspecific": true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ public interface CPUFeatures extends PointerBase {
@AllowNarrowingCast
@CField
boolean fSHA512();

@AllowNarrowingCast
@CField
boolean fAVX512_FP16();
}
// Checkstyle: resume
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,5 @@ typedef struct {
uint8_t fAVX_IFMA;
uint8_t fAPX_F;
uint8_t fSHA512;
uint8_t fAVX512_FP16;
} CPUFeatures;
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ typedef union {
serialize : 1,
: 5,
cet_ibt : 1,
: 11;
: 2,
avx512_fp16 : 1,
: 8;
} bits;
} SefCpuid7Edx;

Expand Down
3 changes: 3 additions & 0 deletions substratevm/src/com.oracle.svm.native.libchelper/src/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ NO_INLINE static void set_cpufeatures(CPUFeatures *features, CpuidInfo *_cpuid_i
if (_cpuid_info->sef_cpuid7_edx.bits.serialize != 0) {
features->fSERIALIZE = 1;
}
if (_cpuid_info->sef_cpuid7_edx.bits.avx512_fp16 != 0) {
features->fAVX512_FP16 = 1;
}
}

// ZX features.
Expand Down
Loading