Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr57756.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mno-sse3" } */
3
4 /* callee cannot be inlined into caller because it has a higher target ISA. */
5 __attribute__((always_inline,target("sse4.2")))
6 __inline int callee () /* { dg-error "inlining failed in call to 'always_inline'" } */
7 {
8 return 0;
9 }
10
11 __attribute__((target("sse")))
12 static __inline int caller ()
13 {
14 return callee(); /* { dg-message "called from here" } */
15 }
16
17 int main ()
18 {
19 return caller();
20 }