gem5  v21.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
addr_range.test.cc File Reference
#include <gtest/gtest.h>
#include <cmath>
#include "base/addr_range.hh"
#include "base/bitfield.hh"

Go to the source code of this file.

Functions

 TEST (AddrRangeTest, ValidRange)
 
 TEST (AddrRangeTest, EmptyRange)
 
 TEST (AddrRangeTest, RangeSizeOfOne)
 
 TEST (AddrRangeTest, Range16Bit)
 
 TEST (AddrRangeTest, InvalidRange)
 
 TEST (AddrRangeTest, LessThan)
 
 TEST (AddrRangeTest, EqualToNotEqualTo)
 
 TEST (AddrRangeTest, MergesWith)
 
 TEST (AddrRangeTest, DoesNotMergeWith)
 
 TEST (AddrRangeTest, IntersectsCompleteOverlap)
 
 TEST (AddrRangeTest, IntersectsAddressWithin)
 
 TEST (AddrRangeTest, IntersectsPartialOverlap)
 
 TEST (AddrRangeTest, IntersectsNoOverlap)
 
 TEST (AddrRangeTest, IntersectsFirstLastAddressOverlap)
 
 TEST (AddrRangeTest, isSubsetCompleteOverlap)
 
 TEST (AddrRangeTest, isSubsetNoOverlap)
 
 TEST (AddrRangeTest, isSubsetTrueSubset)
 
 TEST (AddrRangeTest, isSubsetPartialSubset)
 
 TEST (AddrRangeTest, isSubsetInterleavedCompleteOverlap)
 
 TEST (AddrRangeTest, isSubsetInterleavedNoOverlap)
 
 TEST (AddrRangeTest, isSubsetInterleavedPartialOverlap)
 
 TEST (AddrRangeTest, Contains)
 
 TEST (AddrRangeTest, ContainsInAnEmptyRange)
 
 TEST (AddrRangeTest, RemoveIntlvBits)
 
 TEST (AddrRangeTest, addIntlvBits)
 
 TEST (AddrRangeTest, OffsetInRange)
 
 TEST (AddrRangeTest, OffsetOutOfRangeAfter)
 
 TEST (AddrRangeTest, OffsetOutOfRangeBefore)
 
 TEST (AddrRangeTest, LsbInterleavingMask)
 
 TEST (AddrRangeTest, TwoInterleavingMasks)
 
 TEST (AddrRangeTest, ComplexInterleavingMasks)
 
 TEST (AddrRangeTest, InterleavingAddressesMergesWith)
 
 TEST (AddrRangeTest, InterleavingAddressesDoNotMergeWith)
 
 TEST (AddrRangeTest, InterleavingAddressesDoNotIntersect)
 
 TEST (AddrRangeTest, InterleavingAddressesIntersectsViaMerging)
 
 TEST (AddrRangeTest, InterleavingAddressesDoesNotIntersectViaMerging)
 
 TEST (AddrRangeTest, DISABLED_InterleavingAddressesIntersect)
 
 TEST (AddrRangeTest, DISABLED_InterleavingAddressesIntersectsOnOneByteAddress)
 
 TEST (AddrRangeTest, DISABLED_InterleavingAddressesDoesNotIntersectOnOneByteAddress)
 
 TEST (AddrRangeTest, DISABLED_InterleavingAddressIsSubset)
 
 TEST (AddrRangeTest, DISABLED_InterleavingAddressIsNotSubset)
 
 TEST (AddrRangeTest, DISABLED_InterleavingAddressContains)
 
 TEST (AddrRangeTest, InterleavingAddressAddRemoveInterlvBits)
 
 TEST (AddrRangeTest, InterleavingAddressAddRemoveInterlvBitsTwoMasks)
 
 TEST (AddrRangeTest, AddRemoveInterleavBitsAcrossRange)
 
 TEST (AddrRangeTest, AddRemoveInterleavBitsAcrossContiguousRange)
 
 TEST (AddrRangeTest, InterleavingAddressesGetOffset)
 
 TEST (AddrRangeTest, InterleavingLessThanStartEquals)
 
 TEST (AddrRangeTest, InterleavingLessThanStartNotEquals)
 
 TEST (AddrRangeTest, InterleavingEqualTo)
 
 TEST (AddrRangeTest, InterleavingNotEqualTo)
 
 TEST (AddrRangeTest, MergingInterleavingAddressRanges)
 
 TEST (AddrRangeTest, MergingInterleavingAddressRangesOneRange)
 
 TEST (AddrRangeTest, LegacyConstructorNoInterleaving)
 
 TEST (AddrRangeTest, LegacyConstructorOneBitMask)
 
 TEST (AddrRangeTest, LegacyConstructorTwoBitMask)
 
 TEST (AddrRangeTest, LegacyConstructorTwoBitMaskWithXOR)
 
 TEST (AddrRangeTest, RangeExConstruction)
 
 TEST (AddrRangeTest, RangeInConstruction)
 
 TEST (AddrRangeTest, RangeSizeConstruction)
 

Function Documentation

◆ TEST() [1/60]

TEST ( AddrRangeTest  ,
addIntlvBits   
)

Definition at line 319 of file addr_range.test.cc.

References ArmISA::a, and MipsISA::r.

◆ TEST() [2/60]

TEST ( AddrRangeTest  ,
AddRemoveInterleavBitsAcrossContiguousRange   
)

Definition at line 787 of file addr_range.test.cc.

References ArmISA::i, and MipsISA::r.

◆ TEST() [3/60]

TEST ( AddrRangeTest  ,
AddRemoveInterleavBitsAcrossRange   
)

Definition at line 758 of file addr_range.test.cc.

References ArmISA::i, and MipsISA::r.

◆ TEST() [4/60]

TEST ( AddrRangeTest  ,
ComplexInterleavingMasks   
)

Definition at line 410 of file addr_range.test.cc.

References MipsISA::r, and ULL.

◆ TEST() [5/60]

TEST ( AddrRangeTest  ,
Contains   
)

Definition at line 285 of file addr_range.test.cc.

References MipsISA::r.

◆ TEST() [6/60]

TEST ( AddrRangeTest  ,
ContainsInAnEmptyRange   
)

Definition at line 299 of file addr_range.test.cc.

References MipsISA::r.

◆ TEST() [7/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressContains   
)

addr[0] && !addr[4]

Definition at line 673 of file addr_range.test.cc.

References X86ISA::addr, and MipsISA::r.

◆ TEST() [8/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressesDoesNotIntersectOnOneByteAddress   
)

Definition at line 601 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [9/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressesIntersect   
)

Definition at line 556 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [10/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressesIntersectsOnOneByteAddress   
)

Definition at line 583 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [11/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressIsNotSubset   
)

Definition at line 649 of file addr_range.test.cc.

References AddrRange::isSubset().

◆ TEST() [12/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressIsSubset   
)

Definition at line 626 of file addr_range.test.cc.

References AddrRange::isSubset().

◆ TEST() [13/60]

TEST ( AddrRangeTest  ,
DoesNotMergeWith   
)

Definition at line 167 of file addr_range.test.cc.

References AddrRange::mergesWith().

◆ TEST() [14/60]

TEST ( AddrRangeTest  ,
EmptyRange   
)

Definition at line 58 of file addr_range.test.cc.

References MipsISA::r, and ULL.

◆ TEST() [15/60]

TEST ( AddrRangeTest  ,
EqualToNotEqualTo   
)

Definition at line 137 of file addr_range.test.cc.

◆ TEST() [16/60]

TEST ( AddrRangeTest  ,
InterleavingAddressAddRemoveInterlvBits   
)

Definition at line 696 of file addr_range.test.cc.

References output(), and MipsISA::r.

◆ TEST() [17/60]

TEST ( AddrRangeTest  ,
InterleavingAddressAddRemoveInterlvBitsTwoMasks   
)

Definition at line 731 of file addr_range.test.cc.

References output(), and MipsISA::r.

◆ TEST() [18/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesDoesNotIntersectViaMerging   
)

Definition at line 520 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [19/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesDoNotIntersect   
)

Definition at line 471 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [20/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesDoNotMergeWith   
)

Definition at line 449 of file addr_range.test.cc.

References AddrRange::mergesWith().

◆ TEST() [21/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesGetOffset   
)

Definition at line 815 of file addr_range.test.cc.

References MipsISA::r.

◆ TEST() [22/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesIntersectsViaMerging   
)

Definition at line 498 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [23/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesMergesWith   
)

Definition at line 430 of file addr_range.test.cc.

References AddrRange::mergesWith().

◆ TEST() [24/60]

TEST ( AddrRangeTest  ,
InterleavingEqualTo   
)

Definition at line 879 of file addr_range.test.cc.

◆ TEST() [25/60]

TEST ( AddrRangeTest  ,
InterleavingLessThanStartEquals   
)

Definition at line 833 of file addr_range.test.cc.

◆ TEST() [26/60]

TEST ( AddrRangeTest  ,
InterleavingLessThanStartNotEquals   
)

Definition at line 858 of file addr_range.test.cc.

◆ TEST() [27/60]

TEST ( AddrRangeTest  ,
InterleavingNotEqualTo   
)

Definition at line 898 of file addr_range.test.cc.

◆ TEST() [28/60]

TEST ( AddrRangeTest  ,
IntersectsAddressWithin   
)

Definition at line 185 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [29/60]

TEST ( AddrRangeTest  ,
IntersectsCompleteOverlap   
)

Definition at line 176 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [30/60]

TEST ( AddrRangeTest  ,
IntersectsFirstLastAddressOverlap   
)

Definition at line 212 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [31/60]

TEST ( AddrRangeTest  ,
IntersectsNoOverlap   
)

Definition at line 203 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [32/60]

TEST ( AddrRangeTest  ,
IntersectsPartialOverlap   
)

Definition at line 194 of file addr_range.test.cc.

References AddrRange::intersects().

◆ TEST() [33/60]

TEST ( AddrRangeTest  ,
InvalidRange   
)

Definition at line 113 of file addr_range.test.cc.

References MipsISA::r.

◆ TEST() [34/60]

TEST ( AddrRangeTest  ,
isSubsetCompleteOverlap   
)

Definition at line 225 of file addr_range.test.cc.

References AddrRange::isSubset().

◆ TEST() [35/60]

TEST ( AddrRangeTest  ,
isSubsetInterleavedCompleteOverlap   
)

Definition at line 261 of file addr_range.test.cc.

◆ TEST() [36/60]

TEST ( AddrRangeTest  ,
isSubsetInterleavedNoOverlap   
)

Definition at line 269 of file addr_range.test.cc.

◆ TEST() [37/60]

TEST ( AddrRangeTest  ,
isSubsetInterleavedPartialOverlap   
)

Definition at line 277 of file addr_range.test.cc.

◆ TEST() [38/60]

TEST ( AddrRangeTest  ,
isSubsetNoOverlap   
)

Definition at line 234 of file addr_range.test.cc.

References AddrRange::isSubset().

◆ TEST() [39/60]

TEST ( AddrRangeTest  ,
isSubsetPartialSubset   
)

Definition at line 252 of file addr_range.test.cc.

References AddrRange::isSubset().

◆ TEST() [40/60]

TEST ( AddrRangeTest  ,
isSubsetTrueSubset   
)

Definition at line 243 of file addr_range.test.cc.

References AddrRange::isSubset().

◆ TEST() [41/60]

TEST ( AddrRangeTest  ,
LegacyConstructorNoInterleaving   
)

Definition at line 991 of file addr_range.test.cc.

References expected.

◆ TEST() [42/60]

TEST ( AddrRangeTest  ,
LegacyConstructorOneBitMask   
)

Definition at line 1002 of file addr_range.test.cc.

References expected.

◆ TEST() [43/60]

TEST ( AddrRangeTest  ,
LegacyConstructorTwoBitMask   
)

Definition at line 1018 of file addr_range.test.cc.

References expected.

◆ TEST() [44/60]

TEST ( AddrRangeTest  ,
LegacyConstructorTwoBitMaskWithXOR   
)

Definition at line 1035 of file addr_range.test.cc.

References AddrRange::contains(), and ArmISA::i.

◆ TEST() [45/60]

TEST ( AddrRangeTest  ,
LessThan   
)

Definition at line 119 of file addr_range.test.cc.

◆ TEST() [46/60]

TEST ( AddrRangeTest  ,
LsbInterleavingMask   
)

Definition at line 357 of file addr_range.test.cc.

References MipsISA::r, and ULL.

◆ TEST() [47/60]

TEST ( AddrRangeTest  ,
MergesWith   
)

Definition at line 154 of file addr_range.test.cc.

References AddrRange::mergesWith().

◆ TEST() [48/60]

TEST ( AddrRangeTest  ,
MergingInterleavingAddressRanges   
)

Definition at line 927 of file addr_range.test.cc.

References output().

◆ TEST() [49/60]

TEST ( AddrRangeTest  ,
MergingInterleavingAddressRangesOneRange   
)

Definition at line 954 of file addr_range.test.cc.

References output(), and MipsISA::r.

◆ TEST() [50/60]

TEST ( AddrRangeTest  ,
OffsetInRange   
)

Definition at line 332 of file addr_range.test.cc.

References MipsISA::r.

◆ TEST() [51/60]

TEST ( AddrRangeTest  ,
OffsetOutOfRangeAfter   
)

Definition at line 338 of file addr_range.test.cc.

References MaxAddr, and MipsISA::r.

◆ TEST() [52/60]

TEST ( AddrRangeTest  ,
OffsetOutOfRangeBefore   
)

Definition at line 347 of file addr_range.test.cc.

References MaxAddr, and MipsISA::r.

◆ TEST() [53/60]

TEST ( AddrRangeTest  ,
Range16Bit   
)

Definition at line 100 of file addr_range.test.cc.

References MipsISA::r, and ULL.

◆ TEST() [54/60]

TEST ( AddrRangeTest  ,
RangeExConstruction   
)

Definition at line 1072 of file addr_range.test.cc.

References MipsISA::r, and RangeEx().

◆ TEST() [55/60]

TEST ( AddrRangeTest  ,
RangeInConstruction   
)

Definition at line 1079 of file addr_range.test.cc.

References MipsISA::r, and RangeIn().

◆ TEST() [56/60]

TEST ( AddrRangeTest  ,
RangeSizeConstruction   
)

Definition at line 1086 of file addr_range.test.cc.

References MipsISA::r, and RangeSize().

◆ TEST() [57/60]

TEST ( AddrRangeTest  ,
RangeSizeOfOne   
)

Definition at line 87 of file addr_range.test.cc.

References MipsISA::r, and ULL.

◆ TEST() [58/60]

TEST ( AddrRangeTest  ,
RemoveIntlvBits   
)

Definition at line 306 of file addr_range.test.cc.

References ArmISA::a, and MipsISA::r.

◆ TEST() [59/60]

TEST ( AddrRangeTest  ,
TwoInterleavingMasks   
)

Definition at line 387 of file addr_range.test.cc.

References MipsISA::r, and ULL.

◆ TEST() [60/60]

TEST ( AddrRangeTest  ,
ValidRange   
)

Definition at line 46 of file addr_range.test.cc.

References MipsISA::r.


Generated on Tue Mar 23 2021 19:41:31 for gem5 by doxygen 1.8.17