Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/fold-vec-div-float.c

raw
1 /* Verify that overloaded built-ins for vec_div with float
2 inputs produce the right results. */
3
4 /* { dg-do compile } */
5 /* { dg-options "-mvsx" } */
6 /* { dg-require-effective-target powerpc_vsx } */
7
8 #include <altivec.h>
9
10 vector float
11 test1 (vector float x, vector float y)
12 {
13 return vec_div (x, y);
14 }
15
16 /* { dg-final { scan-assembler-times {\mxvdivsp\M} 1 } } */