From: James Greenhalgh <james.greenhalgh@arm.com>
To: Matthew Wahab <matthew.wahab@foss.arm.com>
Cc: gcc-patches@gcc.gnu.org, Richard Earnshaw <rearnsha@arm.com>,
Marcus Shawcroft <marsha01@arm.com>
Subject: Re: [AArch64][PATCH 4/7] Add ACLE feature macro for ARMv8.1,Adv.SIMD instructions.
Date: Tue, 17 Nov 2015 13:21:00 -0000 [thread overview]
Message-ID: <20151117132100.GC6727@arm.com> (raw)
In-Reply-To: <20151027113320.GE6912@arm.com>
On Tue, Oct 27, 2015 at 11:33:21AM +0000, James Greenhalgh wrote:
> On Fri, Oct 23, 2015 at 01:22:16PM +0100, Matthew Wahab wrote:
> > The ARMv8.1 architecture extension adds two Adv.SIMD instructions,
> > sqrdmlah and sqrdmlsh. This patch adds the feature macro
> > __ARM_FEATURE_QRDMX to indicate the presence of these instructions,
> > generating it when the feature is available, as it is when
> > -march=armv8.1-a is selected.
> >
> > Tested the series for aarch64-none-linux-gnu with native bootstrap and
> > make check on an ARMv8 architecture. Also tested aarch64-none-elf with
> > cross-compiled check-gcc on an ARMv8.1 emulator.
> >
> > Ok for trunk?
> > Matthew
>
> I don't see this macro documented in the versions of ACLE available from
> the ARM documentation sites, and googling doesn't show anything other
> than your patches. You don't explicitly mention anywhere in cover text for
> this series where these new features are (or will be?) documented.
>
> Could you please write a more complete description of where these new
> macros and intrinsics come from and what they are intended to do? I would
> not like to accept them without some confidence that these names have
> been finalized, and I am nervous about having the best description of the
> behaviour of them be the GCC source code.
This macro and the intrinsics included in this patch set are as they will
appear in a future release of ACLE.
__ARM_FEATURE_QRDMX will be defined to 1 if the SQRDMLAH and SQRDMLSH
instructions are available.
The intrinsics added take this form for the non-lane intrinsics:
int16x4_t vqrdmlah_s16 (int16x4_t a, int16x4_t b, int16x4_t c)
a -> Vd.4H, b -> Vn.4H, c-> Vm.4h
VQRDMLAH Vd.4H,Vn.4H,Vm.4H
Vd.4H -> result
And this form for the lane intrinsics:
int16x4_t vqrdmlah_lane_s16 (int16x4_t a, int16x4_t b,
int16x4_t v, const int lane)
a -> Vd.4H, b -> Vn.4H, v -> Vm.4h, 0 <= lane <= 3
VQRDMLAH Vd.4H,Vn.4H,Vm.H[lane]
Vd.4H -> result
Using the same syntax as is in the ARM Neon Intrinsics Reference [1].
These intrinsics are only available when __ARM_FEATURE_QRDMX is defined.
With all that said...
This patch is OK, but please fix the ChangeLog entry:
> > * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
> > ARM_FEATURE_QRDMX.
s/ARM_FEATURE_QRDMX/__ARM_FEATURE_QRDMX/
Thanks,
James
---
[1]: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0073a/IHI0073A_arm_neon_intrinsics_ref.pdf
next prev parent reply other threads:[~2015-11-17 13:21 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 12:19 [AArch64][PATCH 1/7] Add support for ARMv8.1 Adv.SIMD,instructions Matthew Wahab
2015-10-23 12:19 ` [AArch64][PATCH 2/7] Add sqrdmah, sqrdmsh instructions Matthew Wahab
2015-10-27 11:19 ` James Greenhalgh
2015-10-27 16:12 ` Matthew Wahab
2015-10-27 16:30 ` James Greenhalgh
2015-10-23 12:21 ` [AArch64][PATCH 3/7] Add builtins for ARMv8.1 Adv.SIMD,instructions Matthew Wahab
2015-10-27 11:20 ` James Greenhalgh
2015-10-23 12:24 ` [AArch64][dejagnu][PATCH 5/7] Dejagnu support for ARMv8.1 Adv.SIMD Matthew Wahab
2015-10-24 8:04 ` Bernhard Reutner-Fischer
2015-10-27 15:32 ` Matthew Wahab
2015-11-23 12:34 ` James Greenhalgh
2015-11-23 16:40 ` Matthew Wahab
2015-11-25 10:14 ` Matthew Wahab
2015-11-25 10:57 ` James Greenhalgh
2015-10-23 12:24 ` [AArch64][PATCH 4/7] Add ACLE feature macro for ARMv8.1,Adv.SIMD instructions Matthew Wahab
2015-10-27 11:36 ` James Greenhalgh
2015-11-17 13:21 ` James Greenhalgh [this message]
2015-10-23 12:30 ` [AArch64][PATCH 6/7] Add NEON intrinsics vqrdmlah and vqrdmlsh Matthew Wahab
2015-10-30 12:53 ` Christophe Lyon
2015-10-30 15:56 ` Matthew Wahab
2015-11-09 13:31 ` Christophe Lyon
2015-11-09 13:53 ` Matthew Wahab
2015-11-23 13:37 ` James Greenhalgh
2015-11-25 10:15 ` Matthew Wahab
2015-11-25 10:58 ` James Greenhalgh
2015-10-23 12:34 ` [AArch64][PATCH 7/7] Add NEON intrinsics vqrdmlah_lane and vqrdmlsh_lane Matthew Wahab
2015-11-23 13:45 ` James Greenhalgh
2015-11-25 10:25 ` Matthew Wahab
2015-11-25 11:11 ` James Greenhalgh
2015-10-27 10:54 ` [AArch64][PATCH 1/7] Add support for ARMv8.1 Adv.SIMD,instructions James Greenhalgh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151117132100.GC6727@arm.com \
--to=james.greenhalgh@arm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=marsha01@arm.com \
--cc=matthew.wahab@foss.arm.com \
--cc=rearnsha@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).