re PR target/82098 (internal compiler error: in elimination_costs_in_insn, at reload1...
authorUros Bizjak <ubizjak@gmail.com>
Mon, 4 Sep 2017 18:28:20 +0000 (20:28 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 4 Sep 2017 18:28:20 +0000 (20:28 +0200)
PR target/82098
* config/i386/i386.md (*<btsc><mode>_mask): Add
TARGET_USE_BT to insn constraint.
(*btr<mode>_mask): Ditto.

From-SVN: r251682

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

index 74bf4a0..e7e8c23 100644 (file)
@@ -1,3 +1,10 @@
+2017-09-04  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/82098
+       * config/i386/i386.md (*<btsc><mode>_mask): Add
+       TARGET_USE_BT to insn constraint.
+       (*btr<mode>_mask): Ditto.
+
 2017-09-04  Wilco Dijkstra  <wdijkstr@arm.com>
 
        * config/arm/arm.c (arm_legitimate_index_p): Add comment.
index bf03479..43227dc 100644 (file)
                (match_operand:SI 2 "const_int_operand")) 0))
          (match_operand:SWI48 3 "register_operand")))
    (clobber (reg:CC FLAGS_REG))]
-  "(INTVAL (operands[2]) & (GET_MODE_BITSIZE (<MODE>mode)-1))
-   == GET_MODE_BITSIZE (<MODE>mode)-1
+  "TARGET_USE_BT
+   && (INTVAL (operands[2]) & (GET_MODE_BITSIZE (<MODE>mode)-1))
+      == GET_MODE_BITSIZE (<MODE>mode)-1
    && can_create_pseudo_p ()"
   "#"
   "&& 1"
                (match_operand:SI 2 "const_int_operand")) 0))
          (match_operand:SWI48 3 "register_operand")))
    (clobber (reg:CC FLAGS_REG))]
-  "(INTVAL (operands[2]) & (GET_MODE_BITSIZE (<MODE>mode)-1))
-   == GET_MODE_BITSIZE (<MODE>mode)-1
+  "TARGET_USE_BT
+   && (INTVAL (operands[2]) & (GET_MODE_BITSIZE (<MODE>mode)-1))
+      == GET_MODE_BITSIZE (<MODE>mode)-1
    && can_create_pseudo_p ()"
   "#"
   "&& 1"