[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr111380-2.c
blob7b363940643b039925e311a20d8b803f723cadb6
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-options "-O2 -mno-vsx" } */
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 ("vsx")))
16 int main ()
18 foo (); /* { dg-message "called from here" } */
19 c = a + b;