public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2358] i386: Replace long with long long for 64-bit integer
@ 2022-09-01 22:22 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2022-09-01 22:22 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6761d362c3efe5f4ca3b0c66e6854015acf162a1

commit r13-2358-g6761d362c3efe5f4ca3b0c66e6854015acf162a1
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Sep 1 15:18:18 2022 -0700

    i386: Replace long with long long for 64-bit integer
    
    Replace long with long long for 64-bit integer since long may be 32
    bits.
    
            PR target/106707
            * gcc.target/i386/pr106707.c (foo): Replace long with long long.

Diff:
---
 gcc/testsuite/gcc.target/i386/pr106707.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/i386/pr106707.c b/gcc/testsuite/gcc.target/i386/pr106707.c
index a127ccd4679..2e8ebaafb33 100644
--- a/gcc/testsuite/gcc.target/i386/pr106707.c
+++ b/gcc/testsuite/gcc.target/i386/pr106707.c
@@ -10,9 +10,9 @@ unsigned x, y;
 V v;
 
 void
-foo (long a)
+foo (long long a)
 {
-  long l = a != x;
+  long long l = a != x;
   int i = __builtin_add_overflow_p (y * ii, 0, 0);
   V u = ii < x | v, w = x <= u < i & y <= x / ii;
   v = __builtin_shufflevector (v, w, 1, 2) + (V) l;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-01 22:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-01 22:22 [gcc r13-2358] i386: Replace long with long long for 64-bit integer H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).