llvm.org GIT mirror llvm / 6d61f07
Fix unittest for buildbot with mips host (32bit big endian) from r295174 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295188 91177308-0d34-0410-b5e6-96231b3b80d8 David Bozier 3 years ago
1 changed file(s) with 4 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
2525
2626 char const *Expected;
2727
28 if (llvm::sys::IsLittleEndianHost) {
29 Expected = sizeof Data.p == sizeof(uint64_t)
28 if (sizeof Data.p == sizeof(uint64_t)) {
29 Expected = llvm::sys::IsLittleEndianHost
3030 ? "(0xffffeeee0000 (0xeeee0000, 0x0000ffff))"
31 : "(0xeeee0000 (0xeeee0000, 0x0000ffff))";
31 : "(0xeeee00000000ffff (0xeeee0000, 0x0000ffff))";
3232 }
3333 else {
34 Expected = sizeof Data.p == sizeof(uint64_t)
35 ? "(0xeeee00000000ffff (0xeeee0000, 0x0000ffff))"
36 : "(0x0000ffff (0xeeee0000, 0x0000ffff))";
34 Expected = "(0xeeee0000 (0xeeee0000, 0x0000ffff))";
3735 }
3836
3937 OS << Data;