From: Bin Cheng Date: Fri, 5 Sep 2014 03:31:29 +0000 (+0000) Subject: arm.c (output_move_neon): Handle REG explicitly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed5f78b8e940ee05d6ee9230e2d525a31e417d17;p=gcc.git arm.c (output_move_neon): Handle REG explicitly. * config/arm/arm.c (output_move_neon): Handle REG explicitly. From-SVN: r214935 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9fedacc4556..27169c22119 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-09-05 Bin Cheng + + * config/arm/arm.c (output_move_neon): Handle REG explicitly. + 2014-09-04 Trevor Saunders * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 9ffdb3d8ea1..15c634196a0 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -18555,6 +18555,20 @@ output_move_neon (rtx *operands) /* FIXME: Not currently enabled in neon_vector_mem_operand. */ gcc_unreachable (); + case REG: + /* We have to use vldm / vstm for too-large modes. */ + if (nregs > 1) + { + if (nregs > 4) + templ = "v%smia%%?\t%%m0, %%h1"; + else + templ = "v%s1.64\t%%h1, %%A0"; + + ops[0] = mem; + ops[1] = reg; + break; + } + /* Fall through. */ case LABEL_REF: case PLUS: { @@ -18588,14 +18602,7 @@ output_move_neon (rtx *operands) } default: - /* We have to use vldm / vstm for too-large modes. */ - if (nregs > 4) - templ = "v%smia%%?\t%%m0, %%h1"; - else - templ = "v%s1.64\t%%h1, %%A0"; - - ops[0] = mem; - ops[1] = reg; + gcc_unreachable (); } sprintf (buff, templ, load ? "ld" : "st");