i386.md (*bt<mode>): Use nonimmediate_operand predicate for operand 1.
authorUros Bizjak <uros@gcc.gnu.org>
Sun, 3 Sep 2017 18:48:59 +0000 (20:48 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 3 Sep 2017 18:48:59 +0000 (20:48 +0200)
* config/i386/i386.md (*bt<mode>): Use nonimmediate_operand
predicate for operand 1.  Add (m,<S>) constraint.
(*jcc_bt<mode>): Use nonimmediate_operand predicate for operand 1.
Prevent memory operand 1 with register operand 2.

From-SVN: r251625

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

index 3f632ca31c2e42fcb68303b524973a8b308dc8e6..3b758d21358128edf2b4ed31e8374ab7b5054add 100644 (file)
@@ -1,3 +1,10 @@
+2017-09-03  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.md (*bt<mode>): Use nonimmediate_operand
+       predicate for operand 1.  Add (m,<S>) constraint.
+       (*jcc_bt<mode>): Use nonimmediate_operand predicate for operand 1.
+       Prevent memory operand 1 with register operand 2.
+
 2017-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
 
        PR rtl-optimization/82024
@@ -8,9 +15,11 @@
 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/81766
-       * config/i386/i386.c (ix86_init_large_pic_reg): Return label instead of void.
-       (ix86_init_pic_reg): Remember label from ix86_init_large_pic_reg, if non-NULL
-       and preceded by NOTE_INSN_BASIC_BLOCK, swap the note and label.
+       * config/i386/i386.c (ix86_init_large_pic_reg): Return label
+       instead of void.
+       (ix86_init_pic_reg): Remember label from ix86_init_large_pic_reg,
+       if non-NULL and preceded by NOTE_INSN_BASIC_BLOCK, swap the note
+       and label.
 
 2017-09-01  Joerg Sonnenberger  <joerg@bec.de>
            Jeff Law  <law@redhat.com>
index 7465848252d6b790c38be526fd3713a174203ae9..4cbd8cd551e7188c0f983f47cdafc4078a9fea9a 100644 (file)
   [(set (reg:CCC FLAGS_REG)
        (compare:CCC
          (zero_extract:SWI48
-           (match_operand:SWI48 0 "register_operand" "r")
+           (match_operand:SWI48 0 "nonimmediate_operand" "r,m")
            (const_int 1)
-           (match_operand:SI 1 "nonmemory_operand" "r<S>"))
+           (match_operand:SI 1 "nonmemory_operand" "r<S>,<S>"))
          (const_int 0)))]
   ""
 {
   [(set (pc)
        (if_then_else (match_operator 0 "bt_comparison_operator"
                        [(zero_extract:SWI48
-                          (match_operand:SWI48 1 "register_operand")
+                          (match_operand:SWI48 1 "nonimmediate_operand")
                           (const_int 1)
                           (match_operand:SI 2 "nonmemory_operand"))
                         (const_int 0)])
        ? (INTVAL (operands[2]) < GET_MODE_BITSIZE (<MODE>mode)
          && INTVAL (operands[2])
               >= (optimize_function_for_size_p (cfun) ? 8 : 32))
-       : register_operand (operands[2], SImode))
+       : !memory_operand (operands[1], <MODE>mode))
    && can_create_pseudo_p ()"
   "#"
   "&& 1"