29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using NEON Support<br />

// VMOV.32 d0[0],r0<br />

poly8x16_t vsetq_lane_p8(poly8_t value, poly8x16_t vec, __constrange(0,15) int lane);<br />

// VMOV.8 d0[0],r0<br />

poly16x8_t vsetq_lane_p16(poly16_t value, poly16x8_t vec, __constrange(0,7) int lane);<br />

// VMOV.16 d0[0],r0<br />

float32x4_t vsetq_lane_f32(float32_t value, float32x4_t vec, __constrange(0,3) int lane);<br />

// VMOV.32 d0[0],r0<br />

int64x1_t vset_lane_s64(int64_t value, int64x1_t vec, __constrange(0,0) int lane);<br />

// VMOV d0,r0,r0<br />

uint64x1_t vset_lane_u64(uint64_t value, uint64x1_t vec, __constrange(0,0) int lane);<br />

// VMOV d0,r0,r0<br />

int64x2_t vsetq_lane_s64(int64_t value, int64x2_t vec, __constrange(0,1) int lane);<br />

// VMOV d0,r0,r0<br />

uint64x2_t vsetq_lane_u64(uint64_t value, uint64x2_t vec, __constrange(0,1) int lane);<br />

// VMOV d0,r0,r0<br />

E.3.18<br />

Initialize a vector from bit pattern<br />

These intrinsics create a vector from a literal bit pattern.<br />

int8x8_t vcreate_s8(uint64_t a); // VMOV d0,r0,r0<br />

int16x4_t vcreate_s16(uint64_t a); // VMOV d0,r0,r0<br />

int32x2_t vcreate_s32(uint64_t a); // VMOV d0,r0,r0<br />

float32x2_t vcreate_f32(uint64_t a); // VMOV d0,r0,r0<br />

uint8x8_t vcreate_u8(uint64_t a); // VMOV d0,r0,r0<br />

uint16x4_t vcreate_u16(uint64_t a); // VMOV d0,r0,r0<br />

uint32x2_t vcreate_u32(uint64_t a); // VMOV d0,r0,r0<br />

uint64x1_t vcreate_u64(uint64_t a); // VMOV d0,r0,r0<br />

poly8x8_t vcreate_p8(uint64_t a); // VMOV d0,r0,r0<br />

poly16x4_t vcreate_p16(uint64_t a); // VMOV d0,r0,r0<br />

int64x1_t vcreate_s64(uint64_t a); // VMOV d0,r0,r0<br />

E.3.19<br />

Set all lanes to same value<br />

These intrinsics set all lanes to the same value.<br />

Set all lanes to the same value<br />

uint8x8_t vdup_n_u8(uint8_t value); // VDUP.8 d0,r0<br />

uint16x4_t vdup_n_u16(uint16_t value); // VDUP.16 d0,r0<br />

uint32x2_t vdup_n_u32(uint32_t value); // VDUP.32 d0,r0<br />

int8x8_t vdup_n_s8(int8_t value); // VDUP.8 d0,r0<br />

int16x4_t vdup_n_s16(int16_t value); // VDUP.16 d0,r0<br />

int32x2_t vdup_n_s32(int32_t value); // VDUP.32 d0,r0<br />

poly8x8_t vdup_n_p8(poly8_t value); // VDUP.8 d0,r0<br />

poly16x4_t vdup_n_p16(poly16_t value); // VDUP.16 d0,r0<br />

float32x2_t vdup_n_f32(float32_t value); // VDUP.32 d0,r0<br />

E-42 Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0348A<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!