diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-19 12:57:34 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-19 12:57:34 +0000 |
commit | 10abe56a43e0f0905404af3900dd268c37dff2eb (patch) | |
tree | 129e1841a040fd45d652242126a0a3f35720d744 /gcc/testsuite/gcc.c-torture/execute/simd-4.c | |
parent | bc233f0cbf2463024900ad0df5be174d5708e492 (diff) | |
download | gcc-10abe56a43e0f0905404af3900dd268c37dff2eb.tar.gz |
* gcc.c-torture/execute/simd-4.c (main): Make expected value
endian-dependent.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68194 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/simd-4.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/simd-4.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/simd-4.c b/gcc/testsuite/gcc.c-torture/execute/simd-4.c index c8ddb534603..3907375ea7e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/simd-4.c +++ b/gcc/testsuite/gcc.c-torture/execute/simd-4.c @@ -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; } |