[gcc r13-2358] i386: Replace long with long long for 64-bit integer

H.J. Lu hjl@gcc.gnu.org
Thu Sep 1 22:22:41 GMT 2022


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;


More information about the Gcc-cvs mailing list