Fixing unittests on 32-bit Darwin, using 0x...ULL instead of 0x...U .

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76904 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Kleckner 2009-07-23 22:27:18 +00:00
parent 10b4fc552f
commit 535c9c3c9d

View File

@ -187,11 +187,11 @@ TEST(JITMemoryManagerTest, TestSmallGlobalInts) {
EXPECT_EQ(0xffffffffU, *c); EXPECT_EQ(0xffffffffU, *c);
EXPECT_EQ(0U, *d); EXPECT_EQ(0U, *d);
*c = 0U; *c = 0U;
*d = 0xffffffffffffffffU; *d = 0xffffffffffffffffULL;
EXPECT_EQ(0U, *a); EXPECT_EQ(0U, *a);
EXPECT_EQ(0U, *b); EXPECT_EQ(0U, *b);
EXPECT_EQ(0U, *c); EXPECT_EQ(0U, *c);
EXPECT_EQ(0xffffffffffffffffU, *d); EXPECT_EQ(0xffffffffffffffffULL, *d);
// Make sure we didn't allocate any extra slabs for this tiny amount of data. // Make sure we didn't allocate any extra slabs for this tiny amount of data.
EXPECT_EQ(1U, MemMgr->GetNumDataSlabs()); EXPECT_EQ(1U, MemMgr->GetNumDataSlabs());
@ -217,11 +217,11 @@ TEST(JITMemoryManagerTest, TestLargeGlobalArray) {
memset(a, 0x1, 8); memset(a, 0x1, 8);
memset(g, 0x2, Size); memset(g, 0x2, Size);
memset(b, 0x3, 8); memset(b, 0x3, 8);
EXPECT_EQ(0x0101010101010101U, *a); EXPECT_EQ(0x0101010101010101ULL, *a);
// Just check the edges. // Just check the edges.
EXPECT_EQ(0x02U, g[0]); EXPECT_EQ(0x02U, g[0]);
EXPECT_EQ(0x02U, g[Size - 1]); EXPECT_EQ(0x02U, g[Size - 1]);
EXPECT_EQ(0x0303030303030303U, *b); EXPECT_EQ(0x0303030303030303ULL, *b);
// Check the number of slabs. // Check the number of slabs.
EXPECT_EQ(2U, MemMgr->GetNumDataSlabs()); EXPECT_EQ(2U, MemMgr->GetNumDataSlabs());