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-8350672] Adapt JDK-8345125: Aarch64: Add aarch64 backend for Float16 scalar operations #10762

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+10-1066", "platformspecific": true, "extrabundles": ["static-libs"]},
"galahad-jdk": {"name": "jpg-jdk", "version": "25", "build_id": "2025-02-25-1756029.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
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, Arm Limited. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand Down Expand Up @@ -131,6 +131,14 @@ public interface CPUFeatures extends PointerBase {
@AllowNarrowingCast
@CField
boolean fSVEBITPERM();

@AllowNarrowingCast
@CField
boolean fFPHP();

@AllowNarrowingCast
@CField
boolean fASIMDHP();
}
// Checkstyle: resume
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, Arm Limited. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand Down Expand Up @@ -46,4 +46,6 @@ typedef struct {
uint8_t fDMB_ATOMICS;
uint8_t fPACA;
uint8_t fSVEBITPERM;
uint8_t fFPHP;
uint8_t fASIMDHP;
} CPUFeatures;
10 changes: 9 additions & 1 deletion substratevm/src/com.oracle.svm.native.libchelper/src/cpuid.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -728,6 +728,12 @@ void determineCPUFeatures(CPUFeatures* features) {
#ifndef HWCAP_PACA
#define HWCAP_PACA (1L << 30)
#endif
#ifndef HWCAP_FPHP
#define HWCAP_FPHP (1L << 9)
#endif
#ifndef HWCAP_ASIMDHP
#define HWCAP_ASIMDHP (1L << 10)
#endif
#ifndef HWCAP2_SVE2
#define HWCAP2_SVE2 (1L << 1)
#endif
Expand Down Expand Up @@ -765,6 +771,8 @@ void determineCPUFeatures(CPUFeatures* features) {
features->fDMB_ATOMICS = 0;
features->fPACA = !!(auxv & HWCAP_PACA);
features->fSVEBITPERM = !!(auxv2 & HWCAP2_SVEBITPERM);
features->fFPHP = !!(auxv & HWCAP_FPHP);
features->fASIMDHP = !!(auxv & HWCAP_ASIMDHP);

//checking for features signaled in another way

Expand Down