From: Uros Bizjak Date: Thu, 22 Nov 2018 21:25:37 +0000 (+0100) Subject: i386.c (ix86_check_avx_upper_register): Return true for all SSE registers with mode... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4b0215585f77f78fa3aa9b1621749ce23c1d393;p=gcc.git i386.c (ix86_check_avx_upper_register): Return true for all SSE registers with mode bitsize > 128. * config/i386/i386.c (ix86_check_avx_upper_register): Return true for all SSE registers with mode bitsize > 128. From-SVN: r266389 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 563f22cd317..dd12d3284ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-11-22 Uros Bizjak + + * config/i386/i386.c (ix86_check_avx_upper_register): + Return true for all SSE registers with mode bitsize > 128. + 2018-11-22 Vladimir Makarov PR rtl-optimization/87718 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 6ccd2797b61..f8852327d4a 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -18856,12 +18856,7 @@ ix86_dirflag_mode_needed (rtx_insn *insn) static bool ix86_check_avx_upper_register (const_rtx exp) { - if (SUBREG_P (exp)) - exp = SUBREG_REG (exp); - - return (REG_P (exp) - && (VALID_AVX256_REG_OR_OI_MODE (GET_MODE (exp)) - || VALID_AVX512F_REG_OR_XI_MODE (GET_MODE (exp)))); + return SSE_REG_P (exp) && GET_MODE_BITSIZE (GET_MODE (exp)) > 128; } /* Return needed mode for entity in optimize_mode_switching pass. */