diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2014-05-30 08:31:38 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2014-05-30 08:31:38 +0000 |
commit | 569120372d8b1c3cd1e0b867c686e250872f760e (patch) | |
tree | 4005fb161fdd1b03156910ca02cb0e065ddc345d /gcc | |
parent | 98f2f031af6c7a215c607702036195dcc8faaf86 (diff) | |
download | gcc-569120372d8b1c3cd1e0b867c686e250872f760e.zip gcc-569120372d8b1c3cd1e0b867c686e250872f760e.tar.gz gcc-569120372d8b1c3cd1e0b867c686e250872f760e.tar.bz2 |
[ARM] Use mov_imm type for movw operations consistently
* config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
to mov_imm.
* config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
From-SVN: r211073
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/arm/thumb2.md | 2 | ||||
-rw-r--r-- | gcc/config/arm/vfp.md | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a0d75fe..e9046bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com> + + * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw + to mov_imm. + * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise. + 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com> * ira.c (ira_get_dup_out_num): Check for output operands at diff --git a/gcc/config/arm/thumb2.md b/gcc/config/arm/thumb2.md index 10bc8b1..6ea0810 100644 --- a/gcc/config/arm/thumb2.md +++ b/gcc/config/arm/thumb2.md @@ -329,7 +329,7 @@ movw%?\\t%0, %L1\\t%@ movhi str%(h%)\\t%1, %0\\t%@ movhi ldr%(h%)\\t%0, %1\\t%@ movhi" - [(set_attr "type" "mov_reg,mov_imm,mov_imm,mov_reg,store1,load1") + [(set_attr "type" "mov_reg,mov_imm,mov_imm,mov_imm,store1,load1") (set_attr "predicable" "yes") (set_attr "predicable_short_it" "yes,no,yes,no,no,no") (set_attr "length" "2,4,2,4,4,4") diff --git a/gcc/config/arm/vfp.md b/gcc/config/arm/vfp.md index e1a48ee..8147624 100644 --- a/gcc/config/arm/vfp.md +++ b/gcc/config/arm/vfp.md @@ -100,7 +100,7 @@ " [(set_attr "predicable" "yes") (set_attr "predicable_short_it" "yes,no,yes,no,no,no,no,no,no,no,no,no,no,no") - (set_attr "type" "mov_reg,mov_reg,mov_reg,mvn_reg,mov_reg,load1,load1,store1,store1,f_mcr,f_mrc,fmov,f_loads,f_stores") + (set_attr "type" "mov_reg,mov_reg,mov_reg,mvn_reg,mov_imm,load1,load1,store1,store1,f_mcr,f_mrc,fmov,f_loads,f_stores") (set_attr "length" "2,4,2,4,4,4,4,4,4,4,4,4,4,4") (set_attr "pool_range" "*,*,*,*,*,1018,4094,*,*,*,*,*,1018,*") (set_attr "neg_pool_range" "*,*,*,*,*, 0, 0,*,*,*,*,*,1008,*")] |