summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mvc4.c
blob: 91293c34ccaf12a37803b609867a0f8260a04a6b (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
/* { dg-do run } */
/* { dg-require-ifunc "" } */

__attribute__((target_clones("default","avx","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;
}