Commit 1f46bd52 by Andrew Pinski Committed by Andrew Pinski

2015-01-13 Andrew Pinski <apinski@cavium.com>

        * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
        instead of src mode.


2015-01-13  Andrew Pinski  <apinski@cavium.com>

        * gcc.target/aarch64/store-pair-1.c: New testcase.

From-SVN: r219532
parent e0ffb247
2015-01-13 Andrew Pinski <apinski@cavium.com>
* config/aarch64/aarch64.c (fusion_load_store): Check dest mode
instead of src mode.
2015-01-13 Richard Biener <rguenther@suse.de> 2015-01-13 Richard Biener <rguenther@suse.de>
PR lto/64373 PR lto/64373
......
...@@ -10520,8 +10520,8 @@ fusion_load_store (rtx_insn *insn, rtx *base, rtx *offset) ...@@ -10520,8 +10520,8 @@ fusion_load_store (rtx_insn *insn, rtx *base, rtx *offset)
src = SET_SRC (x); src = SET_SRC (x);
dest = SET_DEST (x); dest = SET_DEST (x);
if (GET_MODE (src) != SImode && GET_MODE (src) != DImode if (GET_MODE (dest) != SImode && GET_MODE (dest) != DImode
&& GET_MODE (src) != SFmode && GET_MODE (src) != DFmode) && GET_MODE (dest) != SFmode && GET_MODE (dest) != DFmode)
return SCHED_FUSION_NONE; return SCHED_FUSION_NONE;
if (GET_CODE (src) == SIGN_EXTEND) if (GET_CODE (src) == SIGN_EXTEND)
......
2015-01-13 Andrew Pinski <apinski@cavium.com>
* gcc.target/aarch64/store-pair-1.c: New testcase.
2015-01-13 Richard Biener <rguenther@suse.de> 2015-01-13 Richard Biener <rguenther@suse.de>
PR lto/64373 PR lto/64373
......
/* { dg-do compile } */
/* { dg-options "-O2" } */
int f(int *a, int b)
{
a[28] = 0;
a[29] = b;
a[31] = 0;
}
/* We should be able to produce store pair for the store of 28/29 store. */
{ dg-final { scan-assembler "stp\tw\[0-9\]+, w\[0-9\]+" } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment