Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/pr114567.c

raw
1 /* { dg-options "-O2 -mabi=ibmlongdouble -Wno-psabi" } */
2 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
3 /* { dg-require-effective-target powerpc_vsx } */
4 /* { dg-require-effective-target float128 } */
5
6 /* Verify there is no lxv.*x? and mfvsrd (vector load and move). */
7
8 int
9 sbm (_Float128 *a)
10 {
11 return __builtin_signbit (*a);
12 }
13
14 /* { dg-final { scan-assembler-times {\ml(d|wz)\M} 1 } } */
15 /* { dg-final { scan-assembler-not {\mlxv\M} } } */
16 /* { dg-final { scan-assembler-not {\mlxvd2x\M} } } */
17 /* { dg-final { scan-assembler-not {\mmfvsrd\M} } } */