repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
avx-inline.c
blob
05df95e0524c1c08fa30a6a512ca46e87921f9b7
1
/* Check if avx target functions can inline lower target functions. */
2
/* { dg-do compile } */
3
/* { dg-options "-O0 -mno-avx -mno-sse3" } */
4
5
__attribute__
((
always_inline
,
target
(
"sse3"
)))
6
inline
int
callee
()
7
{
8
return
0
;
9
}
10
11
__attribute__
((
target
(
"avx"
)))
12
inline
int
caller
()
13
{
14
return
callee
();
15
}
16
17
int
main
()
18
{
19
return
caller
();
20
}