diff mbox series

[3/5] pr65947-9.c: Requires char to be signed by default.

Message ID 20170926113950.5472-4-krebbel@linux.vnet.ibm.com
State New
Headers show
Series vect testsuite adjustments for S/390 | expand

Commit Message

Andreas Krebbel Sept. 26, 2017, 11:39 a.m. UTC
Fails on S/390 with char defaulting to unsigned char.

gcc/testsuite/ChangeLog:

2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

	* gcc.dg/vect/pr65947-9.c: Use signed char explicitly.
---
 gcc/testsuite/gcc.dg/vect/pr65947-9.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Richard Biener Sept. 26, 2017, 1:29 p.m. UTC | #1
On Tue, Sep 26, 2017 at 1:39 PM, Andreas Krebbel
<krebbel@linux.vnet.ibm.com> wrote:
> Fails on S/390 with char defaulting to unsigned char.

Ok.

> gcc/testsuite/ChangeLog:
>
> 2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
>
>         * gcc.dg/vect/pr65947-9.c: Use signed char explicitly.
> ---
>  gcc/testsuite/gcc.dg/vect/pr65947-9.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-9.c b/gcc/testsuite/gcc.dg/vect/pr65947-9.c
> index d769af9..e8f20aa 100644
> --- a/gcc/testsuite/gcc.dg/vect/pr65947-9.c
> +++ b/gcc/testsuite/gcc.dg/vect/pr65947-9.c
> @@ -10,7 +10,7 @@ extern void abort (void) __attribute__ ((noreturn));
>     vectorize because the vectorisation requires a slot for default values.  */
>
>  signed char __attribute__((noinline,noclone))
> -condition_reduction (char *a, char min_v)
> +condition_reduction (signed char *a, signed char min_v)
>  {
>    signed char last = -72;
>
> --
> 2.9.1
>
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-9.c b/gcc/testsuite/gcc.dg/vect/pr65947-9.c
index d769af9..e8f20aa 100644
--- a/gcc/testsuite/gcc.dg/vect/pr65947-9.c
+++ b/gcc/testsuite/gcc.dg/vect/pr65947-9.c
@@ -10,7 +10,7 @@  extern void abort (void) __attribute__ ((noreturn));
    vectorize because the vectorisation requires a slot for default values.  */
 
 signed char __attribute__((noinline,noclone))
-condition_reduction (char *a, char min_v)
+condition_reduction (signed char *a, signed char min_v)
 {
   signed char last = -72;