]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Fix up pr116488.c and pr117226.c tests [PR116488]
authorJakub Jelinek <jakub@redhat.com>
Thu, 24 Oct 2024 03:21:13 +0000 (21:21 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Thu, 24 Oct 2024 03:21:13 +0000 (21:21 -0600)
commit8df549fc2c0297970cb3bcadba7929088af96522
tree5d0941e551bd63615a532d5d50861568e421de84
parent03b469ee4768118807a3c74891c3c426b0c145ef
testsuite: Fix up pr116488.c and pr117226.c tests [PR116488]

Hi!

On Mon, Oct 21, 2024 at 01:39:52PM -0600, Jeff Law wrote:
>  * gcc.dg/torture/pr116488.c: New test.
>  * gcc.dg/torture/pr117226.c: New test.

These two tests FAIL on powerpc64le-linux (and I assume on all other
-funsigned-char defaulting targets).

The following patch fixes that, tested on powerpc64le-linux and
x86_64-linux (-m32/-m64); on x86_64 also tested before/after with
-funsigned-char.

Ok for trunk?

2024-10-22  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/116488
PR rtl-optimization/117226
* gcc.dg/torture/pr116488.c (c, e): Change type from char to
signed char.
* gcc.dg/torture/pr117226.c (main): Change f type from char to
signed char.
gcc/testsuite/gcc.dg/torture/pr116488.c
gcc/testsuite/gcc.dg/torture/pr117226.c