]> gcc.gnu.org Git - gcc.git/commit
testsuite part 1 for _BitInt support [PR102989]
authorJakub Jelinek <jakub@redhat.com>
Wed, 6 Sep 2023 15:36:41 +0000 (17:36 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 6 Sep 2023 15:36:41 +0000 (17:36 +0200)
commitfaff31701d50fab08d75fbb13affc82cff74a72c
treed36e09faaf033398add1a3daf833dcbf30e5f81b
parent8c984a1c3693df63520558631c827bb2c2d8b5bc
testsuite part 1 for _BitInt support [PR102989]

This patch adds first part of the testsuite support.  When creating the
testcases, I've been using
https://defuse.ca/big-number-calculator.htm
tool, a randombitint tool I wrote (posted as a reply to the first series) plus
LLVM trunk on godbolt and the WIP GCC support checking if both compilers
agree on stuff (and in case of differences tried constant evaluation etc.).
The whole testsuite has been also tested with
make -j32 -k check-gcc GCC_TEST_RUN_EXPENSIVE=1 \
RUNTESTFLAGS='GCC_TEST_RUN_EXPENSIVE=1 --target_board=unix\{-m32,-m64\} ubsan.exp=bitint*.c dg.exp=bitint* dg-torture.exp=bitint*'
to verify it in all modes, normally I'm limitting the torture tests to just
-O0 and -O2 because they are quite large and expensive.
Generally it is needed to test different _BitInt precisions because they
are lowered differently (the small vs. medium vs. large vs. huge, precision
of multiples of limb precision or some other etc.).

2023-09-06  Jakub Jelinek  <jakub@redhat.com>

PR c/102989
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_bitint,
check_effective_target_bitint128, check_effective_target_bitint575):
New effective targets.
* gcc.dg/bitint-1.c: New test.
* gcc.dg/bitint-2.c: New test.
* gcc.dg/bitint-3.c: New test.
* gcc.dg/bitint-4.c: New test.
* gcc.dg/bitint-5.c: New test.
* gcc.dg/bitint-6.c: New test.
* gcc.dg/bitint-7.c: New test.
* gcc.dg/bitint-8.c: New test.
* gcc.dg/bitint-9.c: New test.
* gcc.dg/bitint-10.c: New test.
* gcc.dg/bitint-11.c: New test.
* gcc.dg/bitint-12.c: New test.
* gcc.dg/bitint-13.c: New test.
* gcc.dg/bitint-14.c: New test.
* gcc.dg/bitint-15.c: New test.
* gcc.dg/bitint-16.c: New test.
* gcc.dg/bitint-17.c: New test.
* gcc.dg/bitint-18.c: New test.
* gcc.dg/torture/bitint-1.c: New test.
* gcc.dg/torture/bitint-2.c: New test.
* gcc.dg/torture/bitint-3.c: New test.
* gcc.dg/torture/bitint-4.c: New test.
* gcc.dg/torture/bitint-5.c: New test.
* gcc.dg/torture/bitint-6.c: New test.
* gcc.dg/torture/bitint-7.c: New test.
* gcc.dg/torture/bitint-8.c: New test.
* gcc.dg/torture/bitint-9.c: New test.
* gcc.dg/torture/bitint-10.c: New test.
* gcc.dg/torture/bitint-11.c: New test.
* gcc.dg/torture/bitint-12.c: New test.
* gcc.dg/torture/bitint-13.c: New test.
* gcc.dg/torture/bitint-14.c: New test.
* gcc.dg/torture/bitint-15.c: New test.
* gcc.dg/torture/bitint-16.c: New test.
* gcc.dg/torture/bitint-17.c: New test.
* gcc.dg/torture/bitint-18.c: New test.
* gcc.dg/torture/bitint-19.c: New test.
38 files changed:
gcc/testsuite/gcc.dg/bitint-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-10.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-11.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-12.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-13.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-14.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-15.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-16.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-17.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-18.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/bitint-9.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-10.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-11.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-12.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-13.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-14.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-15.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-16.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-17.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-18.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-19.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/bitint-9.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp
This page took 0.066595 seconds and 5 git commands to generate.