From 5ea22cfc70c01b2027e5c4eb0d653b11aaa18bd4 Mon Sep 17 00:00:00 2001 From: Terry Guo Date: Wed, 28 Jan 2015 06:18:37 +0000 Subject: [PATCH] * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern. From-SVN: r220197 --- gcc/ChangeLog | 4 ++++ gcc/config/arm/thumb1.md | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67d3fc77555..32dbae4f6e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-01-28 Terry Guo + + * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern. + 2015-01-27 David Malcolm * toplev.c (print_version): Add param "show_global_state", and diff --git a/gcc/config/arm/thumb1.md b/gcc/config/arm/thumb1.md index b1a589774ea..3847b33bd9c 100644 --- a/gcc/config/arm/thumb1.md +++ b/gcc/config/arm/thumb1.md @@ -1774,6 +1774,16 @@ " ) +(define_insn "*thumb1_movpc_insn" + [(set (match_operand:SI 0 "s_register_operand" "=l") + (reg:SI PC_REGNUM))] + "TARGET_THUMB1" + "mov\\t%0, pc" + [(set_attr "length" "2") + (set_attr "conds" "nocond") + (set_attr "type" "mov_reg")] +) + ;; NB never uses BX. (define_insn "*thumb1_tablejump" [(set (pc) (match_operand:SI 0 "register_operand" "l*r")) -- 2.30.2