Commit 6268a9a8 by Rask Ingemann Lambertsen Committed by Rask Ingemann Lambertsen

simd-4.c (__ev_convert_s64)(main): Use int32_t for 32-bit integer.

	* gcc.c-torture/execute/simd-4.c (__ev_convert_s64)(main): Use
	  int32_t for 32-bit integer. Use int64_t for 64-bit integer.

From-SVN: r127267
parent 8ba30cde
2007-08-07 Rask Ingemann Lambertsen <rask@sygehus.dk>
* gcc.c-torture/execute/simd-4.c (__ev_convert_s64)(main): Use
int32_t for 32-bit integer. Use int64_t for 64-bit integer.
2007-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
* g++.dg/torture/type-generic-1.C: Add -mieee for sh.
typedef int __attribute__((vector_size(8))) v2si;
long long s64;
#include <stdint.h>
typedef int32_t __attribute__((vector_size(8))) v2si;
int64_t s64;
static inline long long
static inline int64_t
__ev_convert_s64 (v2si a)
{
return (long long) a;
return (int64_t) a;
}
int main()
{
union { long long ll; int i[2]; } endianness_test;
union { int64_t ll; int32_t i[2]; } endianness_test;
endianness_test.ll = 1;
int little_endian = endianness_test.i[0];
int32_t little_endian = endianness_test.i[0];
s64 = __ev_convert_s64 ((v2si){1,0xffffffff});
if (s64 != (little_endian ? 0xffffffff00000001LL : 0x1ffffffffLL))
abort ();
......
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