2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mvc11.c
blob5bd10f4651d6cde7beaa9ef5c458495dba6e9ee0
1 /* { dg-do run } */
2 /* { dg-require-ifunc "" } */
3 /* { dg-options "-std=gnu99" } */
5 __attribute__((noipa)) int
6 baz (int (*fn) (void))
8 asm volatile ("" : "+g" (fn) : : "memory");
9 return fn ();
12 __attribute__((target_clones("arch=sandybridge", "default"))) static int
13 bar (void)
15 return 1;
18 __attribute__((target_clones("arch=sandybridge", "default"))) int
19 foo (void)
21 baz (bar) - 1;
24 int
25 main ()
27 foo ();