Skip to content

Commit 8df549f

Browse files
jakubjelinekJeffreyALaw
authored andcommitted
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 <[email protected]> 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.
1 parent 03b469e commit 8df549f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gcc/testsuite/gcc.dg/torture/pr116488.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* { dg-do run } */
22
/* { dg-additional-options "-fno-forward-propagate" } */
33
int a, b;
4-
char c, e;
4+
signed char c, e;
55
unsigned char d;
66
__attribute__ ((noinline,noclone,noipa))
77
void f(int g, short h) {

gcc/testsuite/gcc.dg/torture/pr117226.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
int a = 128, b, d;
66
long e = -2, c;
77
int main() {
8-
char f = a;
8+
signed char f = a;
99
int g = f;
1010
c = (g < 0) - e;
1111
unsigned char h = g;

0 commit comments

Comments
 (0)