2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / simd-4.c
blob0d4481f7cef302239fb8ef1d526af45932e1a577
1 typedef int __attribute__((vector_size(8))) v2si;
2 long long s64;
4 static inline long long
5 __ev_convert_s64 (v2si a)
7 return (long long) a;
10 int main()
12 union { long long ll; int i[2]; } endianness_test;
13 endianness_test.ll = 1;
14 int little_endian = endianness_test.i[0];
15 s64 = __ev_convert_s64 ((v2si){1,0xffffffff});
16 if (s64 != (little_endian ? 0xffffffff00000001LL : 0x1ffffffffLL))
17 abort ();
18 return 0;