summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/asimd-mul-to-shl-sub.c
blob: d7c5e5f341b2c56e9c2853859b786e1fe524eb59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */
/* { dg-options "-Ofast" } */

/*
**foo:
**	shl	v1.4s, v0.4s, 16
**	sub	v0.4s, v1.4s, v0.4s
**	ret
*/
#include <arm_neon.h>
uint32x4_t foo (uint32x4_t a)
{
  return a * 65535;
}

/* { dg-final { check-function-bodies "**" "" "" } } */