aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/mvc1.c
blob: 8e02721c91e863ef34ead528a45a8a8eaf06c649 (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
/* { dg-do run { target i?86-*-* x86_64-*-* } } */

__attribute__((target_clones("avx","arch=slm","arch=core-avx2","default")))
int
foo ()
{
  return -2;
}

int
bar ()
{
  return 2;
}

int
main ()
{
  int r = 0;
  r += bar ();
  r += foo ();
  r += bar ();
  r += foo ();
  r += bar ();
  return r - 2;
}