[AArch64] Implement vset_lane intrinsics in C

James Greenhalgh james.greenhalgh@arm.com
Fri Sep 13 18:40:00 GMT 2013


Hi,

The vset<q>_lane_<fpsu><8,16,32,64> intrinsics are currently
written useing assembler, but can be easily expressed
in C.

As I expect we will want to efficiently compose these intrinsics
I've added them as macros, just as was done with the vget_lane
intrinsics.

Regression tested for aarch64-none-elf and a new testcase
added to ensure these intrinsics generate the expected
instruction.

OK?

Thanks,
James

---
gcc/

2013-09-13  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/aarch64/arm_neon.h
	(__aarch64_vset_lane_any): New.
	(__aarch64_vset<q>_lane_<fpsu><8,16,32,64>): Likewise.
	(vset<q>_lane_<fpsu><8,16,32,64>): Use new macros.

gcc/testsuite

2013-09-13  James Greenhalgh  <james.greenhalgh@arm.com>

	* gcc.target/aarch64/vect_set_lane_1.c: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AArch64-Implement-vset_lane-intrinsics-in-C.patch
Type: text/x-patch
Size: 32544 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130913/18cdcb77/attachment.bin>


More information about the Gcc-patches mailing list