1 /* { dg-do run { target { powerpc*-*-* } } } */
2 /* { dg-require-effective-target p9vector_hw } */
3 /* { dg-options "-mdejagnu-cpu=power9" } */
16 0x20 Test for +Infinity
17 0x10 Test for -Infinity
20 0x02 Test for +Denormal
21 0x01 Test for -Denormal
23 return scalar_test_data_class (source
, 12);
29 /* A Zero value has a biased exponent value of zero and a zero
30 * fraction value. The sign may be either positive or negative. */
31 unsigned int zero_plus_image
= 0x0;
32 unsigned int zero_minus_image
= 0x80000000;
33 unsigned int non_zero_image
= 0x60000000;
35 float *zero_plus_p
= (float *) &zero_plus_image
;
36 float *zero_minus_p
= (float *) &zero_minus_image
;
37 float *not_zero_p
= (float *) &non_zero_image
;
39 if (!test_zero (zero_plus_p
))
41 if (!test_zero (zero_minus_p
))
43 if (test_zero (not_zero_p
))