public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] [PATCH][ARM] Fix split-live-ranges-for-shrink-wrap.c testcase.
@ 2015-05-20 18:40 Alex Velenko
  2015-05-20 20:30 ` Joseph Myers
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Velenko @ 2015-05-20 18:40 UTC (permalink / raw)
  To: gcc-patches; +Cc: ramana.radhakrishnan

Hi,

This patch limits testcase split-live-ranges-for-shrink-wrap.c runs to
supported achitecture versions.
Object size with -march=armv4t check fails because pop pc is not interworking
safe on armv4t.
This test is not supported for -march=armv7 as this test is for thumb1.

Is patch ok?

gcc/testsuite

2015-05-20  Alex Velenko  <Alex.Velenko@arm.com>

        * gcc.target/arm/split-live-ranges-for-shrink-wrap.c (dg-skip-if):
	Skip armv4t, armv7-a and later.
---
 gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c b/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
index e36000b..c649bc1 100644
--- a/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
+++ b/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
@@ -1,6 +1,8 @@
 /* { dg-do assemble } */
 /* { dg-options "-mthumb -Os -fdump-rtl-ira " }  */
 /* { dg-require-effective-target arm_thumb1_ok } */
+/* { dg-skip-if "" { arm_arch_v4t_ok } } */
+/* { dg-skip-if "" { arm_arch_v7a_ok } } */
 
 int foo (char *, char *, int);
 int test (int d, char * out, char *in, int len)
-- 
1.8.1.2

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [PATCH][ARM] Fix split-live-ranges-for-shrink-wrap.c testcase.
  2015-05-20 18:40 [PATCH] [PATCH][ARM] Fix split-live-ranges-for-shrink-wrap.c testcase Alex Velenko
@ 2015-05-20 20:30 ` Joseph Myers
  2015-06-22 16:57   ` Alex Velenko
  0 siblings, 1 reply; 7+ messages in thread
From: Joseph Myers @ 2015-05-20 20:30 UTC (permalink / raw)
  To: Alex Velenko; +Cc: gcc-patches, ramana.radhakrishnan

On Wed, 20 May 2015, Alex Velenko wrote:

> Hi,
> 
> This patch limits testcase split-live-ranges-for-shrink-wrap.c runs to
> supported achitecture versions.
> Object size with -march=armv4t check fails because pop pc is not interworking
> safe on armv4t.
> This test is not supported for -march=armv7 as this test is for thumb1.
> 
> Is patch ok?

Again, the condition you propose to add doesn't make sense.  arm_arch_X_ok 
is only appropriate for tests using an explicit -march=X.  Testing with 
-march=armv7* should automatically skip this test anyway because it would 
cause arm_thumb1_ok to fail.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: [PATCH] [PATCH][ARM] Fix split-live-ranges-for-shrink-wrap.c testcase.
  2015-05-20 20:30 ` Joseph Myers
@ 2015-06-22 16:57   ` Alex Velenko
  2015-06-22 17:00     ` Joseph Myers
  2015-06-25 13:37     ` Ramana Radhakrishnan
  0 siblings, 2 replies; 7+ messages in thread
From: Alex Velenko @ 2015-06-22 16:57 UTC (permalink / raw)
  To: Joseph Myers; +Cc: gcc-patches, ramana.radhakrishnan

On 20/05/15 21:14, Joseph Myers wrote:
> Again, the condition you propose to add doesn't make sense.  arm_arch_X_ok
> is only appropriate for tests using an explicit -march=X.  Testing with
> -march=armv7* should automatically skip this test anyway because it would
> cause arm_thumb1_ok to fail.
>

Hi,

I adjusted the patch to skip execution split-live-ranges-for-shrink-wrap.c
with explicitly specified -march=armv4t and provide -march=armv5t flag =
for
arm_arch_v5t_ok targets.

Is patch ok?

Alex

gcc/testsuite

2015-06-22  Alex Velenko  <Alex.Velenko@arm.com>

          * gcc.target/arm/split-live-ranges-for-shrink-wrap.c (dg-skip-if):
	Skip -march=armv4t.
         (dg-additional-options): Set armv5t flag.

diff --git
a/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
b/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
index e36000b..3cb93dc 100644
--- a/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
+++ b/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
@@ -1,6 +1,8 @@
   /* { dg-do assemble } */
   /* { dg-options "-mthumb -Os -fdump-rtl-ira " }  */
   /* { dg-require-effective-target arm_thumb1_ok } */
+/* { dg-skip-if "do not test on armv4t" { *-*-* } { "-march=armv4t" } } =
*/
+/* { dg-additional-options "-march=armv5t" {target arm_arch_v5t_ok} } */

   int foo (char *, char *, int);
   int test (int d, char * out, char *in, int len)

--------------1.8.1.2--

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: [PATCH] [PATCH][ARM] Fix split-live-ranges-for-shrink-wrap.c testcase.
  2015-06-22 16:57   ` Alex Velenko
@ 2015-06-22 17:00     ` Joseph Myers
  2015-06-25 13:37     ` Ramana Radhakrishnan
  1 sibling, 0 replies; 7+ messages in thread
From: Joseph Myers @ 2015-06-22 17:00 UTC (permalink / raw)
  To: Alex Velenko; +Cc: gcc-patches, ramana.radhakrishnan

I have no more comments on this patch.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: [PATCH] [PATCH][ARM] Fix split-live-ranges-for-shrink-wrap.c testcase.
  2015-06-22 16:57   ` Alex Velenko
  2015-06-22 17:00     ` Joseph Myers
@ 2015-06-25 13:37     ` Ramana Radhakrishnan
  2015-07-21 11:53       ` Alex Velenko
  1 sibling, 1 reply; 7+ messages in thread
From: Ramana Radhakrishnan @ 2015-06-25 13:37 UTC (permalink / raw)
  To: Alex Velenko; +Cc: Joseph Myers, gcc-patches, Ramana Radhakrishnan

On Mon, Jun 22, 2015 at 5:56 PM, Alex Velenko <Alex.Velenko@arm.com> wrote:
> On 20/05/15 21:14, Joseph Myers wrote:
>>
>> Again, the condition you propose to add doesn't make sense.  arm_arch_X_ok
>> is only appropriate for tests using an explicit -march=X.  Testing with
>> -march=armv7* should automatically skip this test anyway because it would
>> cause arm_thumb1_ok to fail.
>>
>
> Hi,
>
> I adjusted the patch to skip execution split-live-ranges-for-shrink-wrap.c
> with explicitly specified -march=armv4t and provide -march=armv5t flag =
> for
> arm_arch_v5t_ok targets.
>
> Is patch ok?
>
> Alex
>
> gcc/testsuite
>
> 2015-06-22  Alex Velenko  <Alex.Velenko@arm.com>
>
>          * gcc.target/arm/split-live-ranges-for-shrink-wrap.c (dg-skip-if):
>         Skip -march=armv4t.
>         (dg-additional-options): Set armv5t flag.
>
> diff --git
> a/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
> b/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
> index e36000b..3cb93dc 100644
> --- a/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
> +++ b/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
> @@ -1,6 +1,8 @@
>   /* { dg-do assemble } */
>   /* { dg-options "-mthumb -Os -fdump-rtl-ira " }  */
>   /* { dg-require-effective-target arm_thumb1_ok } */
> +/* { dg-skip-if "do not test on armv4t" { *-*-* } { "-march=armv4t" } } =
> */
> +/* { dg-additional-options "-march=armv5t" {target arm_arch_v5t_ok} } */
>
>   int foo (char *, char *, int);
>   int test (int d, char * out, char *in, int len)


OK - please watch out for any multilibs fallout and apply this.

Ramana
>
> --------------1.8.1.2--
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Re: [PATCH] [PATCH][ARM] Fix split-live-ranges-for-shrink-wrap.c testcase.
  2015-06-25 13:37     ` Ramana Radhakrishnan
@ 2015-07-21 11:53       ` Alex Velenko
  2015-07-22  8:10         ` Ramana Radhakrishnan
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Velenko @ 2015-07-21 11:53 UTC (permalink / raw)
  To: ramrad01; +Cc: Joseph Myers, gcc-patches, Ramana Radhakrishnan

On 25/06/15 14:35, Ramana Radhakrishnan wrote:
> On Mon, Jun 22, 2015 at 5:56 PM, Alex Velenko <Alex.Velenko@arm.com> wrote:
>> On 20/05/15 21:14, Joseph Myers wrote:
>>>
>>> Again, the condition you propose to add doesn't make sense.  arm_arch_X_ok
>>> is only appropriate for tests using an explicit -march=X.  Testing with
>>> -march=armv7* should automatically skip this test anyway because it would
>>> cause arm_thumb1_ok to fail.
>>>
>>
>> Hi,
>>
>> I adjusted the patch to skip execution split-live-ranges-for-shrink-wrap.c
>> with explicitly specified -march=armv4t and provide -march=armv5t flag =
>> for
>> arm_arch_v5t_ok targets.
>>
>> Is patch ok?
>>
>> Alex
>>
>> gcc/testsuite
>>
>> 2015-06-22  Alex Velenko  <Alex.Velenko@arm.com>
>>
>>           * gcc.target/arm/split-live-ranges-for-shrink-wrap.c (dg-skip-if):
>>          Skip -march=armv4t.
>>          (dg-additional-options): Set armv5t flag.
>>
>> diff --git
>> a/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
>> b/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
>> index e36000b..3cb93dc 100644
>> --- a/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
>> +++ b/gcc/testsuite/gcc.target/arm/split-live-ranges-for-shrink-wrap.c
>> @@ -1,6 +1,8 @@
>>    /* { dg-do assemble } */
>>    /* { dg-options "-mthumb -Os -fdump-rtl-ira " }  */
>>    /* { dg-require-effective-target arm_thumb1_ok } */
>> +/* { dg-skip-if "do not test on armv4t" { *-*-* } { "-march=armv4t" } } =
>> */
>> +/* { dg-additional-options "-march=armv5t" {target arm_arch_v5t_ok} } */
>>
>>    int foo (char *, char *, int);
>>    int test (int d, char * out, char *in, int len)
>
>
> OK - please watch out for any multilibs fallout and apply this.
>
> Ramana
>>
>> --------------1.8.1.2--
>>
>
Committed to trunk r226036.
Is patch ok for fsf-5?
kind regards,
Alex

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [PATCH][ARM] Fix split-live-ranges-for-shrink-wrap.c testcase.
  2015-07-21 11:53       ` Alex Velenko
@ 2015-07-22  8:10         ` Ramana Radhakrishnan
  0 siblings, 0 replies; 7+ messages in thread
From: Ramana Radhakrishnan @ 2015-07-22  8:10 UTC (permalink / raw)
  To: gcc-patches


>>
> Committed to trunk r226036.
> Is patch ok for fsf-5?

OK for all release branches where affected as this is a testism.


Ramana

> kind regards,
> Alex
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-22  7:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-20 18:40 [PATCH] [PATCH][ARM] Fix split-live-ranges-for-shrink-wrap.c testcase Alex Velenko
2015-05-20 20:30 ` Joseph Myers
2015-06-22 16:57   ` Alex Velenko
2015-06-22 17:00     ` Joseph Myers
2015-06-25 13:37     ` Ramana Radhakrishnan
2015-07-21 11:53       ` Alex Velenko
2015-07-22  8:10         ` 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).