This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 5/5][testsuite] Use stdint.h when needing int of exact size


On 7/24/07, Rask Ingemann Lambertsen <rask@sygehus.dk> wrote:
   These testcases all rely on very specific integer sizes to pass. The
vector tests assume the vectors have exactly four elements and simd-4.c
additionally needs integers of exactly 32 bits and 64 bits. pr27743.c relies
on sign extension of bit 31, so a signed 32-bit integer is required. This
patch uses types from stdint.h to make sure that these requirements are
met, also on targets where int gives you only 16 bits.

Ok for trunk?

:ADDPATCH testsuite:

2007-07-24 Rask Ingemann Lambertsen <rask@sygehus.dk>

        * gcc.dg/torture/pr27743.c (bar): Use an integer of exactly 32 bits
        where required.
        * gcc.c-torture/execute/simd-1.c: Likewise.
        * gcc.c-torture/execute/pr23135.c: Likewise.
        * gcc.c-torture/execute/simd-4.c (__ev_convert_s64)(main): Likewise.
        Use an integer of exactly 64 bits where required.

Why did you change the simd ones from using SImode?


Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]