From: H.J. Lu Date: Sat, 2 Oct 2021 02:26:08 +0000 (-0700) Subject: Use unsigned long long in asm-x86-linux-rdmsr.c X-Git-Tag: basepoints/gcc-13~4223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f0285418940577142b3891d756f7de767bfc537;p=thirdparty%2Fgcc.git 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. --- 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 0a1c48f58005..69d0165aefec 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