diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-10-01 19:26:08 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-10-01 19:26:08 -0700 |
commit | 5f0285418940577142b3891d756f7de767bfc537 (patch) | |
tree | ef5a140a7b89b1754b0c5d755e743b47b80bee85 /gcc | |
parent | 9d116bcc5556c7df32803f7bf8e6e238ea1c13fb (diff) | |
download | gcc-5f0285418940577142b3891d756f7de767bfc537.zip gcc-5f0285418940577142b3891d756f7de767bfc537.tar.gz gcc-5f0285418940577142b3891d756f7de767bfc537.tar.bz2 |
Use unsigned long long in asm-x86-linux-rdmsr.c
Use unsigned long long for 64-bit integer since unsigned long is 32 bits
for x32.
* gcc.dg/analyzer/torture/asm-x86-linux-rdmsr.c (DECLARE_ARGS):
Use unsigned long long for x86-64.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/analyzer/torture/asm-x86-linux-rdmsr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/asm-x86-linux-rdmsr.c b/gcc/testsuite/gcc.dg/analyzer/torture/asm-x86-linux-rdmsr.c index 0a1c48f..69d0165 100644 --- a/gcc/testsuite/gcc.dg/analyzer/torture/asm-x86-linux-rdmsr.c +++ b/gcc/testsuite/gcc.dg/analyzer/torture/asm-x86-linux-rdmsr.c @@ -6,7 +6,7 @@ /* Adapted from Linux: arch/x86/include/asm/msr.h (GPL-2.0) */ #ifdef __x86_64__ -#define DECLARE_ARGS(val, low, high) unsigned long low, high +#define DECLARE_ARGS(val, low, high) unsigned long long low, high #define EAX_EDX_VAL(val, low, high) ((low) | (high) << 32) #define EAX_EDX_RET(val, low, high) "=a" (low), "=d" (high) #else |