testsuite/
PR rtl-optimization/59278
* gcc.target/sh/pr59278.c: New.
From-SVN: r218251
+2014-12-01 Oleg Endo <olegendo@gcc.gnu.org>
+
+ PR rtl-optimization/59278
+ * gcc.target/sh/pr59278.c: New.
+
2014-12-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60859
--- /dev/null
+/* Check that combine considers unused regs dead. */
+/* { dg-do compile } */
+/* { dg-options "-O1" } */
+/* { dg-skip-if "" { "sh*-*-*" } { "-m5*"} { "" } } */
+/* { dg-final { scan-assembler "addc" } } */
+
+struct result
+{
+ int a, b;
+};
+
+struct result
+test_00 (int a, int b, int d)
+{
+ struct result r;
+ r.a = a != b;
+ r.b = d + b + 1;
+ return r;
+}