summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulq_f16.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulq_f16.c')
-rw-r--r--gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulq_f16.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulq_f16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulq_f16.c
new file mode 100644
index 00000000000..845dd82eacc
--- /dev/null
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulq_f16.c
@@ -0,0 +1,22 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
+/* { dg-add-options arm_v8_1m_mve_fp } */
+/* { dg-additional-options "-O2" } */
+
+#include "arm_mve.h"
+
+float16x8_t
+foo (float16x8_t a, float16x8_t b)
+{
+ return vmulq_f16 (a, b);
+}
+
+/* { dg-final { scan-assembler "vmul.f16" } } */
+
+float16x8_t
+foo1 (float16x8_t a, float16x8_t b)
+{
+ return vmulq (a, b);
+}
+
+/* { dg-final { scan-assembler "vmul.f16" } } */