blob: bdba76dd5c0220cd54ac71c24b838bac56175601 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power5" } } */
/* Is desirable to require-effective-target to be p5_ok, but there's
no such effective target, so we're just assuming that the effective
target is at minimum power5 ok. This test will fail if the
effective target is not power 5 ok, but there is no dg directive to
"unsupport" this test on such a platform. */
/* dfp_hw represents power 6 */
/* kelvin is just tinkering here. dejagnu seems to be ignoring my
* Power-specific dfp_hw selector. Maybe it will do better with this
* target-independent selector, which appears to be "equivalent",
*/
/* { dg-skip-if "" { hard_dfp } } */
/* { dg-skip-if "" { dfp_hw } } */
/* { dg-skip-if "" { powerpc*-*-aix* } } */
/* { dg-options "-mcpu=power5" } */
/* This test should succeed on both 32- and 64-bit configurations. */
/* Though the command line specifies power5 target, this function is
to support power6. Expect an error message here because this target
does not support power6. */
__attribute__((target("cpu=power6")))
/* fabs/fnabs/fsel */
double normal1 (double a, double b)
{ /* { dg-warning "lacks power9 support" } */
return __builtin_copysign (a, b); /* { dg-warning "implicit declaration" } */
}
|