]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
authorUros Bizjak <ubizjak@gmail.com>
Wed, 23 Nov 2016 21:40:26 +0000 (22:40 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 23 Nov 2016 21:40:26 +0000 (22:40 +0100)
* config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
(kxnor<mode>): Return "#" for alternative 0.

From-SVN: r242801

gcc/ChangeLog
gcc/config/i386/i386.md

index 20b262e7df89ddf02138405e4f1cb9adb3d10709..5df16e71fe7322d8277f76d473c68e9da63413a9 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
+       (kxnor<mode>): Return "#" for alternative 0.
+
 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
 
        * Makefile.in ($(lang_checks_parallelized)): Fix detection
index 03e2c74fd5364d8136428ddda174797073718874..6e1987529ca4b670dfd9d6735ba6c3e1f1fd6eec 100644 (file)
   [(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" "<g>,r<i>,k")))
+        (match_operand:HI 2 "general_operand" "rmn,rn,k")))
    (clobber (reg:CC FLAGS_REG))]
   "ix86_binary_operator_ok (<CODE>, HImode, operands)"
   "@
    (clobber (reg:CC FLAGS_REG))]
   "TARGET_AVX512F"
 {
-  if (which_alternative == 1 && <MODE>mode == QImode && TARGET_AVX512DQ)
+  if (which_alternative == 0)
+    return "#";
+
+  if (<MODE>mode == QImode && TARGET_AVX512DQ)
     return "kxnorb\t{%2, %1, %0|%0, %1, %2}";
   return "kxnorw\t{%2, %1, %0|%0, %1, %2}";
 }