diff mbox

[SH,committed] Add PR 17280 test case

Message ID 1419201469.8915.75.camel@yam-132-YW-E178-FTW
State New
Headers show

Commit Message

Oleg Endo Dec. 21, 2014, 10:37 p.m. UTC
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.
diff mbox

Patch

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