From bc40b9c9836df3a8f91dbc58c45123f1b51c2336 Mon Sep 17 00:00:00 2001 From: chenli Date: Tue, 6 May 2025 16:44:02 +0800 Subject: [PATCH] [clang][LoongArch] Fix the testcase apply-baseline-config.c --- ...Fix-the-testcase-apply-baseline-conf.patch | 23 +++++++++++++++++++ llvm.spec | 6 ++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 0008-clang-LoongArch-Fix-the-testcase-apply-baseline-conf.patch diff --git a/0008-clang-LoongArch-Fix-the-testcase-apply-baseline-conf.patch b/0008-clang-LoongArch-Fix-the-testcase-apply-baseline-conf.patch new file mode 100644 index 0000000..1cad574 --- /dev/null +++ b/0008-clang-LoongArch-Fix-the-testcase-apply-baseline-conf.patch @@ -0,0 +1,23 @@ +From 68e0cd1021ec272abbff56a2938d616ca90d862e Mon Sep 17 00:00:00 2001 +From: chenli +Date: Wed, 30 Apr 2025 21:55:29 +0800 +Subject: [PATCH] [clang][LoongArch] Fix the testcase apply-baseline-config.c + +Fix the failed testcase on LoongArch machine after Autotuner support. +--- + clang/test/Autotuning/BaselineConfig/lit.local.cfg | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/clang/test/Autotuning/BaselineConfig/lit.local.cfg b/clang/test/Autotuning/BaselineConfig/lit.local.cfg +index 33afa7c31e0f..cc5c32e78384 100644 +--- a/clang/test/Autotuning/BaselineConfig/lit.local.cfg ++++ b/clang/test/Autotuning/BaselineConfig/lit.local.cfg +@@ -1,2 +1,2 @@ +-if config.host_arch in ["x86", "X86", "x86_64"]: +- config.unsupported = True +\ No newline at end of file ++if config.host_arch in ["x86", "X86", "x86_64", "loongarch64"]: ++ config.unsupported = True +-- +2.20.1 + diff --git a/llvm.spec b/llvm.spec index 0a02006..15dae6d 100644 --- a/llvm.spec +++ b/llvm.spec @@ -151,7 +151,7 @@ Name: llvm Name: llvm-toolset-%{maj_ver} %endif Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 37 +Release: 38 Summary: The Low Level Virtual Machine License: NCSA @@ -175,6 +175,7 @@ Patch0006: 0006-CMake-Use-correct-exports-for-MLIR-tools.patch %if %{with bisheng_autotuner} Patch0007: 0007-Fix-for-building-autotuner-with-mlir.patch %endif +Patch0008: 0008-clang-LoongArch-Fix-the-testcase-apply-baseline-conf.patch BuildRequires: gcc BuildRequires: gcc-c++ @@ -2854,6 +2855,9 @@ fi #endregion files %changelog +* Tue May 06 2025 chenli - 17.0.6-38 +- LoongArch: Fix the testcase apply-baseline-config.c + * Tue Apr 22 2025 liyunfei - 17.0.6-37 - llvm-mlir add obsoletes mlir - openmp add obsoletes libomp -- Gitee