From: Uros Bizjak Date: Tue, 12 Jul 2016 19:23:58 +0000 (+0200) Subject: predicates.md (x86_64_immediate_operand): Remove unneeded truncation to DImode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a58b548f8e59292685497fddf5d58c7af28ea77;p=gcc.git predicates.md (x86_64_immediate_operand): Remove unneeded truncation to DImode. * config/i386/predicates.md (x86_64_immediate_operand) : Remove unneeded truncation to DImode. : Ditto. (x86_64_zext_immediate_operand) : Ditto. From-SVN: r238259 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b8db66377f2..6cb8da203fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-07-12 Uros Bizjak + + * config/i386/predicates.md (x86_64_immediate_operand) + : Remove unneeded truncation to DImode. + : Ditto. + (x86_64_zext_immediate_operand) : Ditto. + 2016-07-12 Michael Meissner PR target/71805 diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md index 6854c37a74f..219674e0317 100644 --- a/gcc/config/i386/predicates.md +++ b/gcc/config/i386/predicates.md @@ -156,7 +156,7 @@ { case CONST_INT: { - HOST_WIDE_INT val = trunc_int_for_mode (INTVAL (op), DImode); + HOST_WIDE_INT val = INTVAL (op); return trunc_int_for_mode (val, SImode) == val; } case SYMBOL_REF: @@ -199,14 +199,13 @@ { rtx op1 = XEXP (XEXP (op, 0), 0); rtx op2 = XEXP (XEXP (op, 0), 1); - HOST_WIDE_INT offset; if (ix86_cmodel == CM_LARGE) return false; if (!CONST_INT_P (op2)) return false; - offset = trunc_int_for_mode (INTVAL (op2), DImode); + HOST_WIDE_INT offset = INTVAL (op2); if (trunc_int_for_mode (offset, SImode) != offset) return false; @@ -306,14 +305,13 @@ { rtx op1 = XEXP (XEXP (op, 0), 0); rtx op2 = XEXP (XEXP (op, 0), 1); - HOST_WIDE_INT offset; if (ix86_cmodel == CM_LARGE) return false; if (!CONST_INT_P (op2)) return false; - offset = trunc_int_for_mode (INTVAL (op2), DImode); + HOST_WIDE_INT offset = INTVAL (op2); if (trunc_int_for_mode (offset, SImode) != offset) return false;