* [PATCH, testsuite/ARM] Skip pr70496.c for cortex-m devices
@ 2016-04-06 11:04 Thomas Preudhomme
2016-04-06 11:09 ` Kyrill Tkachov
2016-04-06 11:16 ` Ramana Radhakrishnan
0 siblings, 2 replies; 5+ messages in thread
From: Thomas Preudhomme @ 2016-04-06 11:04 UTC (permalink / raw)
To: gcc-patches, Ramana Radhakrishnan, Kyrylo Tkachov
Hi,
Testcase in gcc.target/arm/pr70496.c uses an .arm directive so assumes the
target has an ARM execution state. This patch adds a dg-skip-if directive to
skip that test on Cortex-M targets since they don't have such an execution
state.
ChangeLog entry is as follows:
*** gcc/testsuite/ChangeLog ***
2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR testsuite/70553
* gcc.target/arm/pr70496.c: Skip for ARM Cortex-M targets.
diff --git a/gcc/testsuite/gcc.target/arm/pr70496.c
b/gcc/testsuite/gcc.target/arm/pr70496.c
index
89957e2c7a75cb89153b3e3fc34d8051b6a997d1..548a8243059ddaec63ed897dc67f4751d806a065
100644
--- a/gcc/testsuite/gcc.target/arm/pr70496.c
+++ b/gcc/testsuite/gcc.target/arm/pr70496.c
@@ -1,6 +1,7 @@
/* { dg-do assemble } */
/* { dg-options "-mthumb -O2" } */
/* { dg-require-effective-target arm_thumb2_ok } */
+/* { dg-skip-if "does not have ARM state" { arm_cortex_m } } */
int i;
void
Is this ok for trunk?
Best regards,
Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH, testsuite/ARM] Skip pr70496.c for cortex-m devices
2016-04-06 11:04 [PATCH, testsuite/ARM] Skip pr70496.c for cortex-m devices Thomas Preudhomme
@ 2016-04-06 11:09 ` Kyrill Tkachov
2016-04-07 16:13 ` Thomas Preudhomme
2016-04-06 11:16 ` Ramana Radhakrishnan
1 sibling, 1 reply; 5+ messages in thread
From: Kyrill Tkachov @ 2016-04-06 11:09 UTC (permalink / raw)
To: Thomas Preudhomme, gcc-patches, Ramana Radhakrishnan
Hi Thomas,
On 06/04/16 12:03, Thomas Preudhomme wrote:
> Hi,
>
> Testcase in gcc.target/arm/pr70496.c uses an .arm directive so assumes the
> target has an ARM execution state. This patch adds a dg-skip-if directive to
> skip that test on Cortex-M targets since they don't have such an execution
> state.
>
> ChangeLog entry is as follows:
>
>
> *** gcc/testsuite/ChangeLog ***
>
> 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
>
> PR testsuite/70553
> * gcc.target/arm/pr70496.c: Skip for ARM Cortex-M targets.
>
>
> diff --git a/gcc/testsuite/gcc.target/arm/pr70496.c
> b/gcc/testsuite/gcc.target/arm/pr70496.c
> index
> 89957e2c7a75cb89153b3e3fc34d8051b6a997d1..548a8243059ddaec63ed897dc67f4751d806a065
> 100644
> --- a/gcc/testsuite/gcc.target/arm/pr70496.c
> +++ b/gcc/testsuite/gcc.target/arm/pr70496.c
> @@ -1,6 +1,7 @@
> /* { dg-do assemble } */
> /* { dg-options "-mthumb -O2" } */
> /* { dg-require-effective-target arm_thumb2_ok } */
> +/* { dg-skip-if "does not have ARM state" { arm_cortex_m } } */
>
Would it be better to just require the arm_arm_ok effective target?
That should try to compile a test with -marm added to the command,
which should fail for Cortex-M targets.
Thanks,
Kyrill
> int i;
> void
>
>
>
>
> Is this ok for trunk?
>
> Best regards,
>
> Thomas
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH, testsuite/ARM] Skip pr70496.c for cortex-m devices
2016-04-06 11:09 ` Kyrill Tkachov
@ 2016-04-07 16:13 ` Thomas Preudhomme
2016-04-07 16:14 ` Kyrill Tkachov
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Preudhomme @ 2016-04-07 16:13 UTC (permalink / raw)
To: Kyrill Tkachov; +Cc: gcc-patches, Ramana Radhakrishnan
On Wednesday 06 April 2016 12:09:25 Kyrill Tkachov wrote:
> Hi Thomas,
>
> On 06/04/16 12:03, Thomas Preudhomme wrote:
> > Hi,
> >
> > Testcase in gcc.target/arm/pr70496.c uses an .arm directive so assumes the
> > target has an ARM execution state. This patch adds a dg-skip-if directive
> > to skip that test on Cortex-M targets since they don't have such an
> > execution state.
> >
> > ChangeLog entry is as follows:
> >
> >
> > *** gcc/testsuite/ChangeLog ***
> >
> > 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
> >
> > PR testsuite/70553
> > * gcc.target/arm/pr70496.c: Skip for ARM Cortex-M targets.
> >
> > diff --git a/gcc/testsuite/gcc.target/arm/pr70496.c
> > b/gcc/testsuite/gcc.target/arm/pr70496.c
> > index
> > 89957e2c7a75cb89153b3e3fc34d8051b6a997d1..548a8243059ddaec63ed897dc67f4751
> > d806a065 100644
> > --- a/gcc/testsuite/gcc.target/arm/pr70496.c
> > +++ b/gcc/testsuite/gcc.target/arm/pr70496.c
> > @@ -1,6 +1,7 @@
> >
> > /* { dg-do assemble } */
> > /* { dg-options "-mthumb -O2" } */
> > /* { dg-require-effective-target arm_thumb2_ok } */
> >
> > +/* { dg-skip-if "does not have ARM state" { arm_cortex_m } } */
>
> Would it be better to just require the arm_arm_ok effective target?
> That should try to compile a test with -marm added to the command,
> which should fail for Cortex-M targets.
Fair point. What about the following patch then?
*** gcc/testsuite/ChangeLog ***
2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR testsuite/70553
* gcc.target/arm/pr70496.c: Also require arm_arm_ok effective target.
diff --git a/gcc/testsuite/gcc.target/arm/pr70496.c
b/gcc/testsuite/gcc.target/arm/pr70496.c
index
89957e2c7a75cb89153b3e3fc34d8051b6a997d1..d3ee0b505a842268dec0fa4da09da2355a9c3715
100644
--- a/gcc/testsuite/gcc.target/arm/pr70496.c
+++ b/gcc/testsuite/gcc.target/arm/pr70496.c
@@ -1,5 +1,6 @@
/* { dg-do assemble } */
/* { dg-options "-mthumb -O2" } */
+/* { dg-require-effective-target arm_arm_ok } */
/* { dg-require-effective-target arm_thumb2_ok } */
int i;
Is this ok for trunk?
Best regards,
Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH, testsuite/ARM] Skip pr70496.c for cortex-m devices
2016-04-07 16:13 ` Thomas Preudhomme
@ 2016-04-07 16:14 ` Kyrill Tkachov
0 siblings, 0 replies; 5+ messages in thread
From: Kyrill Tkachov @ 2016-04-07 16:14 UTC (permalink / raw)
To: Thomas Preudhomme; +Cc: gcc-patches, Ramana Radhakrishnan
On 07/04/16 17:13, Thomas Preudhomme wrote:
> On Wednesday 06 April 2016 12:09:25 Kyrill Tkachov wrote:
>> Hi Thomas,
>>
>> On 06/04/16 12:03, Thomas Preudhomme wrote:
>>> Hi,
>>>
>>> Testcase in gcc.target/arm/pr70496.c uses an .arm directive so assumes the
>>> target has an ARM execution state. This patch adds a dg-skip-if directive
>>> to skip that test on Cortex-M targets since they don't have such an
>>> execution state.
>>>
>>> ChangeLog entry is as follows:
>>>
>>>
>>> *** gcc/testsuite/ChangeLog ***
>>>
>>> 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
>>>
>>> PR testsuite/70553
>>> * gcc.target/arm/pr70496.c: Skip for ARM Cortex-M targets.
>>>
>>> diff --git a/gcc/testsuite/gcc.target/arm/pr70496.c
>>> b/gcc/testsuite/gcc.target/arm/pr70496.c
>>> index
>>> 89957e2c7a75cb89153b3e3fc34d8051b6a997d1..548a8243059ddaec63ed897dc67f4751
>>> d806a065 100644
>>> --- a/gcc/testsuite/gcc.target/arm/pr70496.c
>>> +++ b/gcc/testsuite/gcc.target/arm/pr70496.c
>>> @@ -1,6 +1,7 @@
>>>
>>> /* { dg-do assemble } */
>>> /* { dg-options "-mthumb -O2" } */
>>> /* { dg-require-effective-target arm_thumb2_ok } */
>>>
>>> +/* { dg-skip-if "does not have ARM state" { arm_cortex_m } } */
>> Would it be better to just require the arm_arm_ok effective target?
>> That should try to compile a test with -marm added to the command,
>> which should fail for Cortex-M targets.
> Fair point. What about the following patch then?
>
>
> *** gcc/testsuite/ChangeLog ***
>
> 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
>
> PR testsuite/70553
> * gcc.target/arm/pr70496.c: Also require arm_arm_ok effective target.
>
>
> diff --git a/gcc/testsuite/gcc.target/arm/pr70496.c
> b/gcc/testsuite/gcc.target/arm/pr70496.c
> index
> 89957e2c7a75cb89153b3e3fc34d8051b6a997d1..d3ee0b505a842268dec0fa4da09da2355a9c3715
> 100644
> --- a/gcc/testsuite/gcc.target/arm/pr70496.c
> +++ b/gcc/testsuite/gcc.target/arm/pr70496.c
> @@ -1,5 +1,6 @@
> /* { dg-do assemble } */
> /* { dg-options "-mthumb -O2" } */
> +/* { dg-require-effective-target arm_arm_ok } */
> /* { dg-require-effective-target arm_thumb2_ok } */
>
> int i;
>
>
> Is this ok for trunk?
That's ok.
Thanks,
Kyrill
> Best regards,
>
> Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH, testsuite/ARM] Skip pr70496.c for cortex-m devices
2016-04-06 11:04 [PATCH, testsuite/ARM] Skip pr70496.c for cortex-m devices Thomas Preudhomme
2016-04-06 11:09 ` Kyrill Tkachov
@ 2016-04-06 11:16 ` Ramana Radhakrishnan
1 sibling, 0 replies; 5+ messages in thread
From: Ramana Radhakrishnan @ 2016-04-06 11:16 UTC (permalink / raw)
To: Thomas Preudhomme; +Cc: gcc-patches, Ramana Radhakrishnan, Kyrylo Tkachov
On Wed, Apr 6, 2016 at 12:03 PM, Thomas Preudhomme
<thomas.preudhomme@foss.arm.com> wrote:
> Hi,
>
> Testcase in gcc.target/arm/pr70496.c uses an .arm directive so assumes the
> target has an ARM execution state. This patch adds a dg-skip-if directive to
> skip that test on Cortex-M targets since they don't have such an execution
> state.
>
> ChangeLog entry is as follows:
>
>
> *** gcc/testsuite/ChangeLog ***
>
> 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
>
> PR testsuite/70553
> * gcc.target/arm/pr70496.c: Skip for ARM Cortex-M targets.
>
>
> diff --git a/gcc/testsuite/gcc.target/arm/pr70496.c
> b/gcc/testsuite/gcc.target/arm/pr70496.c
> index
> 89957e2c7a75cb89153b3e3fc34d8051b6a997d1..548a8243059ddaec63ed897dc67f4751d806a065
> 100644
> --- a/gcc/testsuite/gcc.target/arm/pr70496.c
> +++ b/gcc/testsuite/gcc.target/arm/pr70496.c
> @@ -1,6 +1,7 @@
> /* { dg-do assemble } */
> /* { dg-options "-mthumb -O2" } */
> /* { dg-require-effective-target arm_thumb2_ok } */
> +/* { dg-skip-if "does not have ARM state" { arm_cortex_m } } */
>
> int i;
> void
>
Ok.
Looks obvious and sorry about the inadvertent breakage.
Ramana
>
>
>
> Is this ok for trunk?
>
> Best regards,
>
> Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-04-07 16:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-06 11:04 [PATCH, testsuite/ARM] Skip pr70496.c for cortex-m devices Thomas Preudhomme
2016-04-06 11:09 ` Kyrill Tkachov
2016-04-07 16:13 ` Thomas Preudhomme
2016-04-07 16:14 ` Kyrill Tkachov
2016-04-06 11:16 ` Ramana Radhakrishnan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).