1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Fix unittest for buildbot with mips host (32bit big endian) from r295174

llvm-svn: 295188
This commit is contained in:
David Bozier 2017-02-15 16:03:22 +00:00
parent e262bb4f6a
commit 68899b4bb1

View File

@ -26,15 +26,13 @@ TEST(Object, DataRefImplOstream) {
char const *Expected;
if (llvm::sys::IsLittleEndianHost) {
Expected = sizeof Data.p == sizeof(uint64_t)
if (sizeof Data.p == sizeof(uint64_t)) {
Expected = llvm::sys::IsLittleEndianHost
? "(0xffffeeee0000 (0xeeee0000, 0x0000ffff))"
: "(0xeeee0000 (0xeeee0000, 0x0000ffff))";
: "(0xeeee00000000ffff (0xeeee0000, 0x0000ffff))";
}
else {
Expected = sizeof Data.p == sizeof(uint64_t)
? "(0xeeee00000000ffff (0xeeee0000, 0x0000ffff))"
: "(0x0000ffff (0xeeee0000, 0x0000ffff))";
Expected = "(0xeeee0000 (0xeeee0000, 0x0000ffff))";
}
OS << Data;