[Mesa-dev] [PATCH 2/2] R600: Fix 64-bit defines
Michel Dänzer
michel at daenzer.net
Thu Jan 31 23:05:39 PST 2013
On Don, 2013-01-31 at 17:05 -0500, Tom Stellard wrote:
> 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
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer
More information about the mesa-dev
mailing list