public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][ARM][testsuite] Add testsuite options for AArch32 NEON
@ 2012-12-11 12:31 Kyrylo Tkachov
  2012-12-17 14:12 ` Richard Earnshaw
  0 siblings, 1 reply; 3+ messages in thread
From: Kyrylo Tkachov @ 2012-12-11 12:31 UTC (permalink / raw)
  To: gcc-patches; +Cc: Ramana Radhakrishnan

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

Hi all,

Since the new AArch32 NEON instructions in arm_neon.h are predicated on
__ARM_ARCH 8 the testsuite add_options procedure should also include
-march=armv8-a to make these instructions available.

This makes the new vrnd* tests in gcc.target/arm/neon PASS in situations
where armv8-a is not the default target.
No regressions otherwise on arm-none-eabi.

Ok for trunk?

Thanks,
Kyrill

gcc/testsuite/ChangeLog

2012-12-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* lib/target-supports.exp (add_options_for_arm_v8_neon):
	Add -march=armv8-a.

[-- Attachment #2: neon_v8_addoptions.txt --]
[-- Type: text/plain, Size: 588 bytes --]

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index ef93ad1..493a38a 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -2186,7 +2186,7 @@ proc add_options_for_arm_v8_neon { flags } {
     if { ! [check_effective_target_arm_v8_neon_ok] } {
         return "$flags"
     }
-    return "$flags -mfpu=neon-fp-armv8 -mfloat-abi=softfp"
+    return "$flags -march=armv8-a -mfpu=neon-fp-armv8 -mfloat-abi=softfp"
 }
 
 # Add the options needed for NEON.  We need either -mfloat-abi=softfp

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

* Re: [PATCH][ARM][testsuite] Add testsuite options for AArch32 NEON
  2012-12-11 12:31 [PATCH][ARM][testsuite] Add testsuite options for AArch32 NEON Kyrylo Tkachov
@ 2012-12-17 14:12 ` Richard Earnshaw
  2012-12-17 15:28   ` Kyrylo Tkachov
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Earnshaw @ 2012-12-17 14:12 UTC (permalink / raw)
  To: Kyrylo Tkachov; +Cc: gcc-patches, Ramana Radhakrishnan

On 11/12/12 12:30, Kyrylo Tkachov wrote:
> Hi all,
>
> Since the new AArch32 NEON instructions in arm_neon.h are predicated on
> __ARM_ARCH 8 the testsuite add_options procedure should also include
> -march=armv8-a to make these instructions available.
>
> This makes the new vrnd* tests in gcc.target/arm/neon PASS in situations
> where armv8-a is not the default target.
> No regressions otherwise on arm-none-eabi.
>
> Ok for trunk?
>

OK.

Don't you need to do the same thing for add_options_for_arm_v8_vfp?

R.


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

* RE: [PATCH][ARM][testsuite] Add testsuite options for AArch32 NEON
  2012-12-17 14:12 ` Richard Earnshaw
@ 2012-12-17 15:28   ` Kyrylo Tkachov
  0 siblings, 0 replies; 3+ messages in thread
From: Kyrylo Tkachov @ 2012-12-17 15:28 UTC (permalink / raw)
  To: Richard Earnshaw; +Cc: gcc-patches, Ramana Radhakrishnan

> -----Original Message-----
> From: Richard Earnshaw
> Sent: 17 December 2012 14:13
> To: Kyrylo Tkachov
> Cc: gcc-patches@gcc.gnu.org; Ramana Radhakrishnan
> Subject: Re: [PATCH][ARM][testsuite] Add testsuite options for AArch32
> NEON
> 
> On 11/12/12 12:30, Kyrylo Tkachov wrote:
> > Hi all,
> >
> > Since the new AArch32 NEON instructions in arm_neon.h are predicated
> on
> > __ARM_ARCH 8 the testsuite add_options procedure should also include
> > -march=armv8-a to make these instructions available.
> >
> > This makes the new vrnd* tests in gcc.target/arm/neon PASS in
> situations
> > where armv8-a is not the default target.
> > No regressions otherwise on arm-none-eabi.
> >
> > Ok for trunk?
> >
> 
> OK.

Thanks for the review, Richard. Committed as r194556.

> 
> Don't you need to do the same thing for add_options_for_arm_v8_vfp?

Shouldn't need that for the scalar v8 FP tests. The -march=armv8-a for the
NEON intrinsic tests is only needed because the intrinsics in arm_neon.h are
only available when __ARM_ARCH is >= 8.
The scalar floating point instructions only depend on the fpu and not the
architecture.

> 
> R.

Thanks,
Kyrill




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

end of thread, other threads:[~2012-12-17 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-11 12:31 [PATCH][ARM][testsuite] Add testsuite options for AArch32 NEON Kyrylo Tkachov
2012-12-17 14:12 ` Richard Earnshaw
2012-12-17 15:28   ` Kyrylo Tkachov

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).