[clang] [ARM] fix "+fp.dp" in multilib selection (PR #67412)

2023-10-19 Thread via cfe-commits
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

[clang] [ARM] fix "+fp.dp" in multilib selection (PR #67412)

2023-10-18 Thread Dominik Wójt via cfe-commits
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

[clang] [ARM] fix "+fp.dp" in multilib selection (PR #67412)

2023-10-17 Thread via cfe-commits
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

[clang] [ARM] fix "+fp.dp" in multilib selection (PR #67412)

2023-10-13 Thread Dominik Wójt via cfe-commits
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

[clang] [ARM] fix "+fp.dp" in multilib selection (PR #67412)

2023-10-13 Thread Dominik Wójt via cfe-commits
@@ -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") { +

[clang] [ARM] fix "+fp.dp" in multilib selection (PR #67412)

2023-10-13 Thread Dominik Wójt via cfe-commits
@@ -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") { +

[clang] [ARM] fix "+fp.dp" in multilib selection (PR #67412)

2023-10-13 Thread Dominik Wójt via cfe-commits
@@ -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

[clang] [ARM] fix "+fp.dp" in multilib selection (PR #67412)

2023-10-12 Thread via cfe-commits
@@ -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") { +

[clang] [ARM] fix "+fp.dp" in multilib selection (PR #67412)

2023-10-12 Thread via cfe-commits
@@ -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

[clang] [ARM] fix "+fp.dp" in multilib selection (PR #67412)

2023-09-26 Thread Dominik Wójt via cfe-commits
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