Re: [PATCH] testsuite: Fix up gcc.target/powerpc/builtin_altivec_tr_stxvr_runnable.c test [PR120919]

2025-07-01 Thread Segher Boessenkool
Hi! On Tue, Jul 01, 2025 at 05:16:45PM +0200, Jakub Jelinek wrote: > This test seems to fail when testing with > RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector-strong}'" > on power10. Please mention near the start of the commit message (like, in the subjec

[PATCH] testsuite: Fix up gcc.target/powerpc/builtin_altivec_tr_stxvr_runnable.c test [PR120919]

2025-07-01 Thread Jakub Jelinek
Hi! This test seems to fail when testing with RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector-strong}'" on power10. In my reading of the test and the instructions emitted by the builtins, it invokes UB 4 times, each time overwriting one byte after some variable (sc,

Re: [PATCH v7 7/9] AArch64: precommit test for CMPBR instructions

2025-07-01 Thread Richard Sandiford
Richard Sandiford writes: > Karl Meakin writes: >> +// If the branch destination is out of range (1KiB), we have to generate an >> +// extra B instruction (which can handle larger displacements) and branch >> around >> +// it >> +int far_branch(i32 x, i32 y) { >> + volatile int z = 0; >> + if

[COMMITTED] cobol: Update test case for intrinsic function syntax.

2025-07-01 Thread Robert Dubner
A recent update to the COBOL syntax checker resulted in this test case failing, so it needed to be fixed. >From f6c187a4f34b6925196279fd623f9f1396385a18 Mon Sep 17 00:00:00 2001 From: Robert Dubner mailto:rdub...@symas.com Date: Tue, 1 Jul 2025 11:07:18 -0400 Subject: [PATCH] cobol: Update t

[RFC PATCH 1/1] microblaze: add atomic test and set support

2025-07-01 Thread Neal Frager
This patch adds atomic test and set support for the microblaze arch. Fixes: pr118280 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118280 Test case added to testsuite/gcc.dg/atomic/atomic-pr118280.c Signed-off-by: Aayush Misra Signed-off-by: Neal Frager --- gcc/ChangeLog

Re: [PATCH v7 7/9] AArch64: precommit test for CMPBR instructions

2025-07-01 Thread Richard Sandiford
Karl Meakin writes: > Commit the test file `cmpbr.c` before rules for generating the new > instructions are added, so that the changes in codegen are more obvious > in the next commit. > > gcc/testsuite/ChangeLog: > > * lib/target-supports.exp: Add `cmpbr` to t

[committed] testsuite: Fix up pr119318.c test for big-endian [PR120082]

2025-07-01 Thread Jakub Jelinek
Hi! The test is not endianess clean, x[0] is supposed to be ((__int128)0x19)<<32 on little endian - 0x19 is in the second vector elt - but ((__int128)0x19)<<64 on big endian. I've added also verification of int and __int128 sizes just in case we have say 16-bit or 64-bit int tar

Re: [PATCH 1/1] ivopts: Fix scan-assembler-not regexes for aarch64/sve test

2025-06-30 Thread Richard Sandiford
Christopher Bazley writes: > The test added by r16-1671-ge7ff8e8d77df74 passed despite using > regular expressions that would never match real assembly language > output from the compiler. Because the regular expressions were not > expected to match, and didn't, this was not no

[COMMITTED 12/40] ada: Remove redundant condition in test of System.Val_Real.Integer_To_Real

2025-06-30 Thread Marc Poulhiès
From: Eric Botcazou The second condition of the conjunction is redundant with the first. gcc/ada/ChangeLog: * libgnat/s-valrea.adb (Integer_to_Real): Rename to... (Integer_To_Real): ...this. Remove the second condition of the conjunction in the test for the zero value

[r16-1742 Regression] FAIL: 25_algorithms/inplace_merge/constrained.cc -std=gnu++26 (test for excess errors) on Linux/x86_64

2025-06-30 Thread haochen.jiang
/inplace_merge/constrained.cc -std=gnu++20 (test for excess errors) FAIL: 25_algorithms/inplace_merge/constrained.cc -std=gnu++26 (test for excess errors) with GCC configured with ../../gcc/configure --prefix=/export/users3/haochenj/src/gcc-bisect/master/master/r16-1742/usr --enable-clocale=gnu

[PATCH v3 4/4] RISC-V: Add test for vec_duplicate + vssubu.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-06-27 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vssubu.vv combine to vssubu.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-u16.c: Add asm check for vssubu.vx combine. * gcc.target/riscv/rvv/autovec

[PATCH v3 3/4] RISC-V: Add test for vec_duplicate + vssubu.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-27 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vssubu.vv combine to vssubu.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u16.c: Add asm check. * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u32.c: Ditto

[PATCH v3 2/4] RISC-V: Reconcile the existing test due to cost model change

2025-06-27 Thread pan2 . li
From: Pan Li The cost model change will make the default cost of vx to 2, thus reconcile the asm check for this change. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/sat/vec_sat_u_sub_trunc-1-u16.c: Update the asm check due to cost model change. * gcc.target/ri

[PATCH 1/1] ivopts: Fix scan-assembler-not regexes for aarch64/sve test

2025-06-27 Thread Christopher Bazley
The test added by r16-1671-ge7ff8e8d77df74 passed despite using regular expressions that would never match real assembly language output from the compiler. Because the regular expressions were not expected to match, and didn't, this was not noticeable; however, it also made that part of the

[PATCH v2 2/4] RISC-V: Add test for vec_duplicate + vssubu.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-27 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vssubu.vv combine to vssubu.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u16.c: Add asm check. * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u32.c: Ditto

[PATCH v2 3/4] RISC-V: Add test for vec_duplicate + vssubu.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-06-27 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vssubu.vv combine to vssubu.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-u16.c: Add asm check for vssubu.vx combine. * gcc.target/riscv/rvv/autovec

[PATCH v2 4/4] RISC-V: Reconcile the existing test due to cost model change

2025-06-27 Thread pan2 . li
From: Pan Li The cost model change will make the default cost of vx to 2, thus reconcile the asm check for this change. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/sat/vec_sat_u_sub_trunc-1-u16.c: Update the asm check due to cost model change. * gcc.target/ri

RE: [PATCH v1 2/4] RISC-V: Add test for vec_duplicate + vssubu.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-27 Thread Li, Pan2
> > + DEF_VX_BINARY_CASE_2_WRAP(T, SAT_U_SUB_FUNC(T), sat_add) \ > Shouldn't that be sat_sub here? Oh, Yes, should be sat_sub, but happen to work for test, let me update it in v2. Pan -Original Message- From: Robin Dapp Sent: Friday, June 27, 2025 2:37 PM To:

Re: [PATCH v1 2/4] RISC-V: Add test for vec_duplicate + vssubu.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-26 Thread Robin Dapp
Hi Pan, diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx_binary.h b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx_binary.h index 2932e189186..0af8b969f47 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx_binary.h +++ b/gcc/testsuite/gcc.target/riscv/rvv/auto

[PATCH v1 2/4] RISC-V: Add test for vec_duplicate + vssubu.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-26 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vssubu.vv combine to vssubu.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u16.c: Add asm check. * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u32.c: Ditto

[PATCH v1 3/4] RISC-V: Add test for vec_duplicate + vssubu.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-06-26 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vssubu.vv combine to vssubu.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-u16.c: Add asm check for vssubu.vx combine. * gcc.target/riscv/rvv/autovec

[PATCH v1 4/4] RISC-V: Reconcile the existing test due to cost model change

2025-06-26 Thread pan2 . li
From: Pan Li The cost model change will make the default cost of vx to 2, thus reconcile the asm check for this change. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/sat/vec_sat_u_sub_trunc-1-u16.c: Update the asm check due to cost model change. * gcc.target/ri

Re: [PATCH 1/1] contrib: add vmtest-tool to test BPF programs

2025-06-26 Thread Jose E. Marchesi
t enabled > and stores it under "~/.vmtest-tool", which is reused for future > invocations. I wonder, would it be a good idea to have "bpf" as part of the name of the directory. Something like bpf-vmtest-tool? > It can also compile BPF C source files or BPF bytecode obje

Re: [PATCH 0/1] contrib: add vmtest-tool to test BPF programs

2025-06-26 Thread Jose E. Marchesi
Hello Piyush. Sorry for the delay in reviewing. It's been quite a busy week at work... > This patch adds initial version of vmtest-tool script to test BPF > programs on live kernel > > For now, the tool is standalone, but it is intended to be integrated with the > DejaGnu

[PATCH v6 7/9] AArch64: precommit test for CMPBR instructions

2025-06-25 Thread Karl Meakin
Commit the test file `cmpbr.c` before rules for generating the new instructions are added, so that the changes in codegen are more obvious in the next commit. gcc/testsuite/ChangeLog: * lib/target-supports.exp: Add `cmpbr` to the list of extensions. * gcc.target/aarch64/cmpbr.c

Re: [PATCH] rtl-ssa: Fix test condition for insn_info::has_been_deleted

2025-06-25 Thread Richard Sandiford
re here.) > * !INSN_P (m_rtl): this will likely fail for rtx_insn objects and > does not test the `volatile` bit. Because of the need to stage multiple simultaneous changes, rtl-ssa first uses set_insn_deleted to convert an insn to a NOTE_INSN_DELETED note, then uses remove_insn to rem

[PATCH v7 7/9] AArch64: precommit test for CMPBR instructions

2025-06-25 Thread Karl Meakin
Commit the test file `cmpbr.c` before rules for generating the new instructions are added, so that the changes in codegen are more obvious in the next commit. gcc/testsuite/ChangeLog: * lib/target-supports.exp: Add `cmpbr` to the list of extensions. * gcc.target/aarch64/cmpbr.c

Re: [PATCH] rtl-ssa: Fix test condition for insn_info::has_been_deleted

2025-06-25 Thread Richard Sandiford
I have a tested patch for this, but I don't think that it would be sufficient, > as there are also other places to check for a NULL dereference: > * member-fns.inl: insn_info::uid -> what to return here? That one's ok, because m_rtl is nonnull whenever m_cost_or_uid >= 0.

Re: [PATCH] rtl-ssa: Fix test condition for insn_info::has_been_deleted

2025-06-25 Thread Christoph Müllner
k for a NULL dereference: * member-fns.inl: insn_info::uid -> what to return here? * internals.inl: insn_info::set_properties * insns.cc: insn_info::calculate_cost Ok, if I add NULL-checks there as well? > > * !INSN_P (m_rtl): this will likely fail for rtx_insn objects and > > does not te

Re: [PATCH v2] libstdc++: Test for %S precision for durations with integral representation.

2025-06-25 Thread Jonathan Wakely
On Wed, 25 Jun 2025 at 10:42, Tomasz Kamiński wrote: > > Existing test are extented to cover cases where not precision is specified, > or it is specified to zero. The precision value is ignored in all cases. > > libstdc++-v3/ChangeLog: > > * testsuite/std/time/for

[PATCH v2] libstdc++: Test for %S precision for durations with integral representation.

2025-06-25 Thread Tomasz Kamiński
Existing test are extented to cover cases where not precision is specified, or it is specified to zero. The precision value is ignored in all cases. libstdc++-v3/ChangeLog: * testsuite/std/time/format/precision.cc: New tests. --- v2 extents test to cover .0 as precision. Testing on

[PATCH v1 1/2] AArch64: precommit test for masked load vectorisation.

2025-06-24 Thread Karl Meakin
Commit the test file `mask_load_2.c` before the vectorisation analysis is changed, so that the changes in codegen are more obvious in the next commit. gcc/testsuite/ChangeLog: * gcc.target/aarch64/sve/mask_load_2.c: New test. --- .../gcc.target/aarch64/sve/mask_load_2.c | 23

[PATCH] libstdc++: Test for %S precision for durations with integral representation.

2025-06-24 Thread Tomasz Kamiński
libstdc++-v3/ChangeLog: * testsuite/std/time/format/precision.cc: New tests. --- Merging additional tests I have added, when working on erasing chrono types. Testing on x86_64-linux. OK for trunk when test passes? .../testsuite/std/time/format/precision.cc| 64 +-- 1

[PATCH] rtl-ssa: Fix test condition for insn_info::has_been_deleted

2025-06-24 Thread Christoph Müllner
as no member of insn_info changes this pointer. * !INSN_P (m_rtl): this will likely fail for rtx_insn objects and does not test the `volatile` bit. This patch drops these conditions and calls m_rtl->deleted () instead. The impact of this change is minimal as insn_info::has_been_deleted is only c

[PATCH V2] testsuite: Fix gcc.target/powerpc/vsx-builtin-7.c test [PR119382]

2025-06-24 Thread jeevitha
Hi All, The following patch has been tested on powerpc64le-linux and verified it's fixed. Changes from V1: Added the reason for adding the flag(-fno-ipa-icf) inside the test case. The test vsx-builtin-7.c failed on powerpc64le-linux due to Identical Code Folding (ICF) merging the func

[PATCH v1 3/3] RISC-V: Add test for vec_duplicate + vsaddu.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-06-21 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vsaddu.vv combine to vsaddu.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-u16.c: Add asm check for vsaddu.vx combine. * gcc.target/riscv/rvv/autovec

[PATCH v1 2/3] RISC-V: Add test for vec_duplicate + vsaddu.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-21 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vsaddu.vv combine to vsaddu.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u16.c: Add asm check. * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u32.c: Ditto

[PATCH v5 08/10] AArch64: precommit test for CMPBR instructions

2025-06-19 Thread Karl Meakin
Commit the test file `cmpbr.c` before rules for generating the new instructions are added, so that the changes in codegen are more obvious in the next commit. gcc/testsuite/ChangeLog: * lib/target-supports.exp: Add `cmpbr` to the list of extensions. * gcc.target/aarch64/cmpbr.c

[PATCH v1 3/3] RISC-V: Add test for vec_duplicate + vminu.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-06-19 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vminu.vv combine to vminu.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-u16.c: Add asm check for vminu.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf

[PATCH v1 2/3] RISC-V: Add test for vec_duplicate + vminu.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-19 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vminu.vv combine to vminu.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u16.c: Add asm check. * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u32.c: Ditto

[PATCH 1/1] contrib: add vmtest-tool to test BPF programs

2025-06-18 Thread Piyush Raj
t can also compile BPF C source files or BPF bytecode objects and test them against the kernel verifier for errors. When a BPF program is rejected by the kernel verifier, the verifier logs are displayed. $ python3 main.py -k 6.15 --bpf-src assets/ebpf-programs/fail.c BPF program failed to load Ver

[PATCH 0/1] contrib: add vmtest-tool to test BPF programs

2025-06-18 Thread Piyush Raj
This patch adds initial version of vmtest-tool script to test BPF programs on live kernel For now, the tool is standalone, but it is intended to be integrated with the DejaGnu testsuite to run BPF testcases in future patches. Current Limitations: - Only x86_64 is supported. Support for

[PATCH v1 2/3] RISC-V: Add test for vec_duplicate + vmin.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-16 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vmin.vv combine to vmin.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-i16.c: Add asm check. * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-i32.c: Ditto

[PATCH v1 3/3] RISC-V: Add test for vec_duplicate + vmin.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-06-16 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vmin.vv combine to vmin.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-i16.c: Add asm check for vmin.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf/vx-4

Re: [PATCH v1] RISC-V: Refine VX combine test case 0 to avoid code duplication

2025-06-16 Thread Robin Dapp
The case 0 for vx combine def functions are most the same across the different test files. Thus, re-arrange them in one place to avoid code duplication. OK. -- Regards Robin

RE: [r14-11845 Regression] FAIL: c-c++-common/tsan/tls_race.c -O2 output pattern test on Linux/x86_64

2025-06-15 Thread Jiang, Haochen
67b689dbd970d6c4ab0f088d671 > Author: Georg-Johann Lay > Date: Thu Jun 12 10:07:37 2025 +0200 > > Fix test case for PR117811 which failed for int < 32 bit. > > caused > > FAIL: c-c++-common/tsan/tls_race.c -O0 output pattern test > FAIL: c-c++-common/tsan/t

[r14-11845 Regression] FAIL: c-c++-common/tsan/tls_race.c -O2 output pattern test on Linux/x86_64

2025-06-15 Thread haochen.jiang
On Linux/x86_64, ddf8b0e06f27667b689dbd970d6c4ab0f088d671 is the first bad commit commit ddf8b0e06f27667b689dbd970d6c4ab0f088d671 Author: Georg-Johann Lay Date: Thu Jun 12 10:07:37 2025 +0200 Fix test case for PR117811 which failed for int < 32 bit. caused FAIL: c-c++-common/t

[PATCH v1] RISC-V: Refine VX combine test case 0 to avoid code duplication

2025-06-15 Thread pan2 . li
From: Pan Li The case 0 for vx combine def functions are most the same across the different test files. Thus, re-arrange them in one place to avoid code duplication. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-i16.c: Leverage helper macros to avoid code

[PATCH v1 3/3] RISC-V: Add test for vec_duplicate + vmaxu.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-06-14 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vmaxu.vv combine to vmaxu.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-u16.c: Add asm check for vmaxu.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf

[PATCH v1 2/3] RISC-V: Add test for vec_duplicate + vmaxu.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-14 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vmaxu.vv combine to vmaxu.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u16.c: Add asm check for vmaxu.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf

[committed v2] libstdc++: Test chrono-spec containing only whitespaces.

2025-06-12 Thread Tomasz Kamiński
libstdc++-v3/ChangeLog: * testsuite/std/time/format/whitespace.cc: New test. Reviewed-by: Jonathan Wakely Signed-off-by: Tomasz Kamiński --- v2 adds missing _GLIBCXX_USE_CXX11_ABI check for uses of sys_info/local_info. Tested on x86_64-linux. Pushed to trunk. .../testsuite/std/time

RE: [r16-1429 Regression] FAIL: g++.target/i386/vect-pragma-target-2.C -std=gnu++98 (test for excess errors) on Linux/x86_64

2025-06-12 Thread Jiang, Haochen
I will do that. Thx, Haochen From: Andrew Pinski Sent: Thursday, June 12, 2025 10:52 PM Cc: gb.de...@gmail.com; gcc-regress...@gcc.gnu.org; GCC Patches ; Jiang, Haochen Subject: Re: [r16-1429 Regression] FAIL: g++.target/i386/vect-pragma-target-2.C -std=gnu++98 (test for excess errors) on

Re: [PATCH] libstdc++: Test chrono-spec containing only whitespaces.

2025-06-12 Thread Jonathan Wakely
gt; >>> * testsuite/std/time/format/whitespace.cc: New test. >>> --- >>> Testing on x86_64-linux. OK for trunk when test passes. >>> >>> .../testsuite/std/time/format/whitespace.cc | 54 +++ >>> 1 file changed, 54 insertio

Re: [PATCH] libstdc++: Test chrono-spec containing only whitespaces.

2025-06-12 Thread Tomasz Kaminski
On Thu, Jun 12, 2025 at 4:48 PM Daniel Krügler wrote: > Am Do., 12. Juni 2025 um 16:40 Uhr schrieb Tomasz Kamiński < > tkami...@redhat.com>: > >> libstdc++-v3/ChangeLog: >> >> * testsuite/std/time/format/whitespace.cc: New test. >> --- >> Te

Re: [r16-1429 Regression] FAIL: g++.target/i386/vect-pragma-target-2.C -std=gnu++98 (test for excess errors) on Linux/x86_64

2025-06-12 Thread Andrew Pinski
On Wed, Jun 11, 2025, 10:17 PM haochen.jiang wrote: > On Linux/x86_64, > > dcb9af06212e8bb36e84a1b8498c625c29abeb6f is the first bad commit > commit dcb9af06212e8bb36e84a1b8498c625c29abeb6f > Author: Gwenole Beauchesne > Date: Mon Jun 2 14:44:55 2025 -0700 > > c/c++: Handle '#pragma GCC ta

Re: [PATCH] libstdc++: Test chrono-spec containing only whitespaces.

2025-06-12 Thread Daniel Krügler
Am Do., 12. Juni 2025 um 16:40 Uhr schrieb Tomasz Kamiński < tkami...@redhat.com>: > libstdc++-v3/ChangeLog: > > * testsuite/std/time/format/whitespace.cc: New test. > --- > Testing on x86_64-linux. OK for trunk when test passes. > > .../testsuite/std/time/

[PATCH] libstdc++: Test chrono-spec containing only whitespaces.

2025-06-12 Thread Tomasz Kamiński
libstdc++-v3/ChangeLog: * testsuite/std/time/format/whitespace.cc: New test. --- Testing on x86_64-linux. OK for trunk when test passes. .../testsuite/std/time/format/whitespace.cc | 54 +++ 1 file changed, 54 insertions(+) create mode 100644 libstdc++-v3/testsuite

[COMMITTED 14/26] ada: Fix rounding test with odd bases

2025-06-12 Thread Marc Poulhiès
From: Eric Botcazou The test as currently written is incorrect for odd bases. gcc/ada/ChangeLog: * libgnat/s-valuer.adb (Round_Extra): Use multiplicative test. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/libgnat/s-valuer.adb | 4 +++- 1 file changed, 3 insertions

[COMMITTED 13/26] ada: Remove obsolete test

2025-06-12 Thread Marc Poulhiès
From: Ronan Desplanques A previous change cleaned up the Ekind field of record component entities. That made a particular test obsolete, so this patch removes that test. gcc/ada/ChangeLog: * einfo-utils.adb (Set_Convention): Remove obsolete test. Tested on x86_64-pc-linux-gnu

[patch,testsuite,applied] Fix test case for PR117811

2025-06-12 Thread Georg-Johann Lay
The test case for this PR did not work for int < 32 bit. Fixed thusly. Johann -- Fix test case for PR117811 which failed for int < 32 bit. PR middle-end/117811 PR testsuite/52641 gcc/testsuite/ * gcc.dg/torture/pr117811.c: Fix for int &l

[PATCH v1 3/5] RISC-V: Add test for vec_dup + vmax.vv combine case 0 with max func 1 and GR2VR cost 0, 2 and 15

2025-06-12 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vmax.vv combine to vmax.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-i16.c: Add asm check for max func 1 vmax.vx combine. * gcc.target/riscv/rvv

[r16-1429 Regression] FAIL: g++.target/i386/vect-pragma-target-2.C -std=gnu++98 (test for excess errors) on Linux/x86_64

2025-06-11 Thread haochen.jiang
On Linux/x86_64, dcb9af06212e8bb36e84a1b8498c625c29abeb6f is the first bad commit commit dcb9af06212e8bb36e84a1b8498c625c29abeb6f Author: Gwenole Beauchesne Date: Mon Jun 2 14:44:55 2025 -0700 c/c++: Handle '#pragma GCC target optimize' early [PR48026] caused FAIL: gcc.target/i386/vect-p

[PATCH v1 2/5] RISC-V: Add test for vec_dup + vmax.vv combine case 0 with max func 0 and GR2VR cost 0, 2 and 15

2025-06-11 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vmax.vv combine to vmax.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-i16.c: Add asm check for max func 1 vmax.vx combine. * gcc.target/riscv/rvv

[r16-1429 Regression] FAIL: g++.target/i386/vect-pragma-target-2.C -std=gnu++98 (test for excess errors) on Linux/x86_64

2025-06-11 Thread haochen.jiang
/i386/vect-pragma-target-2.c (test for excess errors) FAIL: g++.target/i386/vect-pragma-target-2.C -std=gnu++17 (test for excess errors) FAIL: g++.target/i386/vect-pragma-target-2.C -std=gnu++26 (test for excess errors) FAIL: g++.target/i386/vect-pragma-target-2.C -std=gnu++98 (test for exce

[PATCH v1 5/5] RISC-V: Add test for vec_dup + vmax.vv combine case 1 with max func 1 and GR2VR cost 0, 1 and 2

2025-06-11 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vmax.vv combine to vmax.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-i16.c: Add asm check for vmax.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf/vx-4

[PATCH v1 4/5] RISC-V: Add test for vec_dup + vmax.vv combine case 1 with max func 0 and GR2VR cost 0, 1 and 2

2025-06-11 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vmax.vv combine to vmax.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-i16.c: Add asm check for vmax.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf/vx-4

Re: [PATCH v6 9/8] libstdc++: Uglify __mapping_alike template parameter and fix test and typo in comment.

2025-06-11 Thread Jonathan Wakely
an/layouts/class_mandate_neg.cc: Changed B to > function. OK for trunk > --- > This patch add minor fixes suggeted by Daniel. It also reworks a bit > class_mandate_neg.cc test, as previously one error was not generated > when debug was enabled. > > libstdc++-v3/inclu

Re: [PATCH] libstdc++: Test for precision and floting point durations.

2025-06-11 Thread Jonathan Wakely
On Wed, 11 Jun 2025 at 15:07, Tomasz Kamiński wrote: > > libstdc++-v3/ChangeLog: > > * testsuite/std/time/format/empty_spec.cc: New tests. > * testsuite/std/time/format/precision.cc: New test. > --- > Testing on x86_64-linux. OK for trunk when tests passes? O

Re: [PATCH v6 9/8] libstdc++: Uglify __mapping_alike template parameter and fix test and typo in comment.

2025-06-11 Thread Jonathan Wakely
On Fri, 6 Jun 2025 at 10:34, Luc Grosheintz wrote: > > > > On 6/5/25 17:18, Tomasz Kamiński wrote: > > When the static assert was generated from instantiations of default member > > initializer of class B, the error was not generated for B<1, > > std::layout_left, > > std::layout_left> case, only

Re: [PATCH] libstdc++: Test for precision and floting point durations.

2025-06-11 Thread Tomasz Kaminski
On Wed, Jun 11, 2025 at 4:07 PM Tomasz Kamiński wrote: > libstdc++-v3/ChangeLog: > > * testsuite/std/time/format/empty_spec.cc: New tests. > * testsuite/std/time/format/precision.cc: New test. > --- > Testing on x86_64-linux. OK for trunk when tests passes? >

[PATCH] libstdc++: Test for precision and floting point durations.

2025-06-11 Thread Tomasz Kamiński
libstdc++-v3/ChangeLog: * testsuite/std/time/format/empty_spec.cc: New tests. * testsuite/std/time/format/precision.cc: New test. --- Testing on x86_64-linux. OK for trunk when tests passes? .../testsuite/std/time/format/empty_spec.cc | 51 + .../testsuite/std/time

[PATCH] libstdc++: Remove unused 'test' variables in test cases

2025-06-10 Thread Jonathan Wakely
These variables could be used by custom definitions of the VERIFY macro prior to GCC 7.1 but serve no purpose now. They can be removed, along with the documentation with the historical note. libstdc++-v3/ChangeLog: * doc/xml/manual/test.xml: Remove note about unused '

Re: [AutoFDO] Profile merging for clone test

2025-06-10 Thread Jan Hubicka
gt;> > >>* auto-profile.cc (autofdo_source_profile::read): Dump message > >>while merging profile. > >> * pass_manager.h (get_pass_auto_profile): New. > >> > >> gcc/testsuite/ChangeLog: > >> > >>* gcc.dg/tree-prof/clon

Re: [AutoFDO] Profile merging for clone test

2025-06-09 Thread Jan Hubicka
OK, thanks! Honza

[PATCH v1 3/4] RISC-V: Add test for vec_duplicate + vremu.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-09 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vrem.vv combine to vrem.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u16.c: Add asm check for vremu.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf/vx

[PATCH v1 2/4] RISC-V: Reconcile the existing test for vremu.vx combine

2025-06-09 Thread pan2 . li
From: Pan Li Some existing vrem related test need some adjust for the asm check due to cost model. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/binop/vrem-rv32gcv.c: Adjust the asm check for vremu. * gcc.target/riscv/rvv/autovec/binop/vrem-rv64gcv.c: Ditto

[PATCH v1 4/4] RISC-V: Add test for vec_duplicate + vremu.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-06-09 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vremu.vv combine to vremu.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-u16.c: Add asm check for vremu.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf

[r16-1247 Regression] FAIL: g++.dg/modules/xtreme-header-8.C -std=c++26 (test for excess errors) on Linux/x86_64

2025-06-09 Thread haochen.jiang
-header-8.C module-cmi xstd (gcm.cache/xstd.gcm) FAIL: g++.dg/modules/xtreme-header-8.C -std=c++26 (test for excess errors) with GCC configured with ../../gcc/configure --prefix=/export/users3/haochenj/src/gcc-bisect/master/master/r16-1247/usr --enable-clocale=gnu --with-system-zlib --with-demangler

[COMMITTED 29/40] ada: Fix SPARK test failures caused by new handling of inherited class-wide pre/post

2025-06-09 Thread Marc Poulhiès
From: Gary Dismukes The revised handling of inherited class-wide pre/postconditions (for properly implementing the rules of RM 6.1.1(7/5)) broke two SPARK tests (N709-001__contracts and V516-041__private_ownership). This change fixes that, by refining the test for detecting formal parameters

Re: [AutoFDO] Profile merging for clone test

2025-06-08 Thread Kugan Vivekanandarajah
ew testcase to verify the merging of profiles > > >>>>> is performed for cloned functions. > > >>>>> > > >>>>> Since this is invoked very early, before the pass manager, we need to > > >>>>> set up the dumping expli

[PATCH v1 4/4] RISC-V: Add test for vec_duplicate + vrem.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-06-08 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vrem.vv combine to vrem.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-i16.c: Add asm check for vrem.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf/vx-4

[PATCH v1 3/4] RISC-V: Add test for vec_duplicate + vrem.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-08 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vrem.vv combine to vrem.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-i16.c: Add asm check for vrem.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf/vx

[PATCH v1 2/4] RISC-V: Reconcile the existing test for vrem.vx combine

2025-06-08 Thread pan2 . li
From: Pan Li Some existing vrem related test need some adjust for the asm check due to cost model. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/binop/vrem-rv32gcv.c: Adjust the asm check for vrem. * gcc.target/riscv/rvv/autovec/binop/vrem-rv64gcv.c: Ditto

[PATCH v2] test: Do not include in g++.dg/modules/xtreme-header*.h

2025-06-07 Thread Jonathan Wakely
:6631 This seems likely to be due to use of the optimize pragma or attribute in TBB headers. Remove from those tests, so that they behave consistently for everybody, and don't fail for people (like me) who routinely test with TBB headers installed so that libstdc++ PSTL is thoroughly tested.

Re: [PATCH] test: Do not include in g++.dg/modules/xtreme-header*.h

2025-06-06 Thread Patrick Palka
me-header-2_a.H: internal compiler error: in > core_vals, at cp/module.cc:6631 > > This seems likely to be due to use of the optimize pragma or attribute > in TBB headers. > > Remove from those tests, so that they behave consistently > for everybody, and don't fail for peopl

Re: [PATCH] test: Do not include in g++.dg/modules/xtreme-header*.h

2025-06-06 Thread Jonathan Wakely
: internal compiler error: in core_vals, at cp/module.cc:6631 This seems likely to be due to use of the optimize pragma or attribute in TBB headers. Remove from those tests, so that they behave consistently for everybody, and don't fail for people (like me) who routinely test with TBB headers inst

[PATCH] test: Do not include in g++.dg/modules/xtreme-header*.h

2025-06-06 Thread Jonathan Wakely
:6631 This seems likely to be due to use of the optimize pragma or attribute in TBB headers. Remove from those tests, so that they behave consistently for everybody, and don't fail for people (like me) who routinely test with TBB headers installed so that libstdc++ PSTL is thoroughly tested.

[committed] Fix compromised ARC test

2025-06-06 Thread Jeff Law
Jakub's recent changes for pr120231 compromised this arc port specific test. Essentially we collapse the entire FMA sequence down to a constant and thus never emit the FMA instruction the test wants to see. If we make "a" an extern so that we don't know its value t

[PATCH] libstdc++: Skip wchar_t range and tuple formatting test is wchar_t support is disabled.

2025-06-06 Thread Tomasz Kamiński
Simplfy dg-options in format/debug.cc, by not configuring wide encoding. Address TODO in format_kind.cc, by adding test for format_kind::map. libstdc++-v3/ChangeLog: * testsuite/std/format/ranges/format_kind.cc: Add test for range_format::map. * testsuite/std/format

Re: [PATCH v6 9/8] libstdc++: Uglify __mapping_alike template parameter and fix test and typo in comment.

2025-06-06 Thread Luc Grosheintz
pping_alike): Rename template parameter from M to _M_p. (layout_stride::mapping): Fix typo in comment. * 23_containers/mdspan/layouts/class_mandate_neg.cc: Changed B to function. --- This patch add minor fixes suggeted by Daniel. It also reworks a bit class_mandate_

Re: [PATCH v2] libstdc++: Test for formatting with empty spec for local_info and sys_info.

2025-06-06 Thread Jonathan Wakely
On Thu, 5 Jun 2025, 16:39 Tomasz Kaminski, wrote: > > > On Thu, Jun 5, 2025 at 5:19 PM Tomasz Kamiński > wrote: > >> We do not test with wchar_t currently, as operator<< (and format) are >> ill-formed in such case, because we do not widen abbrev member of >&g

[PATCH v1 3/4] RISC-V: Add test for vec_duplicate + vdivu.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-06-06 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vdivu.vv combine to vdivu.vx, with the GR2VR cost is 0, 1 and 2. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-u16.c: Add asm check for vdivu.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf

[PATCH v1 4/4] RISC-V: Reconcile the existing test for vdivu.vx combine

2025-06-06 Thread pan2 . li
From: Pan Li Some existing vdiv related test need some adjust for the asm check due to cost model. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/binop/vdiv-rv32gcv-nofm.c: Adjust the asm check for vdivu. * gcc.target/riscv/rvv/autovec/binop/vdiv-rv32gcv.c

[PATCH v1 2/4] RISC-V: Add test for vec_duplicate + vdivu.vv combine case 0 with GR2VR cost 0, 2 and 15

2025-06-06 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vdivu.vv combine to vdivu.vx, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx-1-u16.c: Add asm check for vdivu.vx combine. * gcc.target/riscv/rvv/autovec/vx_vf

Re: [AutoFDO] Profile merging for clone test

2025-06-05 Thread Andrew Pinski
the dumping explicitly. This is similar to the handling in > >> finish_optimization_passes. > >> > >> gcc/ChangeLog: > >> > >>* auto-profile.cc (autofdo_source_profile::read): Dump message > >>while merging profile. > >>

Re: [AutoFDO] Profile merging for clone test

2025-06-05 Thread Kugan Vivekanandarajah
gt;> >>* auto-profile.cc (autofdo_source_profile::read): Dump message >>while merging profile. >>* pass_manager.h (get_pass_auto_profile): New. >> >> gcc/testsuite/ChangeLog: >> >>* gcc.dg/tree-prof/clone-merge-1.c: New test. &g

Re: [AutoFDO] Profile merging for clone test

2025-06-05 Thread Andrew Pinski
angeLog: > > * gcc.dg/tree-prof/clone-merge-1.c: New test. This new testcase fails if you don't have autofdo setup. I think it needs: /* { dg-require-profiling "-fauto-profile" } */ Thanks, Andrew Pinski > > Is this OK? > > Thanks, > Kugan >

Re: [PATCH v2] libstdc++: Test for formatting with empty spec for local_info and sys_info.

2025-06-05 Thread Tomasz Kaminski
On Thu, Jun 5, 2025 at 5:19 PM Tomasz Kamiński wrote: > We do not test with wchar_t currently, as operator<< (and format) are > ill-formed in such case, because we do not widen abbrev member of > local_info. > > Adding a tests for behavior of the ostream operator and the fo

[PATCH v6 9/8] libstdc++: Uglify __mapping_alike template parameter and fix test and typo in comment.

2025-06-05 Thread Tomasz Kamiński
t also reworks a bit class_mandate_neg.cc test, as previously one error was not generated when debug was enabled. libstdc++-v3/include/std/mdspan| 18 +- .../mdspan/layouts/class_mandate_neg.cc| 18 ++ 2 files changed, 19 insertions(+), 17 del

[PATCH v2] libstdc++: Test for formatting with empty spec for local_info and sys_info.

2025-06-05 Thread Tomasz Kamiński
We do not test with wchar_t currently, as operator<< (and format) are ill-formed in such case, because we do not widen abbrev member of local_info. Adding a tests for behavior of the ostream operator and the formatting with empty chrono-spec for the chrono types. The coverage is now co

  1   2   3   4   5   6   7   8   9   10   >