Patchwork [AArch64] Implement vmovq_n_f64.

login
register
mail settings
Submitter Tejas Belagod
Date Sept. 10, 2012, 3:20 p.m.
Message ID <504E0529.2060209@arm.com>
Download mbox | patch
Permalink /patch/182909/
State New
Headers show

Comments

Tejas Belagod - Sept. 10, 2012, 3:20 p.m.
Hi,

This patch adds the missing intrinsic vmovq_n_f64(). OK?

Thanks,
Tejas Belagod
ARM.

Changelog:

2012-09-10  Tejas Belagod  <tejas.belagod@arm.com>

gcc/
         * config/aarch64/arm_neon.h (vmovq_n_f64): Add.
Marcus Shawcroft - Sept. 25, 2012, 6:09 p.m.
On 10/09/12 16:20, Tejas Belagod wrote:
> 2012-09-10  Tejas Belagod<tejas.belagod@arm.com>
>
> gcc/
>           * config/aarch64/arm_neon.h (vmovq_n_f64): Add.

Committed to aarch64-branch and aarch64-4.7-branch.
/Marcus

Patch

diff --git a/gcc/config/aarch64/arm_neon.h b/gcc/config/aarch64/arm_neon.h
index e7dadf9..cf8b676 100644
--- a/gcc/config/aarch64/arm_neon.h
+++ b/gcc/config/aarch64/arm_neon.h
@@ -11753,6 +11753,12 @@  vmovq_n_f32 (float32_t a)
   return result;
 }
 
+__extension__ static __inline float64x2_t __attribute__ ((__always_inline__))
+vmovq_n_f64 (float64_t a)
+{
+  return (float64x2_t) {a, a};
+}
+
 __extension__ static __inline poly8x16_t __attribute__ ((__always_inline__))
 vmovq_n_p8 (uint32_t a)
 {