This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[SH][committed] Add PR 17280 test case
- From: Oleg Endo <oleg dot endo at t-online dot de>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 21 Dec 2014 23:37:49 +0100
- Subject: [SH][committed] Add PR 17280 test case
- Authentication-results: sourceware.org; auth=none
Hi,
This adds a test case for PR 17280. Tested with
make -k check-gcc RUNTESTFLAGS="sh-torture.exp --target_board=sh-sim
\{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}"
Committed as r218998.
Cheers,
Oleg
gcc/testsuite/ChangeLog:
PR target/17280
* gcc.target/sh/torture/pr17280.c: New.
Index: gcc/testsuite/gcc.target/sh/torture/pr17280.c
===================================================================
--- gcc/testsuite/gcc.target/sh/torture/pr17280.c (revision 0)
+++ gcc/testsuite/gcc.target/sh/torture/pr17280.c (revision 0)
@@ -0,0 +1,13 @@
+/* Check that there are no problems with .uses labels when branch relaxation
+ is enabled. */
+/* { dg-do assemble } */
+/* { dg-additional-options "-mrelax" } */
+
+extern void foo (int);
+
+int
+main (void)
+{
+ foo (7);
+ return 0;
+}