diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-01-13 10:46:51 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2024-01-13 10:46:51 +0100 |
commit | 7012a252528233ca3ced5b9230013c50b604da9b (patch) | |
tree | f99976daf7932d964368eabd03b087ce0a911498 | |
parent | 65388b28656d65595bdaf191df85af81c35ca638 (diff) | |
download | gcc-7012a252528233ca3ced5b9230013c50b604da9b.zip gcc-7012a252528233ca3ced5b9230013c50b604da9b.tar.gz gcc-7012a252528233ca3ced5b9230013c50b604da9b.tar.bz2 |
testsuite: Fix up vect-early-break_100-pr113287.c testcase [PR113287]
When the testcase was being adjusted for unsigned long -> unsigned long long,
two spots using long weren't changed to long long, so the testcase still warns
about UB in shifts.
2024-01-13 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/113287
* gcc.dg/vect/vect-early-break_100-pr113287.c: Use long long instead
of long.
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect-early-break_100-pr113287.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_100-pr113287.c b/gcc/testsuite/gcc.dg/vect/vect-early-break_100-pr113287.c index aa10062..59c1e102 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-early-break_100-pr113287.c +++ b/gcc/testsuite/gcc.dg/vect/vect-early-break_100-pr113287.c @@ -18,14 +18,14 @@ foo (void) { unsigned long long r[142]; bar (r); - unsigned long long v = ((long) r[0] >> 31); + unsigned long long v = ((long long) r[0] >> 31); if (v + 1 > 1) return 1; for (unsigned long long i = 1; i <= 140; ++i) if (r[i] != v) return 1; unsigned long long w = r[141]; - if ((unsigned long long) (((long) (w << 60)) >> 60) != v) + if ((unsigned long long) (((long long) (w << 60)) >> 60) != v) return 1; return 0; } |