[v6,06/10] testsuite: Remove PRU from test cases requiring hosted environment

Message ID 20190609200147.27209-7-dimitar@dinux.eu
State New
Headers show
Series
  • New backend for the TI PRU processor
Related show

Commit Message

Dimitar Dimitrov June 9, 2019, 8:01 p.m.
gcc/testsuite/ChangeLog:

2019-06-07  Dimitar Dimitrov  <dimitar@dinux.eu>

	* gcc.c-torture/execute/20101011-1.c: Define DO_TEST to 0 for PRU.
	* gcc.dg/20020312-2.c: No PIC register for PRU.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>

---
 gcc/testsuite/gcc.c-torture/execute/20101011-1.c | 2 ++
 gcc/testsuite/gcc.dg/20020312-2.c                | 2 ++
 2 files changed, 4 insertions(+)

-- 
2.11.0

Comments

Andreas Schwab June 9, 2019, 8:34 p.m. | #1
On Jun 09 2019, Dimitar Dimitrov <dimitar@dinux.eu> wrote:

> diff --git a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c

> index d2beeb52a0e..4a9cc63fde8 100644

> --- a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c

> +++ b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c

> @@ -102,6 +102,8 @@ __aeabi_idiv0 (int return_value)

>  # define DO_TEST 0

>  #elif defined (__or1k__)

>    /* On OpenRISC division by zero does not trap.  */

> +#elif defined (__pru__)

> +/* There isn't even a signal function.  */

>  # define DO_TEST 0


That removes the define from the __or1k__ branch.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Dimitar Dimitrov June 10, 2019, 5:17 a.m. | #2
On неделя, 9 юни 2019 г. 22:34:23 EEST Andreas Schwab wrote:
> On Jun 09 2019, Dimitar Dimitrov <dimitar@dinux.eu> wrote:

> > diff --git a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c

> > b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c index

> > d2beeb52a0e..4a9cc63fde8 100644

> > --- a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c

> > +++ b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c

> > @@ -102,6 +102,8 @@ __aeabi_idiv0 (int return_value)

> > 

> >  # define DO_TEST 0

> >  #elif defined (__or1k__)

> >  

> >    /* On OpenRISC division by zero does not trap.  */

> > 

> > +#elif defined (__pru__)

> > +/* There isn't even a signal function.  */

> > 

> >  # define DO_TEST 0

> 

> That removes the define from the __or1k__ branch.

> 

> Andreas.

Sorry about that. Must have slipped through one of the numerous rebases I've 
been doing. I'll fix it.

Thanks for spotting it,
Dimitar

Patch

diff --git a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c
index d2beeb52a0e..4a9cc63fde8 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c
@@ -102,6 +102,8 @@  __aeabi_idiv0 (int return_value)
 # define DO_TEST 0
 #elif defined (__or1k__)
   /* On OpenRISC division by zero does not trap.  */
+#elif defined (__pru__)
+/* There isn't even a signal function.  */
 # define DO_TEST 0
 #else
 # define DO_TEST 1
diff --git a/gcc/testsuite/gcc.dg/20020312-2.c b/gcc/testsuite/gcc.dg/20020312-2.c
index c584d35908e..dae3599563a 100644
--- a/gcc/testsuite/gcc.dg/20020312-2.c
+++ b/gcc/testsuite/gcc.dg/20020312-2.c
@@ -121,6 +121,8 @@  extern void abort (void);
 /* No pic register.  */
 #elif defined (__AMDGCN__)
 /* No pic register.  */
+#elif defined(__PRU__)
+/* No pic register.  */
 #else
 # error "Modify the test for your target."
 #endif