aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_vector_float2.c
blob: 02653f08359176a245234448e1273fe106e324e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=hard -mthumb --save-temps" } */

#include "arm_mve.h"

float32x4_t
foo32 ()
{
  float32x4_t b = {10.0, 12.0, 14.0, 16.0};
  return b;
}

/* { dg-final { scan-assembler "vmov\\tq\[0-7\], q\[0-7\]"  }  } */
/* { dg-final { scan-assembler "vstrb.*" }  } */
/* { dg-final { scan-assembler "vldr.64*" }  } */

float16x8_t
foo16 ()
{
  float16x8_t b = {32.01};
  return b;
}

/* { dg-final { scan-assembler "vmov\\tq\[0-7\], q\[0-7\]"  }  } */
/* { dg-final { scan-assembler "vstrb.*" }  } */
/* { dg-final { scan-assembler "vldr.64.*" }  } */