Dominik =?utf-8?q?Wójt?=
Message-ID:
In-Reply-To:
https://github.com/john-brawn-arm closed
https://github.com/llvm/llvm-project/pull/67412
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://github.com/domin144 updated
https://github.com/llvm/llvm-project/pull/67412
From e20234c6a73a2dded9e5a34e2900e7757ac9460f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dominik=20W=C3=B3jt?=
Date: Wed, 20 Sep 2023 16:39:27 +0200
Subject: [PATCH 1/2] [ARM] fix "+fp.dp" in multilib selection
Dominik =?utf-8?q?W=C3=B3jt?=
Message-ID:
In-Reply-To:
https://github.com/john-brawn-arm approved this pull request.
Looks good to me.
https://github.com/llvm/llvm-project/pull/67412
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://github.com/domin144 updated
https://github.com/llvm/llvm-project/pull/67412
From 4cc2328982cc8260263aa803f2b02bff7d7b4a85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dominik=20W=C3=B3jt?=
Date: Wed, 20 Sep 2023 16:39:27 +0200
Subject: [PATCH 1/2] [ARM] fix "+fp.dp" in multilib selection
@@ -420,20 +444,35 @@ bool ARM::appendArchExtFeatures(StringRef CPU,
ARM::ArchKind AK,
CPU = "generic";
if (ArchExt == "fp" || ArchExt == "fp.dp") {
+const ARM::FPUKind DefaultFPU = getDefaultFPU(CPU, AK);
ARM::FPUKind FPUKind;
if (ArchExt == "fp.dp") {
+
@@ -420,20 +444,35 @@ bool ARM::appendArchExtFeatures(StringRef CPU,
ARM::ArchKind AK,
CPU = "generic";
if (ArchExt == "fp" || ArchExt == "fp.dp") {
+const ARM::FPUKind DefaultFPU = getDefaultFPU(CPU, AK);
ARM::FPUKind FPUKind;
if (ArchExt == "fp.dp") {
+
@@ -366,26 +366,50 @@ StringRef ARM::getArchExtFeature(StringRef ArchExt) {
}
static ARM::FPUKind findDoublePrecisionFPU(ARM::FPUKind InputFPUKind) {
+ if (InputFPUKind == ARM::FK_INVALID || InputFPUKind == ARM::FK_NONE)
+return ARM::FK_INVALID;
+
+ const ARM::FPUName
@@ -420,20 +444,35 @@ bool ARM::appendArchExtFeatures(StringRef CPU,
ARM::ArchKind AK,
CPU = "generic";
if (ArchExt == "fp" || ArchExt == "fp.dp") {
+const ARM::FPUKind DefaultFPU = getDefaultFPU(CPU, AK);
ARM::FPUKind FPUKind;
if (ArchExt == "fp.dp") {
+
@@ -366,26 +366,50 @@ StringRef ARM::getArchExtFeature(StringRef ArchExt) {
}
static ARM::FPUKind findDoublePrecisionFPU(ARM::FPUKind InputFPUKind) {
+ if (InputFPUKind == ARM::FK_INVALID || InputFPUKind == ARM::FK_NONE)
+return ARM::FK_INVALID;
+
+ const ARM::FPUName
https://github.com/domin144 created
https://github.com/llvm/llvm-project/pull/67412
When the FPU was selected with "+(no)fp(.dp)" extensions in "-march" or "-mcpu"
options, the FPU used for multilib selection was still the default one for
given architecture or CPU.
From
10 matches
Mail list logo