Hi,
This patch fixes vfmaq_lane_f64 () AdvSIMD intrinsic.
Regression-tested on aarch64-none-elf. OK for aarch64-branch?
Thanks,
Tejas Belagod.
ARM.
Changelog:
2012-09-10 Tejas Belagod <tejas.bela...@arm.com>
gcc/
* config/aarch64/arm_neon.h (vfmaq_lane_f64): Fix prototype and
assembler template accordingly.
diff --git a/gcc/config/aarch64/arm_neon.h b/gcc/config/aarch64/arm_neon.h
index de3a2f2..54eb29c 100644
--- a/gcc/config/aarch64/arm_neon.h
+++ b/gcc/config/aarch64/arm_neon.h
@@ -7859,15 +7859,16 @@ vfmaq_f64 (float64x2_t a, float64x2_t b, float64x2_t c)
result; \
})
-#define vfmaq_lane_f64(a, b, c) \
+#define vfmaq_lane_f64(a, b, c, d) \
__extension__ \
({ \
+ float64x2_t c_ = (c); \
float64x2_t b_ = (b); \
float64x2_t a_ = (a); \
float64x2_t result; \
- __asm__ ("fmla %0.2d,%1.2d,%2.d[%3]" \
+ __asm__ ("fmla %0.2d,%2.2d,%3.d[%4]" \
: "=w"(result) \
- : "w"(a_), "w"(b_), "i"(c) \
+ : "0"(a_), "w"(b_), "w"(c_), "i"(d) \
: /* No clobbers */); \
result; \
})