From: Uros Bizjak Date: Wed, 23 Nov 2016 21:40:26 +0000 (+0100) Subject: i386.md (*hi_1): Fix operand 2 constraints. X-Git-Tag: releases/gcc-5.5.0~687 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0f8e503509f722e906e5256e920af7efefb46ef;p=thirdparty%2Fgcc.git i386.md (*hi_1): Fix operand 2 constraints. * config/i386/i386.md (*hi_1): Fix operand 2 constraints. (kxnor): Return "#" for alternative 0. From-SVN: r242801 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 20b262e7df89..5df16e71fe73 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-23 Uros Bizjak + + * config/i386/i386.md (*hi_1): Fix operand 2 constraints. + (kxnor): Return "#" for alternative 0. + 2016-11-22 Uros Bizjak * Makefile.in ($(lang_checks_parallelized)): Fix detection diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 03e2c74fd536..6e1987529ca4 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -8361,7 +8361,7 @@ [(set (match_operand:HI 0 "nonimmediate_operand" "=r,rm,!k") (any_or:HI (match_operand:HI 1 "nonimmediate_operand" "%0,0,k") - (match_operand:HI 2 "general_operand" ",r,k"))) + (match_operand:HI 2 "general_operand" "rmn,rn,k"))) (clobber (reg:CC FLAGS_REG))] "ix86_binary_operator_ok (, HImode, operands)" "@ @@ -8443,7 +8443,10 @@ (clobber (reg:CC FLAGS_REG))] "TARGET_AVX512F" { - if (which_alternative == 1 && mode == QImode && TARGET_AVX512DQ) + if (which_alternative == 0) + return "#"; + + if (mode == QImode && TARGET_AVX512DQ) return "kxnorb\t{%2, %1, %0|%0, %1, %2}"; return "kxnorw\t{%2, %1, %0|%0, %1, %2}"; }