From 69ba69c9ecffb795a12bc06d7978caa9f9e341ed Mon Sep 17 00:00:00 2001 From: Matthew Wahab Date: Thu, 29 Sep 2016 13:50:55 +0000 Subject: [PATCH] [ARM] Fix new constraints and attributes of SI/HI data movement patterns * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute with "v6t2". Move "arch" attribute above "pool_range". * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute with "v6t2". (*thumb2_movhi_vfp): Likewise. (*arm_movhi_fp16): Likewise. (*thumb2_movhi_fp16): Likewise. (*arm_movsi_vfp): Remove "arch" attribute. (*thumb2_movsi_vfp): Likewise. From-SVN: r240622 --- gcc/ChangeLog | 12 ++++++++++++ gcc/config/arm/arm.md | 2 +- gcc/config/arm/vfp.md | 10 ++++------ 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 432b79047ed..f7f753b91b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2016-09-29 Matthew Wahab + + * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute + with "v6t2". Move "arch" attribute above "pool_range". + * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute + with "v6t2". + (*thumb2_movhi_vfp): Likewise. + (*arm_movhi_fp16): Likewise. + (*thumb2_movhi_fp16): Likewise. + (*arm_movsi_vfp): Remove "arch" attribute. + (*thumb2_movsi_vfp): Likewise. + 2016-09-29 Martin Liska * doc/extend.texi: Remove limitation of Objective C for diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 999292baeab..396aab73365 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -6064,8 +6064,8 @@ str%?\\t%1, %0" [(set_attr "type" "mov_reg,mov_imm,mvn_imm,mov_imm,load1,store1") (set_attr "predicable" "yes") + (set_attr "arch" "*,*,*,v6t2,*,*") (set_attr "pool_range" "*,*,*,*,4096,*") - (set_attr "arch" "*,*,*,t2,*,*") (set_attr "neg_pool_range" "*,*,*,*,4084,*")] ) diff --git a/gcc/config/arm/vfp.md b/gcc/config/arm/vfp.md index 21eaf486ddb..f39e590a5ae 100644 --- a/gcc/config/arm/vfp.md +++ b/gcc/config/arm/vfp.md @@ -65,7 +65,7 @@ (const_string "f_mcr") (const_string "f_mrc") (const_string "fmov")]) - (set_attr "arch" "*, *, t2, *, *, *, *, *") + (set_attr "arch" "*, *, v6t2, *, *, *, *, *") (set_attr "pool_range" "*, *, *, *, 256, *, *, *") (set_attr "neg_pool_range" "*, *, *, *, 244, *, *, *") (set_attr "length" "4")] @@ -109,7 +109,7 @@ (set_attr "type" "mov_reg, mov_imm, mov_imm, mov_imm, store1, load1,\ f_mcr, f_mrc, fmov") - (set_attr "arch" "*, *, *, t2, *, *, *, *, *") + (set_attr "arch" "*, *, *, v6t2, *, *, *, *, *") (set_attr "pool_range" "*, *, *, *, *, 4094, *, *, *") (set_attr "neg_pool_range" "*, *, *, *, *, 250, *, *, *") (set_attr "length" "2, 4, 2, 4, 4, 4, 4, 4, 4")] @@ -161,7 +161,7 @@ (const_string "f_mcr") (const_string "f_mrc") (const_string "fmov")]) - (set_attr "arch" "*, *, t2, *, *, *, *, *") + (set_attr "arch" "*, *, v6t2, *, *, *, *, *") (set_attr "pool_range" "*, *, *, *, 256, *, *, *") (set_attr "neg_pool_range" "*, *, *, *, 244, *, *, *") (set_attr "length" "4")] @@ -205,7 +205,7 @@ (set_attr "type" "mov_reg, mov_imm, mov_imm, mov_imm, store1, load1,\ f_mcr, f_mrc, fmov") - (set_attr "arch" "*, *, *, t2, *, *, *, *, *") + (set_attr "arch" "*, *, *, v6t2, *, *, *, *, *") (set_attr "pool_range" "*, *, *, *, *, 4094, *, *, *") (set_attr "neg_pool_range" "*, *, *, *, *, 250, *, *, *") (set_attr "length" "2, 4, 2, 4, 4, 4, 4, 4, 4")] @@ -248,7 +248,6 @@ [(set_attr "predicable" "yes") (set_attr "type" "mov_reg,mov_reg,mvn_imm,mov_imm,load1,store1, f_mcr,f_mrc,fmov,f_loads,f_stores") - (set_attr "arch" "*,*,*,t2,*,*,*,*,*,*,*") (set_attr "pool_range" "*,*,*,*,4096,*,*,*,*,1020,*") (set_attr "neg_pool_range" "*,*,*,*,4084,*,*,*,*,1008,*")] ) @@ -297,7 +296,6 @@ (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_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 "arch" "*,*,*,*,t2,*,*,*,*,*,*,*,*,*") (set_attr "pool_range" "*,*,*,*,*,1018,4094,*,*,*,*,*,1018,*") (set_attr "neg_pool_range" "*,*,*,*,*, 0, 0,*,*,*,*,*,1008,*")] ) -- 2.30.2