aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/pr115258.c
blob: 9a489d4604c0472d4178ecdd268052d712e31bb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-options "-O2" } */
/* { dg-final { check-function-bodies "**" "" "" } } */

/*
** fun:
**	(ldr|adrp)	[^\n]+
**	(ldr|adrp)	[^\n]+
**	(ldr|adrp)	[^\n]+
**	(ldr|adrp)	[^\n]+
**	tbl	v[0-9]+.16b, {v[0-9]+.16b - v[0-9]+.16b}, v[0-9]+.16b
**	str	[^\n]+
**	ret
*/
typedef int veci __attribute__ ((vector_size (4 * sizeof (int))));
void fun (veci *a, veci *b, veci *c) {
  *c = __builtin_shufflevector (*a, *b, 0, 5, 2, 7);
}

/* { dg-final { scan-assembler-not {\teor\t} } } */