[pushed] testsuite: Fix unallocated array usage in test

2025-07-10 Thread Mikael Morin
fixed.From ca034694757f0fb3461a1d0c22708a3e4c0e40fa Mon Sep 17 00:00:00 2001 From: Mikael Morin Date: Sat, 5 Jul 2025 15:05:20 +0200 Subject: [PATCH] testsuite: Fix unallocated array usage in test gcc/testsuite/ChangeLog: * gfortran.dg/asan/array_constructor_1.f90: Allocate array before using it. --- gcc/testsuite/g

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

2025-07-10 Thread Piyush Raj
+# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[codz] +*$py.class + +# Unit test / coverage reports +.pytest_cache/ + + +# Environments +.env +.envrc +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Ruff stuff: +.ruff_cache/ Will the files be e.g. byte-compiled in typical use? At a

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

2025-07-10 Thread Segher Boessenkool
he 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 functions insert_di_0_v2 and insert_di_0. > > This behavior was introduced by commit r15-7961-gd

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

2025-07-10 Thread Surya Kumari Jangala
Hi Jeevitha, On 24/06/25 3:30 pm, jeevitha wrote: > 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-b

[r16-2103 Regression] FAIL: gcc.dg/guality/pr41447-1.c -Os -DPREVENT_OPTIMIZATION execution test on Linux/x86_64

2025-07-10 Thread haochen.jiang
-DPREVENT_OPTIMIZATION execution test FAIL: gcc.dg/guality/pr41447-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none -DPREVENT_OPTIMIZATION execution test FAIL: gcc.dg/guality/pr41447-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects -DPREVENT_OPTIMIZATION execution test FAIL: gcc.dg

[r16-2084 Regression] FAIL: 23_containers/forward_list/debug/move_neg.cc -std=gnu++17 (test for excess errors) on Linux/x86_64

2025-07-10 Thread haochen.jiang
/forward_list/cons/self_move.cc -std=gnu++17 (test for excess errors) FAIL: 23_containers/forward_list/debug/construct4_neg.cc -std=gnu++17 (test for excess errors) FAIL: 23_containers/forward_list/debug/move_assign_neg.cc -std=gnu++17 (test for excess errors) FAIL: 23_containers/forward_list

RE: [PATCH v1] RISCV: Remove the v extension requirement for sat scalar run test

2025-07-09 Thread Li, Pan2
, Hongtao Subject: Re: [PATCH v1] RISCV: Remove the v extension requirement for sat scalar run test On 7/9/25 7:19 PM, Li, Pan2 wrote: >>> * gcc.target/riscv/sat/sat_u_trunc-run-6-u8.c: Ditto. >> Spot checked. Note this uses "RISC-V" so it's not going to be

Re: [PATCH v1] RISCV: Remove the v extension requirement for sat scalar run test

2025-07-09 Thread Jeff Law
an '__int128__'? compiler exited with status 1 FAIL: gcc.target/riscv/sat/sat_u_sub-run-4-u32.c -O3 (test for excess errors) Ah, that means the baseline is stuck. A problem for Edwin. With that in mind, I think this is OK. Go ahead and push it. jeff

RE: [PATCH v1] RISCV: Remove the v extension requirement for sat scalar run test

2025-07-09 Thread Li, Pan2
7;? compiler exited with status 1 FAIL: gcc.target/riscv/sat/sat_u_sub-run-4-u32.c -O3 (test for excess errors) Pan -Original Message- From: Jeff Law Sent: Wednesday, July 9, 2025 11:47 PM To: Li, Pan2 ; gcc-patches@gcc.gnu.org Cc: juzhe.zh...@rivai.ai; kito.ch...@gmail.com; rdapp

Re: [PATCH v1] RISCV: Remove the v extension requirement for sat scalar run test

2025-07-09 Thread Jeff Law
On 7/8/25 11:07 PM, pan2...@intel.com wrote: From: Pan Li The sat scalar run test should not require the v extension, thus take rv32 || rv64 instead of riscv_v for the requirement. The below test suites are passed for this patch series. * The rv64gcv fully regression test. * The rv32gcv

[PATCH v1] RISCV: Remove the v extension requirement for sat scalar run test

2025-07-08 Thread pan2 . li
From: Pan Li The sat scalar run test should not require the v extension, thus take rv32 || rv64 instead of riscv_v for the requirement. The below test suites are passed for this patch series. * The rv64gcv fully regression test. * The rv32gcv fully regression test. gcc/testsuite/ChangeLog

[committed] libstdc++: Fix double free in new pool resource test [PR118681]

2025-07-08 Thread Jonathan Wakely
This was supposed to free p1 and p2, not free p2 twice. libstdc++-v3/ChangeLog: PR libstdc++/118681 * testsuite/20_util/unsynchronized_pool_resource/118681.cc: Fix deallocate argument. --- Tested x86_64-linux. Pushed to trunk. Thanks to Daniel Boles for noticing this.

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

2025-07-08 Thread David Faust
uot;~/.bpf-vmtest-tool", which is reused for future > invocations. > > It 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.

Re: [PATCH v1 2/3] libstdc++: Prepare test code for default_accessor for reuse.

2025-07-08 Thread Tomasz Kaminski
On Thu, Jul 3, 2025 at 12:36 PM Luc Grosheintz wrote: > All test code of default_accessor can be reused. This commit moves > the reuseable code into a file generic.cc and prepares the tests for > reuse with aligned_accessor. > > The AllocatorTrait creates a unified interface fo

Re: [PATCH v2 1/2] libstdc++: Silence a warning in a test for span.

2025-07-08 Thread Jonathan Wakely
OK On Tue, 8 Jul 2025 at 10:50, Luc Grosheintz wrote: > > In a test of span, there's an unused variable myspan. This > commit silences the warning. > > libstdc++-v3/ChangeLog: > > * testsuite/23_containers/span/contiguous_range_neg.cc: Silence >

[PATCH v2 1/2] libstdc++: Silence a warning in a test for span.

2025-07-08 Thread Luc Grosheintz
In a test of span, there's an unused variable myspan. This commit silences the warning. libstdc++-v3/ChangeLog: * testsuite/23_containers/span/contiguous_range_neg.cc: Silence warning about unused variable myspan. Signed-off-by: Luc Grosheintz --- .../testsuite/23_conta

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

2025-07-07 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vssub.vv combine to vssub.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 + vssub.vv combine case 1 with GR2VR cost 0, 1 and 2

2025-07-07 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vssub.vv combine to vssub.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. * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-i32.c: Ditto

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

2025-07-03 Thread pan2 . li
From: Pan Li Add asm dump check test for vec_duplicate + vsadd.vv combine to vsadd.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. * gcc.target/riscv/rvv/autovec/vx_vf/vx-4-i32.c: Ditto

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

2025-07-03 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vsadd.vv combine to vsadd.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

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

2025-07-03 Thread Piyush Raj
On 02/07/25 21:44, Jose E. Marchesi wrote: One can also pass a precompiled BPF object with the desired optimization options to the script to check it with the verifier. Yes, but AFAIK building objects that can be actually loaded in the kernel and verified requires in practice including kernel h

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

2025-07-03 Thread Piyush Raj
s. It 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 loa

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

2025-07-03 Thread Piyush Raj
This patch adds initial version of bpf-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

[PUSHED] OpenMP: Add omp_get_initial_device/omp_get_num_devices builtins: Fix test cases

2025-07-03 Thread Thomas Schwinge
With this fix-up for commit 387209938d2c476a67966c6ddbdbf817626f24a2 "OpenMP: Add omp_get_initial_device/omp_get_num_devices builtins", we progress: PASS: c-c++-common/gomp/omp_get_num_devices_initial_device.c (test for excess errors) PASS: c-c++-c

[PATCH v1 2/3] libstdc++: Prepare test code for default_accessor for reuse.

2025-07-03 Thread Luc Grosheintz
All test code of default_accessor can be reused. This commit moves the reuseable code into a file generic.cc and prepares the tests for reuse with aligned_accessor. The AllocatorTrait creates a unified interface for creating both default_accessor and aligned_accessor typenames. libstdc++-v3

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

2025-07-03 Thread Richard Sandiford
Karl Meakin writes: > 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. OK

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

2025-07-02 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 v8 7/9] AArch64: precommit test for CMPBR instructions

2025-07-02 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 1/1] contrib: add vmtest-tool to test BPF programs

2025-07-02 Thread Jose E. Marchesi
; +=== >> > + >> > +This tool uses `uv` (https://github.com/astral-sh/uv) for virtual >> > environment >> > +and dependency management. >> > + >> > +To install development dependencies: >> > + >> > +uv sync >> > +

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

2025-07-02 Thread Piyush Raj
ks for catching that. I’ll fix it in the revision. > +DEVELOPMENT > +=== > + > +This tool uses `uv` (https://github.com/astral-sh/uv) for virtual environment > +and dependency management. > + > +To install development dependencies: > + > +uv sync > + >

[PATCH v3 4/4] RISC-V: Add test cases for unsigned scalar SAT_MUL from uint128_t

2025-07-01 Thread pan2 . li
From: Pan Li Add run and tree-optimized check for unsigned scalar SAT_MUL from uint128_t. gcc/testsuite/ChangeLog: * gcc.target/riscv/sat/sat_arith.h: Add test helper macros. * gcc.target/riscv/sat/sat_arith_data.h: Add test data for run test. * gcc.target/riscv

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

  1   2   3   4   5   6   7   8   9   10   >