Commit a0d3407e by Kaz Kojima

pr39228.c: Use dg-add-options instead of dg-options.

	* gcc.c-torture/execute/pr39228.c: Use dg-add-options instead
	of dg-options.  Add "inline" keyword to test functions.

From-SVN: r214872
parent 8d95fe25
2014-09-03 Kaz Kojima <kkojima@gcc.gnu.org>
* gcc.c-torture/execute/pr39228.c: Use dg-add-options instead
of dg-options. Add "inline" keyword to test functions.
2014-09-03 Marek Polacek <polacek@redhat.com>
PR c/62024
......
/* { dg-options "-mieee" { target sh*-*-* alpha*-*-* } } */
/* { dg-add-options ieee } */
/* { dg-skip-if "No Inf/NaN support" { spu-*-* } "*" "" } */
extern void abort (void);
static int __attribute__((always_inline)) testf (float b)
static inline int __attribute__((always_inline)) testf (float b)
{
float c = 1.01f * b;
return __builtin_isinff (c);
}
static int __attribute__((always_inline)) test (double b)
static inline int __attribute__((always_inline)) test (double b)
{
double c = 1.01 * b;
return __builtin_isinf (c);
}
static int __attribute__((always_inline)) testl (long double b)
static inline int __attribute__((always_inline)) testl (long double b)
{
long double c = 1.01L * b;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment