mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 08:24:12 +00:00
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
This commit is contained in:
parent
0279eb85ba
commit
6d61f07749
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user