diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-10-12 06:15:28 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-10-12 16:58:53 +0800 |
commit | c1034d71a7f9ed446938b1c4ba7e7c95ba3a665f (patch) | |
tree | 7c6b6d50ce0d343182e3f9a5bdff88f724a6b5b1 | |
parent | 80d0e10847ec64799deb53061fb50876043116fe (diff) | |
download | gcc-c1034d71a7f9ed446938b1c4ba7e7c95ba3a665f.zip gcc-c1034d71a7f9ed446938b1c4ba7e7c95ba3a665f.tar.gz gcc-c1034d71a7f9ed446938b1c4ba7e7c95ba3a665f.tar.bz2 |
gcc.target/i386/pr55583.c: Use long long for 64-bit integer
Since long is 32-bit for x32, use long long for 64-bit integer.
* gcc.target/i386/pr55583.c: Use long long for 64-bit integer.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr55583.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr55583.c b/gcc/testsuite/gcc.target/i386/pr55583.c index 1c128b5..ea6a2d5 100644 --- a/gcc/testsuite/gcc.target/i386/pr55583.c +++ b/gcc/testsuite/gcc.target/i386/pr55583.c @@ -5,11 +5,11 @@ /* { dg-final { scan-assembler-times {(?n)shldl?[\t ]*\$2} 1 { target ia32 } } } */ /* { dg-final { scan-assembler-times {(?n)shld[ql]?[\t ]*\$2} 2 { target { ! ia32 } } } } */ -typedef unsigned long u64; +typedef unsigned long long u64; typedef unsigned int u32; typedef unsigned short u16; -long a, b; +long long a, b; int c, d; short e, f; const int n = 2; @@ -17,7 +17,7 @@ const int n = 2; void test64r () { b = ((u64)b >> n) | (a << (64 - n)); } void test32r () { d = ((u32)d >> n) | (c << (32 - n)); } -unsigned long ua, ub; +unsigned long long ua, ub; unsigned int uc, ud; unsigned short ue, uf; |