Commit 254d52a9 by J"orn Rennecke Committed by Joern Rennecke

simd-4.c (main): Make expected value endian-dependent.

	* gcc.c-torture/execute/simd-4.c (main): Make expected value
	endian-dependent.

From-SVN: r68194
parent e295f317
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.
......
......@@ -9,8 +9,11 @@ __ev_convert_s64 (v2si a)
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;
}
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