[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

2025-04-05 Thread YunQiang Su via cfe-commits
@@ -0,0 +1,1059 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 +; RUN: opt --passes=loop-vectorize --mtriple=riscv64 -mattr="+zvfh,+v" -S < %s | FileCheck %s --check-prefix=RV64 +; RUN: opt --passes=loop-vectorize --mtriple=aa

[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

2025-04-05 Thread YunQiang Su via cfe-commits
wzssyqa wrote: Reverted https://github.com/llvm/llvm-project/pull/131781 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

2025-03-31 Thread YunQiang Su via cfe-commits
@@ -0,0 +1,1059 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 wzssyqa wrote: https://github.com/llvm/llvm-project/pull/133690 https://github.com/llvm/llvm-project/pull/131781

[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

2025-03-31 Thread YunQiang Su via cfe-commits
@@ -0,0 +1,1059 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 wzssyqa wrote: Do you mean that we should add this test case first and then this patch with update of the test case? https://github.com/llvm/llv

[clang] Clang: Add elementwise minnum/maxnum builtin functions (PR #129207)

2025-03-30 Thread YunQiang Su via cfe-commits
wzssyqa wrote: ping https://github.com/llvm/llvm-project/pull/129207 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

2025-03-30 Thread YunQiang Su via cfe-commits
wzssyqa wrote: ping https://github.com/llvm/llvm-project/pull/131781 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

2025-03-19 Thread YunQiang Su via cfe-commits
@@ -0,0 +1,407 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 wzssyqa wrote: We have the backend test already. This PR fixes the front to generate vectorized IR from C code. https://github.com/llvm/llvm-p

[clang] Clang: Add elementwise minnum/maxnum builtin functions (PR #129207)

2025-03-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/129207 >From 5c3b36b06294b43088d277c689c3367825708779 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 28 Feb 2025 16:09:04 +0800 Subject: [PATCH 1/6] Clang: Add minnum/maxnum builtin functions support W

[clang] Clang: Add elementwise minnum/maxnum builtin functions (PR #129207)

2025-03-19 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > > > Needs the documentation updates in clang language extensions with the > > > other elementwise builtins, and a release note > > > > > > Documentation updated. And ReleaseNotes is submitted as a new PR: #131977 > > Best to keep the note about the new builtins here. The PR m

[clang] Clang: Add elementwise minnum/maxnum builtin functions (PR #129207)

2025-03-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/129207 >From 5c3b36b06294b43088d277c689c3367825708779 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 28 Feb 2025 16:09:04 +0800 Subject: [PATCH 1/6] Clang: Add minnum/maxnum builtin functions support W

[clang] [llvm] Add release note entry for max/min (PR #131977)

2025-03-18 Thread YunQiang Su via cfe-commits
wzssyqa wrote: Since we have still some problem to be fixed. So this PR is set a draft. Wish that we can fix all of these problems in the cycle of LLVM 21. https://github.com/llvm/llvm-project/pull/131977 ___ cfe-commits mailing list cfe-commits@lists.

[clang] Clang: Add elementwise minnum/maxnum builtin functions (PR #129207)

2025-03-18 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > Needs the documentation updates in clang language extensions with the other > elementwise builtins, and a release note Documentation updated. And ReleaseNotes is submitted as a new PR: https://github.com/llvm/llvm-project/pull/131977 https://github.com/llvm/llvm-project/pull/

[clang] [llvm] Add release note entry for max/min (PR #131977)

2025-03-18 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa converted_to_draft https://github.com/llvm/llvm-project/pull/131977 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add release note entry for max/min (PR #131977)

2025-03-18 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa created https://github.com/llvm/llvm-project/pull/131977 None >From 737498ab2c540251f94ff7e07426d434b28d8b34 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Wed, 19 Mar 2025 14:05:05 +0800 Subject: [PATCH] Add release note entry for max/min --- clang/d

[clang] Clang: Add elementwise minnum/maxnum builtin functions (PR #129207)

2025-03-18 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/129207 >From 5c3b36b06294b43088d277c689c3367825708779 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 28 Feb 2025 16:09:04 +0800 Subject: [PATCH 1/4] Clang: Add minnum/maxnum builtin functions support W

[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

2025-03-18 Thread YunQiang Su via cfe-commits
rom e367aaa410dcbb6f3d1c5803eac49dde6dae25c5 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Tue, 18 Mar 2025 18:46:29 +0800 Subject: [PATCH] Vectorize: Support fminimumnum and fmaximumnum Support auto-vectorize for fminimum_num and fmaximum_num. For ARM64 with SVE, scalable vector cannot support yet, and For RISCV Vector, scala

[clang] Clang: Add minnum/maxnum builtin functions (PR #129207)

2025-02-28 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/129207 >From 917e3b80ae7962a4f0bd5735cdc88163fcdbdcc7 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 28 Feb 2025 16:09:04 +0800 Subject: [PATCH 1/2] Clang: Add minnum/maxnum builtin functions support W

[clang] Clang: Add minnum/maxnum builtin functions (PR #129207)

2025-02-28 Thread YunQiang Su via cfe-commits
e_maxnum __builtin_maxnum __builtin_elementwise_maxnum __builtin_maxnum __builtin_elementwise_maxnum __builtin_maxnum All of them support _Float16, float, double, long double. >From 917e3b80ae7962a4f0bd5735cdc88163fcdbdcc7 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date:

[clang] Clang: Add minnum/maxnum builtin functions (PR #129207)

2025-02-28 Thread YunQiang Su via cfe-commits
@@ -209,6 +209,18 @@ def FmaxF16F128 : Builtin, F16F128MathTemplate { let Prototype = "T(T, T)"; } +def MinNum : Builtin { wzssyqa wrote: I prefer to drop it. Since we don't provide the function name without __builtin, such as `fmimnum`. https://github.c

[clang] Clang: Add minnum/maxnum builtin functions (PR #129207)

2025-02-28 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/129207 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2025-02-27 Thread YunQiang Su via cfe-commits
wzssyqa wrote: nsz is missing for `__builtin_elementwise_min`. I am working on it. https://github.com/llvm/llvm-project/pull/113133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2025-02-27 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa converted_to_draft https://github.com/llvm/llvm-project/pull/113133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2025-02-27 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/113133 >From 34654e8872814090664dd5ac476e801d83fa6cfc Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Mon, 21 Oct 2024 15:18:38 +0800 Subject: [PATCH 1/7] Clang: emit llvm.minnum and llvm.maxnum with nsz always

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2025-02-26 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/113133 >From 4cb7472aaa8973651a85057ee2f7ca7415d8ea72 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Mon, 21 Oct 2024 15:18:38 +0800 Subject: [PATCH 1/6] Clang: emit llvm.minnum and llvm.maxnum with nsz always

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2025-02-26 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/112854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2025-02-26 Thread YunQiang Su via cfe-commits
wzssyqa wrote: @arsenm ping https://github.com/llvm/llvm-project/pull/112854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2025-02-26 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/112854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[gcc r15-7468] config.gcc: Support mips*64*-linux-muslabi64 as ABI64 by default

2025-02-11 Thread YunQiang Su via Gcc-cvs
https://gcc.gnu.org/g:0399e3e54a2c891116d6b43683c7fdce689304c5 commit r15-7468-g0399e3e54a2c891116d6b43683c7fdce689304c5 Author: YunQiang Su Date: Mon Sep 23 00:55:29 2024 +0800 config.gcc: Support mips*64*-linux-muslabi64 as ABI64 by default LLVM introduced this triple support

[gcc r15-7467] MIPS: Add some floating point instructions support for MIPSr6

2025-02-11 Thread YunQiang Su via Gcc-cvs
https://gcc.gnu.org/g:86b9abc829316f94d455a2309f212031af36ba68 commit r15-7467-g86b9abc829316f94d455a2309f212031af36ba68 Author: Jie Mei Date: Fri Sep 20 10:42:48 2024 +0800 MIPS: Add some floating point instructions support for MIPSr6 This patch adds some of the float point instr

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2025-01-23 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > Do you get the same behavior when you use `-isystem` instead? There is no warning then if I use command ``` clang -E -I build-x86/ -I sysdeps/x86 -I. -isystem ./include -I sysdeps/unix/sysv/linux/ -I sysdeps/generic/ -include include/libc-symbols.h -O2 -H xx.c ``` instead of

Re: [PATCH] config-ml.in: Fix multi-os-dir search

2025-01-23 Thread YunQiang Su
Matthias Klose 于2025年1月23日周四 22:39写道: > LGTM.

[clang] Clang/Preprocessor: Support short circuit in directive (PR #123912)

2025-01-22 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/123912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang/Preprocessor: Support short circuit in directive (PR #123912)

2025-01-22 Thread YunQiang Su via cfe-commits
wzssyqa wrote: Thanks. So this patch is incorrect. Let's close it. https://github.com/llvm/llvm-project/pull/123912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang/Preprocessor: Support short circuit in directive (PR #123912)

2025-01-22 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/123912 >From f0010f932ae3c89651c631736a7aa495027e8fdc Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Wed, 22 Jan 2025 09:04:44 + Subject: [PATCH] Clang/Preprocessor: Support short circuit in directive Do

[clang] [clang-tools-extra] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2025-01-22 Thread YunQiang Su via cfe-commits
wzssyqa wrote: See: https://github.com/llvm/llvm-project/pull/123912 https://github.com/llvm/llvm-project/pull/120673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2025-01-22 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/120673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang/Preprocessor: Support short circuit in directive (PR #123912)

2025-01-22 Thread YunQiang Su via cfe-commits
:00:00 2001 From: YunQiang Su Date: Wed, 22 Jan 2025 09:04:44 + Subject: [PATCH] Clang/Preprocessor: Support short circuit in directive Don't Evaluate RHS in if directive when short circuit. Examples include #if 0 && another_condition #if 1 || another_condition --- cl

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2025-01-20 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > > Yes and no. It's due to the redefinitions, for sure. But that diagnostic is > suppressed in system headers: https://godbolt.org/z/Mb7Kh975f, so I think we > need to understand why there's a `limits.h` being included as though it were > not a system header, because that's a

[clang] [Clang][MIPS] Create correct linker arguments for Windows toolchains (PR #121041)

2025-01-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/121041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2025-01-16 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/120526 >From cc30e98287ec0ceca490f1f6a16a0190ff243ed6 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Thu, 19 Dec 2024 14:09:04 +0800 Subject: [PATCH] clang/limits.h: Avoid including limits.h twice The limits.h

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2025-01-16 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > but that leads to the question of: why is including musl's limits.h a problem? It cause some warning like ``` ./include/bits/xopen_lim.h:84:10: warning: "NL_NMAX" redefined 84 | # define NL_NMAXINT_MAX ``` https://github.com/llvm/llvm-project/pull/120526

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2025-01-13 Thread YunQiang Su via cfe-commits
wzssyqa wrote: You are right. My patch only fix the first problem: making a unit test of glibc happy. The failure test case of glibc is: * check-local-headers See: https://github.com/llvm/llvm-project/pull/120673 also. https://github.com/llvm/llvm-project/pull/120526 __

Re: [PATCH] config-ml.in: Fix multi-os-dir search

2025-01-07 Thread YunQiang Su
Jeff Law 于2025年1月8日周三 07:06写道: > > > > On 1/1/25 6:42 PM, YunQiang Su wrote: > > Matthias Klose 于2025年1月1日周三 22:37写道: > >> > >> in https://gcc.gnu.org/pipermail/gcc-patches/2024-January/641619.html > >> > >> there are two typos in the patc

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2025-01-07 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > I'm confused why this is necessary, we already work around glibc's quirk here: > > https://github.com/llvm/llvm-project/blob/a15fedc399d5d1aa07c14531e5cd8d3efc583600/clang/lib/Headers/limits.h#L18 > > > which should then hit glibc's header guard here: > https://sourceware.org/

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2025-01-07 Thread YunQiang Su via cfe-commits
wzssyqa wrote: ping https://github.com/llvm/llvm-project/pull/120526 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2025-01-07 Thread YunQiang Su via cfe-commits
wzssyqa wrote: ping https://github.com/llvm/llvm-project/pull/120673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2025-01-07 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/120673 >From ef5e52370d202431c1e6970fc57a7a04b9e83b89 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 20 Dec 2024 02:55:49 + Subject: [PATCH 1/2] Clang/Preprocessor: Not add headers of __has_include i

[clang] [Clang][MIPS] Send correct architecture for MinGW toolchains (PR #121042)

2025-01-04 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/121042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] config-ml.in: Fix multi-os-dir search

2025-01-01 Thread YunQiang Su
Matthias Klose 于2025年1月1日周三 22:37写道: > > in https://gcc.gnu.org/pipermail/gcc-patches/2024-January/641619.html > > there are two typos in the patch, compared to the local Debian patch, > Oh, sorry it is not duplicated. > - the subst macro has an additional parameter > - the multilib subdirs

Re: [PATCH] config-ml.in: Fix multi-os-dir search

2025-01-01 Thread YunQiang Su
Matthias Klose 于2025年1月1日周三 22:37写道: > > in https://gcc.gnu.org/pipermail/gcc-patches/2024-January/641619.html > > there are two typos in the patch, compared to the local Debian patch, > > - the subst macro has an additional parameter > - the multilib subdirs are not subdirs in lib, but have >

[clang] [Clang][MIPS] Create specific targets for MIPS PE/COFF (PR #121040)

2024-12-24 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/121040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][MIPS] Send correct architecture for MinGW toolchains (PR #121042)

2024-12-24 Thread YunQiang Su via cfe-commits
@@ -85,6 +85,10 @@ // RUN: | FileCheck %s --check-prefix CHECK_MINGW_EC_LINK // CHECK_MINGW_EC_LINK: "-m" "arm64ecpe" +// RUN: %clang --target=mipsel-windows-gnu -### -o /dev/null %s 2>&1 \ +// RUN: | FileCheck %s --check-prefix CHECK_MINGW_MIPSPE +// CHECK_MINGW_MIPSPE: "

[clang] [llvm] Clang/buildFMulAdd: Use negated attribute (PR #121038)

2024-12-24 Thread YunQiang Su via cfe-commits
wzssyqa wrote: Depends on https://github.com/llvm/llvm-project/pull/121027 https://github.com/llvm/llvm-project/pull/121038 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang/buildFMulAdd: Use negated attribute (PR #121038)

2024-12-24 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa converted_to_draft https://github.com/llvm/llvm-project/pull/121038 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang/buildFMulAdd: Use negated attribute (PR #121038)

2024-12-24 Thread YunQiang Su via cfe-commits
different with `c+(-a)*b`. >From c474a905f473d0844caf6ad7dd7b6ff338d01d34 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Tue, 24 Dec 2024 04:16:16 + Subject: [PATCH 1/6] Support attribute negated --- llvm/docs/LangRef.rst | 8 llvm/include/llvm/Bitc

[clang] [clang-tools-extra] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/120673 >From ef5e52370d202431c1e6970fc57a7a04b9e83b89 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 20 Dec 2024 02:55:49 + Subject: [PATCH 1/2] Clang/Preprocessor: Not add headers of __has_include i

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/120673 >From ef5e52370d202431c1e6970fc57a7a04b9e83b89 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 20 Dec 2024 02:55:49 + Subject: [PATCH] Clang/Preprocessor: Not add headers of __has_include i

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/120673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/120673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
es. The same case with #__has_include_next >From 7b2e0d9dddfe25f539f6f2c811b2f23d5a244ce8 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 20 Dec 2024 02:55:49 + Subject: [PATCH] Clang/Preprocessor: Not add headers of __has_include into DepColloctor When we preprocess the bello

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2024-12-18 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/120526 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2024-12-18 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/120526 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2024-12-18 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/120526 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2024-12-18 Thread YunQiang Su via cfe-commits
t;#include " | bin/clang -E -O2 -xc - -MM -H ``` We can see there is ``` . /usr/include/limits.h .. /usr/lib/llvm-19/lib/clang/19/include/limits.h ... /usr/include/limits.h ``` >From a7e475b01b73c66965403330f6ad377b32e13e74 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Thu, 19 Dec 2024 14:0

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2024-11-24 Thread YunQiang Su via cfe-commits
wzssyqa wrote: @arsenm ping https://github.com/llvm/llvm-project/pull/113133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Bug#1087755: gcc: output may segfault if patchelf set interpreter

2024-11-17 Thread YunQiang Su
Package: src:gcc-14 I meet a wired problem when I am doing the follow wired work: $ cat xx.c #include int main() {printf("hello world\n");} $ gcc -O2 xx.c -o a.out $ cat ld.so.c #include int main(int argc, char *argv[]) { for (int i=0; i

Bug#1087755: gcc: output may segfault if patchelf set interpreter

2024-11-17 Thread YunQiang Su
Package: src:gcc-14 I meet a wired problem when I am doing the follow wired work: $ cat xx.c #include int main() {printf("hello world\n");} $ gcc -O2 xx.c -o a.out $ cat ld.so.c #include int main(int argc, char *argv[]) { for (int i=0; i

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-13 Thread YunQiang Su
On Wed, 13 Nov 2024 11:10:38 +0800 Bo YU wrote: > Hi, > On Wed, Nov 13, 2024 at 09:53:33AM +0800, YunQiang Su wrote: > > > >I guess that you missed the changes of d/rules? > >- $(MAKE) CDEBUGFLAGS="$(CFLAGS) $(LDFLAGS) $(CDEBUGFLAGS)" > >+ $(MA

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-13 Thread YunQiang Su
On Wed, 13 Nov 2024 11:10:38 +0800 Bo YU wrote: > Hi, > On Wed, Nov 13, 2024 at 09:53:33AM +0800, YunQiang Su wrote: > > > >I guess that you missed the changes of d/rules? > >- $(MAKE) CDEBUGFLAGS="$(CFLAGS) $(LDFLAGS) $(CDEBUGFLAGS)" > >+ $(MA

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-13 Thread YunQiang Su
On Wed, 13 Nov 2024 11:10:38 +0800 Bo YU wrote: > Hi, > On Wed, Nov 13, 2024 at 09:53:33AM +0800, YunQiang Su wrote: > > > >I guess that you missed the changes of d/rules? > >- $(MAKE) CDEBUGFLAGS="$(CFLAGS) $(LDFLAGS) $(CDEBUGFLAGS)" > >+ $(MA

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-12 Thread YunQiang Su
Bo YU 于2024年11月13日周三 00:06写道: > > Hi, > > On Tue, Nov 12, 2024 at 06:40:42PM +0800, YunQiang Su wrote: > >On Tue, 12 Nov 2024 17:22:12 +0800 Bo YU wrote: > >> > xxkb (1.11.1-3) unstable; urgency=medium > >> > . > >> > * QA upload. > >

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-12 Thread YunQiang Su
Bo YU 于2024年11月13日周三 00:06写道: > > Hi, > > On Tue, Nov 12, 2024 at 06:40:42PM +0800, YunQiang Su wrote: > >On Tue, 12 Nov 2024 17:22:12 +0800 Bo YU wrote: > >> > xxkb (1.11.1-3) unstable; urgency=medium > >> > . > >> > * QA upload. > >

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-12 Thread YunQiang Su
Bo YU 于2024年11月13日周三 00:06写道: > > Hi, > > On Tue, Nov 12, 2024 at 06:40:42PM +0800, YunQiang Su wrote: > >On Tue, 12 Nov 2024 17:22:12 +0800 Bo YU wrote: > >> > xxkb (1.11.1-3) unstable; urgency=medium > >> > . > >> > * QA upload. > >

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-12 Thread YunQiang Su
On Tue, 12 Nov 2024 17:22:12 +0800 Bo YU wrote: > > xxkb (1.11.1-3) unstable; urgency=medium > > . > > * QA upload. > > * Add 0004-fix-ftbfs-on-gcc-14.patch to fix the ftbfs issue. > > (Closes: #1075694) > > * Set std-ver to 4.7.0. > > * Add Rules-Requires-Root on d/control. > > * Ad

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-12 Thread YunQiang Su
On Tue, 12 Nov 2024 17:22:12 +0800 Bo YU wrote: > > xxkb (1.11.1-3) unstable; urgency=medium > > . > > * QA upload. > > * Add 0004-fix-ftbfs-on-gcc-14.patch to fix the ftbfs issue. > > (Closes: #1075694) > > * Set std-ver to 4.7.0. > > * Add Rules-Requires-Root on d/control. > > * Ad

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-12 Thread YunQiang Su
On Tue, 12 Nov 2024 17:22:12 +0800 Bo YU wrote: > > xxkb (1.11.1-3) unstable; urgency=medium > > . > > * QA upload. > > * Add 0004-fix-ftbfs-on-gcc-14.patch to fix the ftbfs issue. > > (Closes: #1075694) > > * Set std-ver to 4.7.0. > > * Add Rules-Requires-Root on d/control. > > * Ad

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-08 Thread YunQiang Su
On Tue, 5 Nov 2024 11:25:58 +0800 Bo YU wrote: > Hi, > > On Tue, Nov 05, 2024 at 10:56:09AM +0800, Bo YU wrote: > >Hi, > ... > > > >I have uploaded it to mentor also. Please review it. Could you upload it > >if there are no other issues? TIA. > > > >``` > > > >The source builds the following binar

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-08 Thread YunQiang Su
On Tue, 5 Nov 2024 11:25:58 +0800 Bo YU wrote: > Hi, > > On Tue, Nov 05, 2024 at 10:56:09AM +0800, Bo YU wrote: > >Hi, > ... > > > >I have uploaded it to mentor also. Please review it. Could you upload it > >if there are no other issues? TIA. > > > >``` > > > >The source builds the following binar

Bug#1075694: xxkb: ftbfs with GCC-14

2024-11-08 Thread YunQiang Su
On Tue, 5 Nov 2024 11:25:58 +0800 Bo YU wrote: > Hi, > > On Tue, Nov 05, 2024 at 10:56:09AM +0800, Bo YU wrote: > >Hi, > ... > > > >I have uploaded it to mentor also. Please review it. Could you upload it > >if there are no other issues? TIA. > > > >``` > > > >The source builds the following binar

Bug#1075684: xshisen: ftbfs with GCC-14

2024-11-04 Thread YunQiang Su
On Tue, 5 Nov 2024 10:43:19 +0800 Bo YU wrote: > Hi, > > >configure:673:1: error: return type defaults to 'int' [-Wimplicit-int] > > 673 | main(){return(0);} > > | ^~~~ > >configure: failed program was: > > > >#line 671 "configure" > >#include "confdefs.h" > > > > I proposed one patch to fix

Bug#1075684: xshisen: ftbfs with GCC-14

2024-11-04 Thread YunQiang Su
On Tue, 5 Nov 2024 10:43:19 +0800 Bo YU wrote: > Hi, > > >configure:673:1: error: return type defaults to 'int' [-Wimplicit-int] > > 673 | main(){return(0);} > > | ^~~~ > >configure: failed program was: > > > >#line 671 "configure" > >#include "confdefs.h" > > > > I proposed one patch to fix

Bug#1075684: xshisen: ftbfs with GCC-14

2024-11-04 Thread YunQiang Su
On Tue, 5 Nov 2024 10:43:19 +0800 Bo YU wrote: > Hi, > > >configure:673:1: error: return type defaults to 'int' [-Wimplicit-int] > > 673 | main(){return(0);} > > | ^~~~ > >configure: failed program was: > > > >#line 671 "configure" > >#include "confdefs.h" > > > > I proposed one patch to fix

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2024-10-22 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/112854 >From ad7c6b648f3bb88ce075fa15cf8915350e4981ab Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 18 Oct 2024 16:33:19 +0800 Subject: [PATCH 1/2] APFloat: Fix maxnum and minnum with sNaN See: ht

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2024-10-22 Thread YunQiang Su via cfe-commits
@@ -582,7 +582,46 @@ TEST(APFloatTest, MinNum) { APFloat zp(0.0); APFloat zn(-0.0); EXPECT_EQ(-0.0, minnum(zp, zn).convertToDouble()); - EXPECT_EQ(-0.0, minnum(zn, zp).convertToDouble()); + + APInt intPayload_89ab(64, 0x89ab); wzssyqa wrote: It is not

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2024-10-22 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/113133 >From 4cb7472aaa8973651a85057ee2f7ca7415d8ea72 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Mon, 21 Oct 2024 15:18:38 +0800 Subject: [PATCH 1/6] Clang: emit llvm.minnum and llvm.maxnum with nsz always

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2024-10-21 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/113133 >From ec7d885a7bc89fcb35c08890fde2f07da1e61984 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Mon, 21 Oct 2024 15:18:38 +0800 Subject: [PATCH 1/5] Clang: emit llvm.minnum and llvm.maxnum with nsz always

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2024-10-21 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/113133 >From ec7d885a7bc89fcb35c08890fde2f07da1e61984 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Mon, 21 Oct 2024 15:18:38 +0800 Subject: [PATCH 1/3] Clang: emit llvm.minnum and llvm.maxnum with nsz always

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2024-10-21 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/113133 >From ec7d885a7bc89fcb35c08890fde2f07da1e61984 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Mon, 21 Oct 2024 15:18:38 +0800 Subject: [PATCH 1/2] Clang: emit llvm.minnum and llvm.maxnum with nsz always

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2024-10-21 Thread YunQiang Su via cfe-commits
@@ -0,0 +1,33 @@ +// RUN: %clang_cc1 -triple x86_64 %s -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=CHECK + +float fminf (float, float); +double fmin (double, double); +long double fminl (long double, long double); +float fmaxf (float, float); +double fmax (double, double);

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2024-10-21 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/112854 >From 30da4359c2b36d6fef88108b68800833dd514a22 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 18 Oct 2024 16:33:19 +0800 Subject: [PATCH] APFloat: Fix maxnum and minnum with sNaN See: https://github.

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2024-10-21 Thread YunQiang Su via cfe-commits
1e61984 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Mon, 21 Oct 2024 15:18:38 +0800 Subject: [PATCH] Clang: emit llvm.minnum and llvm.maxnum with nsz always See: https://github.com/llvm/llvm-project/pull/112852 We will define llvm.minnum and llvm.maxnum with +0.0>-0.0, by default, whil

[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)

2024-10-14 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > Maybe should add support for elementwise builtins next https://github.com/llvm/llvm-project/issues/112164 https://github.com/llvm/llvm-project/pull/96281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)

2024-10-14 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/96281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)

2024-10-14 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/96281 >From 98e909e0eff233c2ee3c5e7f3094e35004326bd0 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 21 Jun 2024 14:28:42 +0800 Subject: [PATCH 01/12] Clang: Support minimumnum and maximumnum intrinsics We j

[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)

2024-10-13 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/96281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)

2024-10-13 Thread YunQiang Su via cfe-commits
@@ -0,0 +1,55 @@ +// RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify %s +// FIXME: %clang_cc1 -std=c++17 -fsyntax-only -verify -fexperimental-new-constant-interpreter %s +// expected-no-diagnostics + +constexpr double NaN = __builtin_nan(""); +constexpr double Inf = __builtin_in

Bug#1085074: distcc: Please backport pump patch github PR #479

2024-10-13 Thread YunQiang Su
Package: src:distcc Version: 3.4+really3.4-5 It fixes a problem when use PUMP mode. https://github.com/distcc/distcc/pull/479

[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)

2024-10-12 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/96281 >From c08b0a8d34107dc4563c434485ba5f326ab8df93 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 21 Jun 2024 14:28:42 +0800 Subject: [PATCH 01/11] Clang: Support minimumnum and maximumnum intrinsics We j

[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)

2024-10-11 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/96281 >From c08b0a8d34107dc4563c434485ba5f326ab8df93 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 21 Jun 2024 14:28:42 +0800 Subject: [PATCH 01/11] Clang: Support minimumnum and maximumnum intrinsics We j

[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)

2024-10-11 Thread YunQiang Su via cfe-commits
@@ -372,6 +372,31 @@ void foo(double *d, float f, float *fp, long double *l, int *i, const char *c) { // HAS_MAYTRAP: declare float @llvm.experimental.constrained.minnum.f32( // HAS_MAYTRAP: declare x86_fp80 @llvm.experimental.constrained.minnum.f80( + fmaximum_num(*d,*d);

  1   2   3   4   5   6   7   8   9   10   >