* gcc.c-torture/execute/simd-4.c (main): Make expected value
endian-dependent.
From-SVN: r68194
+2003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
+
+ * gcc.c-torture/execute/simd-4.c (main): Make expected value
+ endian-dependent.
+
2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
* lib/g++.exp (g++_include_flags): Tweak path to testsuite_flags.
int main()
{
+ union { long long ll; int i[2] } endianness_test;
+ endianness_test.ll = 1;
+ int little_endian = endianness_test.i[0];
s64 = __ev_convert_s64 ((v2si){1,0xffffffff});
- if (s64 != 0x1ffffffffLL)
+ if (s64 != (little_endian ? 0xffffffff00000001LL : 0x1ffffffffLL))
abort ();
return 0;
}