]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Use unsigned long long in asm-x86-linux-rdmsr.c
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 2 Oct 2021 02:26:08 +0000 (19:26 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 2 Oct 2021 02:26:08 +0000 (19:26 -0700)
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.

gcc/testsuite/gcc.dg/analyzer/torture/asm-x86-linux-rdmsr.c

index 0a1c48f580053ef0a5402265ba9655a4f7add15b..69d0165aefecc643ad634dc1afe9d0af351b9353 100644 (file)
@@ -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