From 0332f66274a72dad611053a1183649092b090a58 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 10 Sep 2020 09:58:15 +0100 Subject: Fix compile time warnings when building for the CSKY target on a 32-bit host. incldue * opcode/csky.h (CSKY_ISA_FLOAT_7E60): Use a long long type for this value. opcodes * csky-dis.c (csky_output_operand): Coerce the immediate values to long before printing. --- include/ChangeLog | 5 +++++ include/opcode/csky.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 28779bc..2c0a008 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2020-09-10 Nick Clifton + + * opcode/csky.h (CSKY_ISA_FLOAT_7E60): Use a long long type for + this value. + 2020-09-07 Cooper Qu * opcode/csky.h (CSKY_ISA_DSPE60): Define. diff --git a/include/opcode/csky.h b/include/opcode/csky.h index 4214543..717e8a9 100644 --- a/include/opcode/csky.h +++ b/include/opcode/csky.h @@ -58,7 +58,7 @@ /* 807 support (803f & 807f). */ #define CSKY_ISA_FLOAT_3E4 (1L << 28) /* 860 support. */ -#define CSKY_ISA_FLOAT_7E60 (1L << 36) +#define CSKY_ISA_FLOAT_7E60 (1LL << 36) /* Vector DSP support. */ #define CSKY_ISA_VDSP (1L << 29) #define CSKY_ISA_VDSP_2 (1L << 30) -- cgit v1.1