diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-09-01 15:18:18 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-09-01 15:22:12 -0700 |
commit | 6761d362c3efe5f4ca3b0c66e6854015acf162a1 (patch) | |
tree | 0edefd063d368364c5fd6f7965752928e049b649 | |
parent | b98c5262d02c13cdbbf3b985859b436adec94d90 (diff) | |
download | gcc-6761d362c3efe5f4ca3b0c66e6854015acf162a1.zip gcc-6761d362c3efe5f4ca3b0c66e6854015acf162a1.tar.gz gcc-6761d362c3efe5f4ca3b0c66e6854015acf162a1.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr106707.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr106707.c b/gcc/testsuite/gcc.target/i386/pr106707.c index a127ccd..2e8ebaa 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; |