PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx-inline.c
blob05df95e0524c1c08fa30a6a512ca46e87921f9b7
1 /* Check if avx target functions can inline lower target functions. */
2 /* { dg-do compile } */
3 /* { dg-options "-O0 -mno-avx -mno-sse3" } */
5 __attribute__((always_inline,target("sse3")))
6 inline int callee ()
8 return 0;
11 __attribute__((target("avx")))
12 inline int caller ()
14 return callee ();
17 int main ()
19 return caller ();