]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
authorMarat Zakirov <m.zakirov@samsung.com>
Thu, 7 Aug 2014 07:34:33 +0000 (07:34 +0000)
committerMarat Zakirov <mzakirov@gcc.gnu.org>
Thu, 7 Aug 2014 07:34:33 +0000 (07:34 +0000)
2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>

* config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
(*thumb1_movqi_insn): Likewise.
* config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.

From-SVN: r213695

gcc/ChangeLog
gcc/config/arm/thumb1.md
gcc/config/arm/thumb2.md

index f786119b76d573f78f4a698b0483c35408994c0c..a5479d4937465d9694c4670e6e4be5eec170e9d3 100644 (file)
@@ -1,3 +1,9 @@
+2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
+
+       * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
+       (*thumb1_movqi_insn): Likewise.
+       * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
+
 2014-08-07  Tom de Vries  <tom@codesourcery.com>
 
        * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
index cd1adf45884c9885d92655ba334f63e789f28a8e..fed741ef68a9d7d385dd44d8e38f5bd4fa7c3970 100644 (file)
 )
 
 (define_insn "*thumb1_movhi_insn"
-  [(set (match_operand:HI 0 "nonimmediate_operand" "=l,l,m,*r,*h,l")
-       (match_operand:HI 1 "general_operand"       "l,m,l,*h,*r,I"))]
+  [(set (match_operand:HI 0 "nonimmediate_operand" "=l,l,m,l*r,*h,l")
+       (match_operand:HI 1 "general_operand"       "l,m,l,k*h,*r,I"))]
   "TARGET_THUMB1
    && (   register_operand (operands[0], HImode)
        || register_operand (operands[1], HImode))"
 
 (define_insn "*thumb1_movqi_insn"
   [(set (match_operand:QI 0 "nonimmediate_operand" "=l,l,m,*r,*h,l")
-       (match_operand:QI 1 "general_operand"      "l, m,l,*h,*r,I"))]
+       (match_operand:QI 1 "general_operand"      "lk, m,l,*h,*r,I"))]
   "TARGET_THUMB1
    && (   register_operand (operands[0], QImode)
        || register_operand (operands[1], QImode))"
index 029a679987ba6897b4093904c55dd10dac470394..983b59dc073c787b5135b3edc0102ab1be9ca8cf 100644 (file)
 ;; of the messiness associated with the ARM patterns.
 (define_insn "*thumb2_movhi_insn"
   [(set (match_operand:HI 0 "nonimmediate_operand" "=r,r,l,r,m,r")
-       (match_operand:HI 1 "general_operand"      "r,I,Py,n,r,m"))]
+       (match_operand:HI 1 "general_operand"      "rk,I,Py,n,r,m"))]
   "TARGET_THUMB2
   && (register_operand (operands[0], HImode)
      || register_operand (operands[1], HImode))"