This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix gcc.target/i386/sse5-*.c use of intN_t types
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 11 Sep 2008 00:52:34 +0000 (UTC)
- Subject: Fix gcc.target/i386/sse5-*.c use of intN_t types
The tests gcc.target/i386/sse5-haddX.c and gcc.target/i386/sse5-hsubX.c
use some intN_t types, apparently assuming that the included headers
(which do not include <stdint.h>) define those types. They do not define
those types on MinGW at least. Since these types are used locally in a
single union in each test, this patch just replaces them by appropriate
definitions that do not rely on what a system header defines. OK to
commit?
2008-09-11 Joseph Myers <joseph@codesourcery.com>
* gcc.target/i386/sse5-haddX.c, gcc.target/i386/sse5-hsubX.c:
Avoid intN_t types.
Index: gcc.target/i386/sse5-haddX.c
===================================================================
--- gcc.target/i386/sse5-haddX.c (revision 140170)
+++ gcc.target/i386/sse5-haddX.c (working copy)
@@ -12,10 +12,10 @@
union
{
__m128i x[NUM];
- int8_t ssi[NUM * 16];
- int16_t si[NUM * 8];
- int32_t li[NUM * 4];
- int64_t lli[NUM * 2];
+ signed char ssi[NUM * 16];
+ short si[NUM * 8];
+ int li[NUM * 4];
+ long long lli[NUM * 2];
} dst, res, src1;
static void
Index: gcc.target/i386/sse5-hsubX.c
===================================================================
--- gcc.target/i386/sse5-hsubX.c (revision 140170)
+++ gcc.target/i386/sse5-hsubX.c (working copy)
@@ -12,10 +12,10 @@
union
{
__m128i x[NUM];
- int8_t ssi[NUM * 16];
- int16_t si[NUM * 8];
- int32_t li[NUM * 4];
- int64_t lli[NUM * 2];
+ signed char ssi[NUM * 16];
+ short si[NUM * 8];
+ int li[NUM * 4];
+ long long lli[NUM * 2];
} dst, res, src1;
static void
--
Joseph S. Myers
joseph@codesourcery.com