summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr68674.c
blob: 0b3237458fe9a5b15f30f634aa270a6255073a07 (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
28
/* PR target/68674 */
/* { dg-do compile } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-require-effective-target arm_fp_ok } */
/* { dg-options "-O2" } */
/* { dg-add-options arm_fp } */

#pragma GCC target ("fpu=vfp")

#include <arm_neon.h>

int8x8_t a;
extern int8x8_t b;
int16x8_t e;

void __attribute__((target("fpu=neon")))
foo1(void)
{
  e = (int16x8_t) vaddl_s8(a, b);
}

int8x8_t __attribute__((target("fpu=neon")))
foo2(void)
{
  return b;
}