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

2025-09-16 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vwsubu.vv combine to vwsubu.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 vwsubu.vx. * gcc.target/riscv/rvv/autovec

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

2025-09-16 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vwaddu.vv combine to vwaddu.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 vwaddu.vx. * gcc.target/riscv/rvv/autovec

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

2025-09-16 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vwmulu.vv combine to vwmulu.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 vwmulu.vx. * gcc.target/riscv/rvv/autovec

[PATCH v2 2/2] RISC-V: Add test case of unsigned scalar SAT_MUL form 5 for widen-mul

2025-09-15 Thread pan2 . li
From: Pan Li The form 5 of unsigned scalar SAT_MUL is covered in middle-expand alreay, add test case here to cover form 5. gcc/testsuite/ChangeLog: * gcc.target/riscv/sat/sat_arith.h: Add test helper macros. * gcc.target/riscv/sat/sat_u_mul-6-u16-from-u128.c: New test

[PATCH 4/6] libstdc++: Add test future tests for negative timeouts

2025-09-14 Thread Mike Crowe
Add tests to show that std::future::wait_until and std::future::wait_for don't suffer from libstdc++/PR116586. libstdc++-v3/ChangeLog: * testsuite/30_threads/future/members/116586.cc: New test. Signed-off-by: Mike Crowe --- .../30_threads/future/members/116586.cc

[PATCH v2] testsuite: Add a smoke test for _FloatN ABI

2025-09-13 Thread Trevor Gross
Introduce a test that exercises various ABI aspects of C23 float types. This is based on existing tests such as `float16-basic.c`. ABI bugs against anything other than GCC are not caught, but this is intended to sanity check against things like stack misalignments and libcall mismatches that have

Re: [PATCH v3 7/7] kcfi: Add regression test suite

2025-09-13 Thread Andrew Pinski
On Sat, Sep 13, 2025 at 4:36 PM Kees Cook wrote: > > Adds a test suite for KCFI (Kernel Control Flow Integrity) ABI, covering > core functionality, optimization and code generation, addressing, > architecture-specific KCFI sequence emission, and integration with > patchable

Re: [PATCH, FYI] [ppc] adjust configure test for large toc support

2025-09-13 Thread Alexandre Oliva
ng wrong with the single-paragraph commit message, and you seemed to agree with it. What are you getting at? Are you by any chance under the mistaken notion that the description of how I tested the patch and when I intended to commit it was part of a commit message? > and the changelog not e

Re: [PATCH] testsuite: Add a smoke test for _FloatN ABI

2025-09-13 Thread Trevor Gross
On Sun Aug 31, 2025 at 9:29 AM CDT, Trevor Gross wrote: > Introduce a test that exercises various ABI aspects of C23 float types. > This is based on existing tests such as `float16-basic.c`. > > 2025-08-31 Trevor Gross > > gcc/testsuite/ > > * gcc.dg/torture/

Re: [PATCH v3 7/7] kcfi: Add regression test suite

2025-09-13 Thread Andrew Pinski
On Sat, Sep 13, 2025 at 4:36 PM Kees Cook wrote: > > Adds a test suite for KCFI (Kernel Control Flow Integrity) ABI, covering > core functionality, optimization and code generation, addressing, > architecture-specific KCFI sequence emission, and integration with > patchable

[PATCH v3 7/7] kcfi: Add regression test suite

2025-09-13 Thread Kees Cook
Adds a test suite for KCFI (Kernel Control Flow Integrity) ABI, covering core functionality, optimization and code generation, addressing, architecture-specific KCFI sequence emission, and integration with patchable function entry. Tests can be run via: make check-c RUNTESTFLAGS='kcfi.exp&

Re: [PATCH, FYI] [ppc] adjust configure test for large toc support

2025-09-13 Thread Segher Boessenkool
Hi! On Sat, Sep 13, 2025 at 12:07:33AM -0300, Alexandre Oliva wrote: > The use of the TLS register in a TOC/GOT address computation was > probably a cut&pasto or a thinko. It causes a linker warning and, > because the TLS access in the test is incomplete, may cause > signi

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

2025-09-12 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vwmulu.vv combine to vwmulu.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 vwmulu.vx. * gcc.target/riscv/rvv/autovec

[PATCH, FYI] [ppc] adjust configure test for large toc support

2025-09-12 Thread Alexandre Oliva
The use of the TLS register in a TOC/GOT address computation was probably a cut&pasto or a thinko. It causes a linker warning and, because the TLS access in the test is incomplete, may cause significant confusion. Adjust to use the TOC/GOT register as base. Tested manually with cross binu

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

2025-09-12 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vwaddu.vv combine to vwaddu.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 vwaddu.vx. * gcc.target/riscv/rvv/autovec

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

2025-09-12 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vwsubu.vv combine to vwsubu.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 vwsubu.vx. * gcc.target/riscv/rvv/autovec

[pushed: r16-3826] testsuite: fix typo in name of plugin test file

2025-09-12 Thread David Malcolm
Successfully regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r16-3826-g85a97e1a8ee934. gcc/testsuite/ChangeLog: * gcc.dg/plugin/crash-test-write-though-null-sarif.c: Rename to... * gcc.dg/plugin/crash-test-write-through-null-sarif.c: ...this. * gcc.dg/plugin/crash

[r16-3810 Regression] FAIL: g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C -std=c++17 at line 21 (test for warnings, line 12) on Linux/x86_64

2025-09-11 Thread Jiang, Haochen
/analyzer/fanalyzer-show-events-in-system-headers.C -std=c++17 at line 12 (test for warnings, line 11) FAIL: g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C -std=c++17 telltale event that we are going within a deeper frame than 'main' (test for warnings, line 9) FAIL: g++.d

[PATCH v3 3/3] testsuite: LoongArch: Enable 16B atomic tests if the test machine supports LSX and SCQ

2025-09-08 Thread Xi Ruoyao
Enable those tests so we won't make too stupid mistakes in 16B atomic implementation anymore. All these test passed on a Loongson 3C6000/S except atomic-other-int128.c. With GDB patched to support sc.q (https://sourceware.org/pipermail/gdb-patches/2025-August/220034.html) this test also

Re: [PATCH] testsuite: Another fixup for fixed-point/bitint-1.c test

2025-09-08 Thread Jakub Jelinek
On Mon, Sep 08, 2025 at 09:51:32PM +0800, Xi Ruoyao wrote: > Besides r16-3595, there's another bug in this test: with -std=c23 the > token _Sat isn't recognized as a keyword at all, thus an error massage > different from the expected will be outputted. > > Fix it by

[PATCH] testsuite: Another fixup for fixed-point/bitint-1.c test

2025-09-08 Thread Xi Ruoyao
Besides r16-3595, there's another bug in this test: with -std=c23 the token _Sat isn't recognized as a keyword at all, thus an error massage different from the expected will be outputted. Fix it by using -std=gnu23 instead. gcc/testsuite: * gcc.dg/fixed-point/bitint-1.c (

Re: [PATCH v2] [contrib] compare_tests: Report non-unique test names

2025-09-07 Thread Jeff Law
On 9/1/25 7:02 AM, Christophe Lyon wrote: Test "names" (the string after 'PASS:' or 'FAIL:' etc... is expected to be unique, otherwise this will confuse comparison scripts. This patch displays the lists of non-unique test names in the 'before' and

[committed][RISC-V] Adjust recently added test

2025-09-06 Thread Jeff Law
The recently added zbb-sext test includes stdint.h and explicitly asks for the lp64 abi (not lp64d!). This will fail on a native riscv system as the system headers don't support lp64 -- they assume "d" is included. It looks like most tests are including stdint-gcc instead of

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

2025-09-05 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vnmsub.vv combine to vnmsub.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 vnmsub.vx. * gcc.target/riscv/rvv/autovec

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

2025-09-05 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vnmsub.vvm combine to vnmsub.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 vnmsub.vx. * gcc.target/riscv/rvv/autovec

Re: [PATCH v2 7/7] kcfi: Add regression test suite

2025-09-05 Thread Kees Cook
On Fri, Sep 05, 2025 at 09:06:41AM +0200, Jakub Jelinek wrote: > On Thu, Sep 04, 2025 at 05:24:15PM -0700, Kees Cook wrote: > > --- /dev/null > > +++ b/gcc/testsuite/gcc.dg/kcfi/kcfi-adjacency.c > > @@ -0,0 +1,73 @@ > > +/* Test KCFI check/transfer adjacency - regr

Re: [patch,testsuite,applied] Fix test case for PR121695

2025-09-05 Thread Andrew Pinski
the right thing for non int32bit targets but it looks like this one slipped through as I just committed the testcase as it was from the bug report instead of cleaning it up more. Thanks, Andrew > > Johann > > -- > > testsuite: Fix gcc.dg/torture/pr121695-1.c > > This t

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

2025-09-05 Thread Georg-Johann Lay
Applied as obvious. Johann -- testsuite: Fix gcc.dg/torture/pr121695-1.c This test case fails on int < 32-bit platforms obviously. This patch undoes the macro expansion from stdint.h. gcc/testsuite/ PR testsuite/121695 PR testsuite/52641 gcc.dg/torture/pr121695-

[committed] testsuite: Fix up fixed-point/bitint-1.c test

2025-09-05 Thread Jakub Jelinek
Hi! This test was written without _BitInt support on any target with fixed-point support as well, so was actually never tested. Now that it can be tested on loongarch64-linux, there is a missing expected error, so this patch adds it. Tested with a cross to loongarch64-linux, bootstrapped

Re: [Patch fortran] PR84432 & PR114815 - test for non-conforming default PDT initializers

2025-09-05 Thread Paul Richard Thomas
Nit eradicated and pushed as r16-3590. Thanks Paul On Thu, 4 Sept 2025 at 21:53, Harald Anlauf wrote: > Hi Paul! > > Am 04.09.25 um 20:46 schrieb Paul Richard Thomas: > > Hi All, > > > > PDT components with default initializers must have type parameter and > > length expressions that reduce t

Re: [PATCH v2 7/7] kcfi: Add regression test suite

2025-09-05 Thread Jakub Jelinek
On Thu, Sep 04, 2025 at 05:24:15PM -0700, Kees Cook wrote: > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/kcfi/kcfi-adjacency.c > @@ -0,0 +1,73 @@ > +/* Test KCFI check/transfer adjacency - regression test for instruction > + insertion. */ > +/* { dg-do compile } */ > +/* { d

Re: [Patch fortran] PR84432 & PR114815 - test for non-conforming default PDT initializers

2025-09-04 Thread Steve Kargl
On Thu, Sep 04, 2025 at 10:53:48PM +0200, Harald Anlauf wrote: > Hi Paul! > > Am 04.09.25 um 20:46 schrieb Paul Richard Thomas: > > Hi All, > > > > PDT components with default initializers must have type parameter and > > length expressions that reduce to compile time integer constants. The chunk

Re: [Patch fortran] PR84432 & PR114815 - test for non-conforming default PDT initializers

2025-09-04 Thread Harald Anlauf
Hi Paul! Am 04.09.25 um 20:46 schrieb Paul Richard Thomas: Hi All, PDT components with default initializers must have type parameter and length expressions that reduce to compile time integer constants. The chunk in expr.cc verifies that this is the case for array bounds and character lengths.

[Patch fortran] PR84432 & PR114815 - test for non-conforming default PDT initializers

2025-09-04 Thread Paul Richard Thomas
original" } } +! { dg-final { scan-tree-dump-times "__builtin_malloc" 8 "original" } } diff --git a/gcc/testsuite/gfortran.dg/pdt_27.f03 b/gcc/testsuite/gfortran.dg/pdt_27.f03 index 525bf3d..de5f517ec05 100644 --- a/gcc/testsuite/gfortran.dg/pdt_27.f03 +++ b/gcc/testsuite/

[PUSHED] Testsuite: Don't test vector-compare-1.C on strict alignment targets

2025-09-03 Thread Andrew Pinski
This testcase will fail on strict alignment targets due to the requirement of doing a possible unaligned load. This fixes that. Note this testcase still fails on arm (and maybe riscv) targets while having unaligned loads, they have slow ones. Pushed as obvious after testing on x86_64-linux-gnu to

[committed] arm: testsuite: improve test compatibility of asm-hard-reg-... tests

2025-09-02 Thread Richard Earnshaw
get arm-*-* s390-*-* } } */ +/* { dg-do compile { target arm*-*-* s390-*-* } } */ /* { dg-options "-std=c99" } we need long long */ -/* { dg-additional-options "-march=armv7-a -marm" { target arm-*-* } } */ +/* { dg-additional-options "-mcpu=unset -march=armv7-a+fp -marm" { target arm*-*-* } } */ /* Test register pairs. */ -- 2.43.0

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

2025-09-02 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vmadd.vv combine to vmadd.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 vmadd.vx. * gcc.target/riscv/rvv/autovec/vx_vf

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

2025-09-02 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vmadd.vvm combine to vmadd.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 vmadd.vx. * gcc.target/riscv/rvv/autovec/vx_vf

[PATCH v1 2/4] RISC-V: Adjust the vmacc.vx combine test cases

2025-09-02 Thread pan2 . li
From: Pan Li To avoid generating the vmadd.vx code. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx_ternary.h: Adjust the vmacc.vx to avoid generating vmadd. Signed-off-by: Pan Li --- .../gcc.target/riscv/rvv/autovec/vx_vf/vx_ternary.h | 8 ++-- 1 f

Re: [PATCH] Add default arch/tuning to shift-gf2p8affine test cases

2025-09-01 Thread Andi Kleen
On Fri, Aug 29, 2025 at 09:01:06AM -0700, Andi Kleen wrote: > From: Andi Kleen > > This makes them not fail during test suite runs with overriden arch or > tunings. Comitted as obvious now. -Andi

Re: [PATCH v2] [contrib] compare_tests: Report non-unique test names

2025-09-01 Thread Richard Earnshaw (lists)
On 01/09/2025 14:02, Christophe Lyon wrote: > Test "names" (the string after 'PASS:' or 'FAIL:' etc... is expected > to be unique, otherwise this will confuse comparison scripts. > > This patch displays the lists of non-unique test names in the 'b

[PATCH v2] [contrib] compare_tests: Report non-unique test names

2025-09-01 Thread Christophe Lyon
Test "names" (the string after 'PASS:' or 'FAIL:' etc... is expected to be unique, otherwise this will confuse comparison scripts. This patch displays the lists of non-unique test names in the 'before' and in the 'now' results. contrib/ChangeLog

Re: [PATCH] [contrib] compare_tests: Report non-unique test names

2025-09-01 Thread Christophe Lyon
On Mon, 1 Sept 2025 at 12:57, Richard Earnshaw (lists) wrote: > > On 01/09/2025 10:59, Christophe Lyon wrote: > > Test "names" (the string after 'PASS:' or 'FAIL:' etc... is expected > > to be unique, otherwise this will confuse comparison scrip

Re: [PATCH] [contrib] compare_tests: Report non-unique test names

2025-09-01 Thread Richard Earnshaw (lists)
On 01/09/2025 10:59, Christophe Lyon wrote: > Test "names" (the string after 'PASS:' or 'FAIL:' etc... is expected > to be unique, otherwise this will confuse comparison scripts. > > This patch displays the lists of non-unique test names in the 'b

[PATCH] [contrib] compare_tests: Report non-unique test names

2025-09-01 Thread Christophe Lyon
Test "names" (the string after 'PASS:' or 'FAIL:' etc... is expected to be unique, otherwise this will confuse comparison scripts. This patch displays the lists of non-unique test names in the 'before' and in the 'now' results. contrib/ChangeLog

[PATCH v1 2/2] RISC-V: Add test case of unsigned scalar SAT_MUL form 5 for widen-mul

2025-08-31 Thread pan2 . li
From: Pan Li The form 5 of unsigned scalar SAT_MUL is covered in middle-expand alreay, add test case here to cover form 5. gcc/testsuite/ChangeLog: * gcc.target/riscv/sat/sat_arith.h: Add test helper macros. * gcc.target/riscv/sat/sat_u_mul-6-u16-from-u128.c: New test

[PATCH] testsuite: Add a smoke test for _FloatN ABI

2025-08-31 Thread Trevor Gross
Introduce a test that exercises various ABI aspects of C23 float types. This is based on existing tests such as `float16-basic.c`. 2025-08-31 Trevor Gross gcc/testsuite/ * gcc.dg/torture/float128-abi.c: New test. * gcc.dg/torture/float128x-abi.c: New test. * gcc.dg

[PATCH] Add default arch/tuning to shift-gf2p8affine test cases

2025-08-29 Thread Andi Kleen
From: Andi Kleen This makes them not fail during test suite runs with overriden arch or tunings. gcc/testsuite/ChangeLog: * gcc.target/i386/shift-gf2p8affine-1.c: Use -march=x86-64 -mtune-generic. * gcc.target/i386/shift-gf2p8affine-2.c: Dito. * gcc.target

RE: [PATCH v1] RISC-V: Add test case for unsigned scalar SAT_MUL form 4

2025-08-28 Thread Li, Pan2
Will commit it directly as test only if no comments in next 24H. Pan -Original Message- From: Li, Pan2 Sent: Sunday, August 24, 2025 8:30 PM To: gcc-patches@gcc.gnu.org Cc: juzhe.zh...@rivai.ai; kito.ch...@gmail.com; jeffreya...@gmail.com; rdapp@gmail.com; Chen, Ken ; Liu, Hongtao

[committed] libstdc++: Test comparing ordering with type convertible to any pointer.

2025-08-28 Thread Tomasz Kamiński
libstdc++-v3/ChangeLog: * testsuite/18_support/comparisons/categories/zero_neg.cc: New test. Reviewed-by: Jonathan Wakely Signed-off-by: Tomasz Kamiński --- .../comparisons/categories/zero_neg.cc | 16 1 file changed, 16 insertions(+) Tested on x86_64-linux

Re: [PATCH] configure: Add readelf fallback for HAVE_AS_ULEB128 test [PR119367]

2025-08-28 Thread Richard Biener
handling > -# these directives, even when they appear to accept them. > +# Older versions of GAS and some non-GNU assemblers have bugs in handling > +# of these directives, even when they appear to accept them. > gcc_GAS_CHECK_FEATURE([.sleb128 and .uleb128], gcc_cv_as_leb128, > [$chec

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

2025-08-27 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vnmsac.vvm combine to vnmsac.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 vnmsac.vx. * gcc.target/riscv/rvv/autovec

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

2025-08-27 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vnmsac.vvm combine to vnmsac.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 vnmsac.vx. * gcc.target/riscv/rvv/autovec

[committed] Remove xfail marker on RISC-V test

2025-08-27 Thread Jeff Law
So yet another testsuite hygiene patch. This time turning XPASS -> PASS. My tester treats those cases the same so I didn't get notified that nozicond-2.c was passing after some recent changes. This removes the xfail marker on that test and thus the test is expected to pass now. Pu

[PATCH] configure: Add readelf fallback for HAVE_AS_ULEB128 test [PR119367]

2025-08-27 Thread Jakub Jelinek
these directives, even when they appear to accept them. gcc_GAS_CHECK_FEATURE([.sleb128 and .uleb128], gcc_cv_as_leb128, [$check_leb128_asflags], [ .data @@ -3330,6 +3330,11 @@ elif test "x$gcc_cv_otool" != x; then | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80

[r16-3379 Regression] FAIL: gcc.dg/debug/ctf/ctf-array-7.c (test for excess errors) on Linux/x86_64

2025-08-26 Thread Jiang, Haochen
(test for excess errors) with GCC configured with ../../gcc/configure --prefix=/export/users3/haochenj/src/gcc-bisect/master/master/r16-3379/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable

[committed] testsuite: restrict ctf-array-7 test to 64-bit targets [PR121411]

2025-08-26 Thread David Faust
The test fails to compile on 32-bit targets because the arrays are too large. Restrict to targets where the array index type is 64-bits. Also note the relevant PR in the test comment. Tested on x86_64-pc-linux-gnu host and arm-eabi cross target. Pushed as obvious. PR debug/121411 gcc

Re: [PATCH] Add a test for PR tree-optimization/121656

2025-08-25 Thread Andrew Pinski
On Mon, Aug 25, 2025 at 9:51 PM Sam James wrote: > > "H.J. Lu" writes: > > > PR tree-optimization/121656 > > * gcc.dg/pr121656.c: New file. > > > > Signed-off-by: H.J. Lu > > --- > > gcc/testsuite/gcc.dg/pr121656.c | 21 + > > 1 file changed, 21 insertions(+) > >

Re: [PATCH] Add a test for PR tree-optimization/121656

2025-08-25 Thread Sam James
"H.J. Lu" writes: > PR tree-optimization/121656 > * gcc.dg/pr121656.c: New file. > > Signed-off-by: H.J. Lu > --- > gcc/testsuite/gcc.dg/pr121656.c | 21 + > 1 file changed, 21 insertions(+) > create mode 100644 gcc/testsuite/gcc.dg/pr121656.c > > diff --git a/g

[PATCH] Add a test for PR tree-optimization/121656

2025-08-25 Thread H.J. Lu
PR tree-optimization/121656 * gcc.dg/pr121656.c: New file. Signed-off-by: H.J. Lu --- gcc/testsuite/gcc.dg/pr121656.c | 21 + 1 file changed, 21 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr121656.c diff --git a/gcc/testsuite/gcc.dg/pr121656.c b/g

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

2025-08-25 Thread Jose E. Marchesi
>>>> This form of the script looks generally good to me. >> >>>> May be a good time to move to the second stage of the project, which >> >>>> if >> >>>> I am not mistaken consists in creating some dejagnu infrastructure so we >> >

[PATCH v1] RISC-V: Add test case for unsigned scalar SAT_MUL form 4

2025-08-24 Thread pan2 . li
From: Pan Li The form 4 of unsigned scalar SAT_MUL is covered in middle-expand alreay, add test case here to cover form 4. The below test suites are passed for this patch series. * The rv64gcv fully regression test. gcc/testsuite/ChangeLog: * gcc.target/riscv/sat/sat_arith.h: Add test

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

2025-08-23 Thread Piyush Raj
e to the second stage of the project, which > >>>> if > >>>> I am not mistaken consists in creating some dejagnu infrastructure so we > >>>> can get testsuites running the script on the test sources. > >>> > >>> I’m working on a

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

2025-08-23 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 v1 0/2] BPF runtime test support

2025-08-23 Thread Piyush Raj
breaks loader compilation. Thanks Piyush Raj (2): contrib: add bpf-vmtest-tool to test BPF programs testsuite: bpf: add DejaGnu board for bpf-unknown-none target contrib/bpf-vmtest-tool/README| 78 +++ contrib/bpf-vmtest-tool/bpf.py| 199

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

2025-08-23 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vmacc.vvm combine to vmacc.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 vx combine. * gcc.target/riscv/rvv/autovec

[PATCH v2 3/3] RISC-V: Add test for vec_duplicate + vmacc.vv unsigned combine with GR2VR cost 0, 1 and 15

2025-08-23 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vmacc.vvm combine to vmacc.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 vx combine. * gcc.target/riscv/rvv/autovec

Re: [RFA] [PR rtl-optimization/120553] Improve selecting between constants based on sign bit test

2025-08-22 Thread Jeff Law
h more compact code that likely has the same performance profile. In the N=0 case we do squash out an instruction, but it's just a reg-reg copy. This did make me notice that two of the testfiles have redundant tests in them. Those were meant to test specific cases for small constant hand

[PATCH v2 3/3] testsuite: LoongArch: Enable 16B atomic tests if the test machine supports LSX and SCQ

2025-08-22 Thread Xi Ruoyao
Enable those tests so we won't make too stupid mistakes in 16B atomic implementation anymore. All these test passed on a Loongson 3C6000/S except atomic-other-int128.c. With GDB patched to support sc.q (https://sourceware.org/pipermail/gdb-patches/2025-August/220034.html) this test also

[RFC PATCH 7/7] kcfi: Add regression test suite

2025-08-21 Thread Kees Cook
Adds a test suite for KCFI (Kernel Control Flow Integrity) ABI. Core Functionality Tests: - kcfi-basics.c: Basic KCFI preamble generation, IPA analysis, and __kcfi_typeid_ symbol emission for external address-taken functions. - kcfi-type-mangling.c: Type ID hashing validation with Itanium C

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

2025-08-19 Thread Jose E. Marchesi
e of the project, which >>>> if >>>> I am not mistaken consists in creating some dejagnu infrastructure so we >>>> can get testsuites running the script on the test sources. >>> >>> I’m working on a draft patch to discuss the approach before fully

[committed] libstdc++: Restore call to test6642 in string_vector_iterators.cc test [PR104874]

2025-08-19 Thread Tomasz Kamiński
The test call was accidentally omitted in r16-2484-gdc49c0a46ec96e, a commit that refactored this test file. This patch adds it back. PR libstdc++/104874 libstdc++-v3/ChangeLog: * testsuite/24_iterators/random_access/string_vector_iterators.cc: Call test6642. --- Pushed

[PATCH 3/3] testsuite: LoongArch: Enable 16B atomic tests if the test machine supports LSX and SCQ

2025-08-19 Thread Xi Ruoyao
Enable those tests so we won't make too stupid mistakes in 16B atomic implementation anymore. All these test passed on a Loongson 3C6000/S except atomic-other-int128.c. With GDB patched to support sc.q (https://sourceware.org/pipermail/gdb-patches/2025-August/220034.html) this test also

Re: [RFA] [PR rtl-optimization/120553] Improve selecting between constants based on sign bit test

2025-08-18 Thread Richard Biener
subsequent logical right shift. This can be done > without branches or conditional moves. > > Playing with it a bit made me realize there's a handful of selections we > can do based on a sign bit test. Essentially there's two broad cases. > > Clearing bits after the sign bi

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

2025-08-18 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vmacc.vvm combine to vmacc.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 vx combine. * gcc.target/riscv/rvv/autovec

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

2025-08-18 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vmacc.vvm combine to vmacc.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 vx combine. * gcc.target/riscv/rvv/autovec

Re: [PATCH] libstdc++: Cleaned up string_vector_iterators.cc test [PR104874]

2025-08-18 Thread Jonathan Wakely
On Mon, 18 Aug 2025 at 15:40, Jonathan Wakely wrote: > > On Thu, 24 Jul 2025 at 08:33, Tomasz Kamiński wrote: > > > > Removed the wrong_stuff() function, which was effectively empty for > > actual test runs. Replaced the manual failure counter with the VERIFY > >

Re: [PATCH] libstdc++: Cleaned up string_vector_iterators.cc test [PR104874]

2025-08-18 Thread Jonathan Wakely
On Thu, 24 Jul 2025 at 08:33, Tomasz Kamiński wrote: > > Removed the wrong_stuff() function, which was effectively empty for > actual test runs. Replaced the manual failure counter with the VERIFY > macro to simplify identifying failures. > > PR libstdc++/104874 > >

[pushed] testsuite: Add a test for [PR119156]

2025-08-15 Thread Richard Sandiford
PR119156 was fixed by g:f702b593e7268ab161053bafd097f1b09933b783. This patch adds a test for it. Tested on aarch64-linux-gnu & pushed as (hopefully) obvious. Richard gcc/testsuite/ PR target/119156 * gcc.target/aarch64/sve/pr119156_1.c: New test. --- gcc/testsuite/gcc.ta

Re: [PATCH] Remove MODE_COMPOSITE_P test from simplify_gen_subreg [PR120718]

2025-08-14 Thread Richard Sandiford
g the codes further, since subregs might >> be wanted for CONST, SYMBOL_REF and LABEL_REF. But removing the >> MODE_COMPOSITE_P is needed to fix PR120718, where we get an ICE >> from generating a subreg of a V2SI const_vector. >> >> Tested on aarch64-linux-gnu and x86_

[RFA] [PR rtl-optimization/120553] Improve selecting between constants based on sign bit test

2025-08-14 Thread Jeff Law
conditional moves. Playing with it a bit made me realize there's a handful of selections we can do based on a sign bit test. Essentially there's two broad cases. Clearing bits after the sign bit splat. So we have 0, -1, if we clear bits the 0 stays as-is, but the -1 could easily turn into 2

[pushed: r16-3172] testsuite: fix jit.dg/test-error-impossible-must-tail-call.c [PR119783]

2025-08-12 Thread David Malcolm
I added this test back in r7-934-g15c671a79ca66d, but it looks like r15-2125-g81824596361cf4 changed the error message. Tested on x86_64-pc-linux-gnu. Pushed to trunk as r16-3172-gf622df9af2e7c1. gcc/testsuite/ChangeLog: PR testsuite/119783 jit.dg/test-error-impossible-must-tail

[PATCH v2 2/2] RISC-V: RISC-V: Add test for vec_duplicate + vmerge.vvm combine with GR2VR cost 0, 1 and 15

2025-08-11 Thread pan2 . li
From: Pan Li Add asm dump check and run test for vec_duplicate + vmerge.vvm combine to vmerge.vxm, with the GR2VR cost is 0, 2 and 15. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vx_vf/vx_binary.h: Add test helper macros. * gcc.target/riscv/rvv/autovec/vx_vf

Re: [PATCH] Remove MODE_COMPOSITE_P test from simplify_gen_subreg [PR120718]

2025-08-07 Thread Richard Biener
ion/120718 > * simplify-rtx.cc (simplify_context::simplify_gen_subreg): > Remove MODE_COMPOSITE_P condition. > > gcc/testsuite/ > PR rtl-optimization/120718 > * gcc.target/aarch64/sve/acle/general/pr120718.c: New test. > --- > gcc/simplify

[PATCH] Remove MODE_COMPOSITE_P test from simplify_gen_subreg [PR120718]

2025-08-07 Thread Richard Sandiford
arget/aarch64/sve/acle/general/pr120718.c: New test. --- gcc/simplify-rtx.cc | 12 .../gcc.target/aarch64/sve/acle/general/pr120718.c | 12 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 gcc/testsuite/gcc.target/aa

Re: [COMMITTED][PATCH] AArch64: Fix test for vector length safety

2025-08-06 Thread Tejas Belagod
On 05/08/2025 11:22, Tejas Belagod wrote: On 31/07/2025 15:20, Kyrylo Tkachov wrote: On 31 Jul 2025, at 14:34, Tejas Belagod wrote: The test was unsafe when tested on different vector lengths.  This patch fixes it to work on all lengths. Ok. I’ve seen this test fail on GCC 15 branch too

Re: [PATCH] c++: Add test for vt/ff in line comments

2025-08-05 Thread Jason Merrill
ex.comment]. AFAIK we've never diagnosed nor checked for that and C23 doesn't have anything like that, so the following testcase merely tests that we don't diagnose anything on it. Tested on x86_64-linux, ok for trunk? OK. 2025-08-01 Jakub Jelinek * c-c++-common/cpp

[COMMITTED 173/220] gccrs: Add execute test for variable and identifiers

2025-08-05 Thread arthur . cohen
From: Pierre-Emmanuel Patry gcc/testsuite/ChangeLog: * rust/execute/inline_asm_inout_ident.rs: New test. * rust/execute/inline_asm_inout_var.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- .../rust/execute/inline_asm_inout_ident.rs| 23 ++ .../rust

[COMMITTED 209/220] gccrs: Add test case showing method resolution with const-generics

2025-08-05 Thread arthur . cohen
From: Philip Herron gcc/testsuite/ChangeLog: * rust/execute/torture/const-generics-1.rs: New test. Signed-off-by: Philip Herron --- .../rust/execute/torture/const-generics-1.rs | 24 +++ 1 file changed, 24 insertions(+) create mode 100644 gcc/testsuite/rust/execute

[COMMITTED 142/220] gccrs: Add test case to show issue is fixed

2025-08-05 Thread arthur . cohen
From: Philip Herron Fixes Rust-GCC#1048 gcc/testsuite/ChangeLog: * rust/compile/issue-1048.rs: New test. Signed-off-by: Philip Herron --- gcc/testsuite/rust/compile/issue-1048.rs | 8 1 file changed, 8 insertions(+) create mode 100644 gcc/testsuite/rust/compile/issue-1048

[COMMITTED 140/220] gccrs: add test case to show issue is fixed

2025-08-05 Thread arthur . cohen
From: Philip Herron Fixes Rust-GCC#3599 gcc/testsuite/ChangeLog: * rust/compile/issue-3599.rs: New test. Signed-off-by: Philip Herron --- gcc/testsuite/rust/compile/issue-3599.rs | 8 1 file changed, 8 insertions(+) create mode 100644 gcc/testsuite/rust/compile/issue-3599

[COMMITTED 143/220] gccrs: attributes: Add #[test] and #[simd_test]

2025-08-05 Thread arthur . cohen
TIVE = "non_exhaustive"; static constexpr auto &RUSTFMT = "rustfmt"; + + static constexpr auto &TEST = "test"; + + static constexpr auto &SIMD_TEST = "simd_test"; }; } // namespace Values } // namespace Rust diff --git a/gcc/rust/util/rus

[COMMITTED 141/220] gccrs: Add test case to show we emit better errors now

2025-08-05 Thread arthur . cohen
From: Philip Herron Fixes Rust-GCC#3144 gcc/testsuite/ChangeLog: * rust/compile/issue-3144.rs: New test. Signed-off-by: Philip Herron --- gcc/testsuite/rust/compile/issue-3144.rs | 29 1 file changed, 29 insertions(+) create mode 100644 gcc/testsuite/rust

[COMMITTED 090/220] gccrs: Add test case showing RPIT working to close issue

2025-08-05 Thread arthur . cohen
From: Philip Herron Fixes Rust-GCC#1486 gcc/testsuite/ChangeLog: * rust/execute/torture/issue-1481.rs: New test. Signed-off-by: Philip Herron --- .../rust/execute/torture/issue-1481.rs| 35 +++ 1 file changed, 35 insertions(+) create mode 100644 gcc

[COMMITTED 148/220] gccrs: Add test case to show issue is fixed

2025-08-05 Thread arthur . cohen
From: Philip Herron Fixes Rust-GCC#3524 gcc/testsuite/ChangeLog: * rust/compile/issue-3524.rs: New test. Signed-off-by: Philip Herron --- gcc/testsuite/rust/compile/issue-3524.rs | 9 + 1 file changed, 9 insertions(+) create mode 100644 gcc/testsuite/rust/compile/issue-3524

[COMMITTED 144/220] gccrs: Add test case showing all derives working on enum

2025-08-05 Thread arthur . cohen
From: Philip Herron We have more complex test cases already but this will close out this issue. Fixes Rust-GCC#2005 gcc/testsuite/ChangeLog: * rust/execute/torture/issue-2005.rs: New test. Signed-off-by: Philip Herron --- .../rust/execute/torture/issue-2005.rs| 465

[COMMITTED 019/220] gccrs: Fix test same_field_name.rs

2025-08-05 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * hir/rust-ast-lower-item.cc (ASTLoweringItem::visit): Keep going after a duplicate field is found. gcc/testsuite/ChangeLog: * rust/execute/same_field_name.rs: Move to... * rust/compile/same_field_name.rs: ...here and

[COMMITTED 030/220] gccrs: Revert 10-second timeout for each test

2025-08-05 Thread arthur . cohen
From: Parthib gcc/testsuite/ChangeLog: * lib/rust.exp: Remove timeout. Signed-off-by: Parthib --- gcc/testsuite/lib/rust.exp | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gcc/testsuite/lib/rust.exp b/gcc/testsuite/lib/rust.exp index 9513e1c8955..692030cf883 1

[COMMITTED 028/220] gccrs: nr2.0: Fix test builtin_abort.rs

2025-08-05 Thread arthur . cohen
From: Owen Avery gcc/testsuite/ChangeLog: * rust/execute/torture/builtin_abort.rs: Fix path to intrinsics::abort. Signed-off-by: Owen Avery --- gcc/testsuite/rust/execute/torture/builtin_abort.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite

[COMMITTED 029/220] gccrs: nr2.0: Fix some paths in test files

2025-08-05 Thread arthur . cohen
From: Owen Avery This is similar to 9faba024ef18b9c4d67f22bd3b020b5e445fad0a, but it applies to execute tests. gcc/testsuite/ChangeLog: * rust/execute/torture/for-loop1.rs: Adjust paths. * rust/execute/torture/for-loop2.rs: Likewise. * rust/execute/torture/iter1.rs: Like

  1   2   3   4   5   6   7   8   9   10   >