Commit 549fd9e4 by Jan Beulich Committed by Jan Beulich

avx-vtestpd-1.c: Add -DNEED_IEEE754_DOUBLE.

2009-07-28  Jan Beulich  <jbeulich@novell.com>

	* gcc.target/i386/avx-vtestpd-1.c: Add -DNEED_IEEE754_DOUBLE.
	* gcc.target/i386/avx-vtestpd-2.c: Likewise.
	* gcc.target/i386/avx-vtestpd-256-1.c: Likewise.
	* gcc.target/i386/avx-vtestpd-256-2.c: Likewise.
	* gcc.target/i386/avx-vtestpd-256-3.c: Likewise.
	* gcc.target/i386/avx-vtestpd-3.c: Likewise.
	* gcc.target/i386/avx-vtestps-1.c: Add -DNEED_IEEE754_FLOAT.
	* gcc.target/i386/avx-vtestps-2.c: Likewise.
	* gcc.target/i386/avx-vtestps-256-1.c: Likewise.
	* gcc.target/i386/avx-vtestps-256-2.c: Likewise.
	* gcc.target/i386/avx-vtestps-256-3.c: Likewise.
	* gcc.target/i386/avx-vtestps-3.c: Likewise.
	* gcc.target/i386/m128-check.h (union ieee754_float):  Put into
	#ifdef NEED_IEEE754_FLOAT conditional.
	(union ieee754_double):  Put into #ifdef NEED_IEEE754_DOUBLE
	conditional.

From-SVN: r150142
parent e561703d
2009-07-28 Jan Beulich <jbeulich@novell.com>
* gcc.target/i386/avx-vtestpd-1.c: Add -DNEED_IEEE754_DOUBLE.
* gcc.target/i386/avx-vtestpd-2.c: Likewise.
* gcc.target/i386/avx-vtestpd-256-1.c: Likewise.
* gcc.target/i386/avx-vtestpd-256-2.c: Likewise.
* gcc.target/i386/avx-vtestpd-256-3.c: Likewise.
* gcc.target/i386/avx-vtestpd-3.c: Likewise.
* gcc.target/i386/avx-vtestps-1.c: Add -DNEED_IEEE754_FLOAT.
* gcc.target/i386/avx-vtestps-2.c: Likewise.
* gcc.target/i386/avx-vtestps-256-1.c: Likewise.
* gcc.target/i386/avx-vtestps-256-2.c: Likewise.
* gcc.target/i386/avx-vtestps-256-3.c: Likewise.
* gcc.target/i386/avx-vtestps-3.c: Likewise.
* gcc.target/i386/m128-check.h (union ieee754_float): Put into
#ifdef NEED_IEEE754_FLOAT conditional.
(union ieee754_double): Put into #ifdef NEED_IEEE754_DOUBLE
conditional.
2009-07-28 Jan Beulich <jbeulich@novell.com>
* g++.dg/ext/bitfield2.C: Add -mno-ms-bitfields for
i?86-*-netware.
* g++.dg/ext/bitfield3.C: Likewise.
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_DOUBLE" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 164 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_DOUBLE" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 164 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_DOUBLE" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 164 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_DOUBLE" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 164 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_DOUBLE" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 164 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_DOUBLE" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 164 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_FLOAT" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 150 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_FLOAT" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 150 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_FLOAT" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 150 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_FLOAT" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 150 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_FLOAT" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 150 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
/* { dg-options "-O2 -mavx -DNEED_IEEE754_FLOAT" } */
/* { dg-warning "attribute ignored" "" { target default_packed } 150 } */
/* { dg-message " from " "include chain" { target default_packed } 0 } */
#include "avx-check.h"
......
......@@ -138,6 +138,7 @@ checkV##ARRAY (const TYPE *v, const TYPE *e, int n) \
CHECK_FP_ARRAY (d, double, ESP_DOUBLE, "%f")
CHECK_FP_ARRAY (f, float, ESP_FLOAT, "%f")
#ifdef NEED_IEEE754_FLOAT
union ieee754_float
{
float d;
......@@ -148,7 +149,9 @@ union ieee754_float
unsigned sign : 1;
} bits __attribute__((packed));
};
#endif
#ifdef NEED_IEEE754_DOUBLE
union ieee754_double
{
double d;
......@@ -160,3 +163,4 @@ union ieee754_double
unsigned sign : 1;
} bits __attribute__((packed));
};
#endif
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