[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr111380-1.c
blob57ae75ef73a7700ec3fe321ea31e458b55585b34
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-options "-O2 -mdejagnu-cpu=power9" } */
5 /* Verify it emits error message on inlining even without LTO. */
7 vector int c, a, b;
9 static inline void __attribute__ ((__always_inline__))
10 foo () /* { dg-error "inlining failed in call to .* target specific option mismatch" } */
12 c = a + b;
15 __attribute__ ((target ("cpu=power8")))
16 int main ()
18 foo (); /* { dg-message "called from here" } */
19 c = a + b;