[Mesa-dev] [PATCH 2/2] R600: Fix 64-bit defines

Tom Stellard tom at stellard.net
Thu Jan 31 14:05:26 PST 2013


From: Tom Stellard <thomas.stellard at amd.com>

This fixes indirect addressing when on 32-bit systems.
---
 lib/Target/R600/AMDGPUInstrInfo.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Target/R600/AMDGPUInstrInfo.h b/lib/Target/R600/AMDGPUInstrInfo.h
index bca3aa2..5220aa0 100644
--- a/lib/Target/R600/AMDGPUInstrInfo.h
+++ b/lib/Target/R600/AMDGPUInstrInfo.h
@@ -201,7 +201,7 @@ public:
 
 } // End llvm namespace
 
-#define AMDGPU_FLAG_REGISTER_LOAD  (1UL << 63)
-#define AMDGPU_FLAG_REGISTER_STORE (1UL << 62)
+#define AMDGPU_FLAG_REGISTER_LOAD  (UINT64_C(1) << 63)
+#define AMDGPU_FLAG_REGISTER_STORE (UINT64_C(1) << 62)
 
 #endif // AMDGPUINSTRINFO_H
-- 
1.7.8.6



More information about the mesa-dev mailing list