[ARM] Add missing TARGET_32BIT conditional to movsi
authorPrakhar Bahuguna <prakhar.bahuguna@arm.com>
Fri, 12 May 2017 14:16:52 +0000 (14:16 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Fri, 12 May 2017 14:16:52 +0000 (14:16 +0000)
2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>

    gcc/
    * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
    TARGET_HAVE_MOVT conditional.
    (movt splitter): Likewise.

From-SVN: r247971

gcc/ChangeLog
gcc/config/arm/arm.md

index 5f5bd2a7445b15a971a026ad4949527e91e730fb..aa408f1ee750b0a7daae3e0fbc2329f5050eae27 100644 (file)
@@ -1,3 +1,9 @@
+2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
+
+       * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
+       TARGET_HAVE_MOVT conditional.
+       (movt splitter): Likewise.
+
 2017-05-12  Richard Biener  <rguenther@suse.de>
 
        * tree-ssa-sccvn.h (has_VN_INFO): Declare.
index 4a2b623e528256835958a510e2d32628477cb680..e6e1ac54a850c35807d683804f5294fbef1487ad 100644 (file)
   {
   rtx base, offset, tmp;
 
-  if (TARGET_HAVE_MOVT)
+  if (TARGET_32BIT || TARGET_HAVE_MOVT)
     {
       /* Everything except mem = const or mem = mem can be done easily.  */
       if (MEM_P (operands[0]))
 (define_split
   [(set (match_operand:SI 0 "arm_general_register_operand" "")
        (match_operand:SI 1 "const_int_operand" ""))]
-  "TARGET_HAVE_MOVT
+  "(TARGET_32BIT || TARGET_HAVE_MOVT)
   && (!(const_ok_for_arm (INTVAL (operands[1]))
         || const_ok_for_arm (~INTVAL (operands[1]))))"
   [(clobber (const_int 0))]