diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-10-23 21:21:13 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2024-10-23 21:21:13 -0600 |
commit | 8df549fc2c0297970cb3bcadba7929088af96522 (patch) | |
tree | 5d0941e551bd63615a532d5d50861568e421de84 /gcc | |
parent | 03b469ee4768118807a3c74891c3c426b0c145ef (diff) | |
download | gcc-8df549fc2c0297970cb3bcadba7929088af96522.zip gcc-8df549fc2c0297970cb3bcadba7929088af96522.tar.gz gcc-8df549fc2c0297970cb3bcadba7929088af96522.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr116488.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr117226.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr116488.c b/gcc/testsuite/gcc.dg/torture/pr116488.c index 9ead129..90457bb 100644 --- a/gcc/testsuite/gcc.dg/torture/pr116488.c +++ b/gcc/testsuite/gcc.dg/torture/pr116488.c @@ -1,7 +1,7 @@ /* { dg-do run } */ /* { dg-additional-options "-fno-forward-propagate" } */ int a, b; -char c, e; +signed char c, e; unsigned char d; __attribute__ ((noinline,noclone,noipa)) void f(int g, short h) { diff --git a/gcc/testsuite/gcc.dg/torture/pr117226.c b/gcc/testsuite/gcc.dg/torture/pr117226.c index 2bb35a1..ac71a81 100644 --- a/gcc/testsuite/gcc.dg/torture/pr117226.c +++ b/gcc/testsuite/gcc.dg/torture/pr117226.c @@ -5,7 +5,7 @@ int a = 128, b, d; long e = -2, c; int main() { - char f = a; + signed char f = a; int g = f; c = (g < 0) - e; unsigned char h = g; |