]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/arm/mve/intrinsics/vldrhq_gather_shifted_offset_f16.c
[ARM][GCC][6/5x]: Remaining MVE load intrinsics which loads half word and word or...
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / arm / mve / intrinsics / vldrhq_gather_shifted_offset_f16.c
1 /* { dg-do compile } */
2 /* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=hard -O2" } */
3 /* { dg-skip-if "Skip if not auto" {*-*-*} {"-mfpu=*"} {"-mfpu=auto"} } */
4
5 #include "arm_mve.h"
6
7 float16x8_t
8 foo (float16_t const * base, uint16x8_t offset)
9 {
10 return vldrhq_gather_shifted_offset_f16 (base, offset);
11 }
12
13 /* { dg-final { scan-assembler "vldrh.f16" } } */
14
15 float16x8_t
16 foo1 (float16_t const * base, uint16x8_t offset)
17 {
18 return vldrhq_gather_shifted_offset (base, offset);
19 }
20
21 /* { dg-final { scan-assembler "vldrh.f16" } } */