* 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
+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>
PR lto/64373
src = SET_SRC (x);
dest = SET_DEST (x);
- if (GET_MODE (src) != SImode && GET_MODE (src) != DImode
- && GET_MODE (src) != SFmode && GET_MODE (src) != DFmode)
+ if (GET_MODE (dest) != SImode && GET_MODE (dest) != DImode
+ && GET_MODE (dest) != SFmode && GET_MODE (dest) != DFmode)
return SCHED_FUSION_NONE;
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>
PR lto/64373
--- /dev/null
+/* { 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\]+" } }