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;
+}

Reply via email to