gem5  v21.2.1.1
Functions
addr_range.test.cc File Reference
#include <gmock/gmock.h>
#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)
 
 TEST (AddrRangeTest, ExcludeAll)
 
 TEST (AddrRangeTest, ExcludeAllEqual)
 
 TEST (AddrRangeTest, ExcludeAllMultiple)
 
 TEST (AddrRangeTest, ExcludeAllOverlapping)
 
 TEST (AddrRangeTest, ExcludeEmpty)
 
 TEST (AddrRangeTest, NoExclusion)
 
 TEST (AddrRangeTest, DoubleExclusion)
 
 TEST (AddrRangeTest, MultipleExclusion)
 
 TEST (AddrRangeTest, MultipleExclusionOverlapping)
 
 TEST (AddrRangeTest, ExclusionOverlapping)
 
 TEST (AddrRangeTest, MultipleExclusionUnsorted)
 
 TEST (AddrRangeTest, ExclusionOfSingleRange)
 
 TEST (AddrRangeTest, ExclusionOfRangeFromRangeList)
 
 TEST (AddrRangeTest, ExclusionOfRangeListFromRangeList)
 
 TEST (AddrRangeTest, SubtractionOperatorRange)
 
 TEST (AddrRangeTest, SubtractionOperatorRangeList)
 
 TEST (AddrRangeTest, SubtractionOfRangeFromRangeList)
 
 TEST (AddrRangeTest, SubtractionOfRangeListFromRangeList)
 
 TEST (AddrRangeTest, SubtractionAssignmentOfRangeFromRangeList)
 
 TEST (AddrRangeTest, SubtractionAssignmentOfRangeListFromRangeList)
 
 TEST (AddrRangeDeathTest, ExcludeInterleavingRanges)
 

Function Documentation

◆ TEST() [1/81]

TEST ( AddrRangeDeathTest  ,
ExcludeInterleavingRanges   
)

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

References gem5::MipsISA::r.

◆ TEST() [2/81]

TEST ( AddrRangeTest  ,
addIntlvBits   
)

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

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

◆ TEST() [3/81]

TEST ( AddrRangeTest  ,
AddRemoveInterleavBitsAcrossContiguousRange   
)

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

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

◆ TEST() [4/81]

TEST ( AddrRangeTest  ,
AddRemoveInterleavBitsAcrossRange   
)

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

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

◆ TEST() [5/81]

TEST ( AddrRangeTest  ,
ComplexInterleavingMasks   
)

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

References gem5::MipsISA::r.

◆ TEST() [6/81]

TEST ( AddrRangeTest  ,
Contains   
)

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

References gem5::MipsISA::r.

◆ TEST() [7/81]

TEST ( AddrRangeTest  ,
ContainsInAnEmptyRange   
)

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

References gem5::MipsISA::r.

◆ TEST() [8/81]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressContains   
)

addr[0] && !addr[4]

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

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

◆ TEST() [9/81]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressesDoesNotIntersectOnOneByteAddress   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [10/81]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressesIntersect   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [11/81]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressesIntersectsOnOneByteAddress   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [12/81]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressIsNotSubset   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [13/81]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressIsSubset   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [14/81]

TEST ( AddrRangeTest  ,
DoesNotMergeWith   
)

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

References gem5::AddrRange::mergesWith().

◆ TEST() [15/81]

TEST ( AddrRangeTest  ,
DoubleExclusion   
)

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

References gem5::MipsISA::r.

◆ TEST() [16/81]

TEST ( AddrRangeTest  ,
EmptyRange   
)

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

References gem5::MipsISA::r.

◆ TEST() [17/81]

TEST ( AddrRangeTest  ,
EqualToNotEqualTo   
)

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

◆ TEST() [18/81]

TEST ( AddrRangeTest  ,
ExcludeAll   
)

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

References gem5::MipsISA::r.

◆ TEST() [19/81]

TEST ( AddrRangeTest  ,
ExcludeAllEqual   
)

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

References gem5::MipsISA::r.

◆ TEST() [20/81]

TEST ( AddrRangeTest  ,
ExcludeAllMultiple   
)

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

References gem5::MipsISA::r.

◆ TEST() [21/81]

TEST ( AddrRangeTest  ,
ExcludeAllOverlapping   
)

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

References gem5::MipsISA::r.

◆ TEST() [22/81]

TEST ( AddrRangeTest  ,
ExcludeEmpty   
)

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

References gem5::MipsISA::r.

◆ TEST() [23/81]

TEST ( AddrRangeTest  ,
ExclusionOfRangeFromRangeList   
)

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

References gem5::X86ISA::base, and gem5::exclude().

◆ TEST() [24/81]

TEST ( AddrRangeTest  ,
ExclusionOfRangeListFromRangeList   
)

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

References gem5::X86ISA::base, and gem5::exclude().

◆ TEST() [25/81]

TEST ( AddrRangeTest  ,
ExclusionOfSingleRange   
)

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

References gem5::MipsISA::r.

◆ TEST() [26/81]

TEST ( AddrRangeTest  ,
ExclusionOverlapping   
)

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

References gem5::MipsISA::r.

◆ TEST() [27/81]

TEST ( AddrRangeTest  ,
InterleavingAddressAddRemoveInterlvBits   
)

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

References gem5::output(), and gem5::MipsISA::r.

◆ TEST() [28/81]

TEST ( AddrRangeTest  ,
InterleavingAddressAddRemoveInterlvBitsTwoMasks   
)

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

References gem5::output(), and gem5::MipsISA::r.

◆ TEST() [29/81]

TEST ( AddrRangeTest  ,
InterleavingAddressesDoesNotIntersectViaMerging   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [30/81]

TEST ( AddrRangeTest  ,
InterleavingAddressesDoNotIntersect   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [31/81]

TEST ( AddrRangeTest  ,
InterleavingAddressesDoNotMergeWith   
)

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

References gem5::AddrRange::mergesWith().

◆ TEST() [32/81]

TEST ( AddrRangeTest  ,
InterleavingAddressesGetOffset   
)

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

References gem5::MipsISA::r.

◆ TEST() [33/81]

TEST ( AddrRangeTest  ,
InterleavingAddressesIntersectsViaMerging   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [34/81]

TEST ( AddrRangeTest  ,
InterleavingAddressesMergesWith   
)

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

References gem5::AddrRange::mergesWith().

◆ TEST() [35/81]

TEST ( AddrRangeTest  ,
InterleavingEqualTo   
)

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

◆ TEST() [36/81]

TEST ( AddrRangeTest  ,
InterleavingLessThanStartEquals   
)

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

◆ TEST() [37/81]

TEST ( AddrRangeTest  ,
InterleavingLessThanStartNotEquals   
)

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

◆ TEST() [38/81]

TEST ( AddrRangeTest  ,
InterleavingNotEqualTo   
)

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

◆ TEST() [39/81]

TEST ( AddrRangeTest  ,
IntersectsAddressWithin   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [40/81]

TEST ( AddrRangeTest  ,
IntersectsCompleteOverlap   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [41/81]

TEST ( AddrRangeTest  ,
IntersectsFirstLastAddressOverlap   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [42/81]

TEST ( AddrRangeTest  ,
IntersectsNoOverlap   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [43/81]

TEST ( AddrRangeTest  ,
IntersectsPartialOverlap   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [44/81]

TEST ( AddrRangeTest  ,
InvalidRange   
)

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

References gem5::MipsISA::r.

◆ TEST() [45/81]

TEST ( AddrRangeTest  ,
isSubsetCompleteOverlap   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [46/81]

TEST ( AddrRangeTest  ,
isSubsetInterleavedCompleteOverlap   
)

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

◆ TEST() [47/81]

TEST ( AddrRangeTest  ,
isSubsetInterleavedNoOverlap   
)

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

◆ TEST() [48/81]

TEST ( AddrRangeTest  ,
isSubsetInterleavedPartialOverlap   
)

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

◆ TEST() [49/81]

TEST ( AddrRangeTest  ,
isSubsetNoOverlap   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [50/81]

TEST ( AddrRangeTest  ,
isSubsetPartialSubset   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [51/81]

TEST ( AddrRangeTest  ,
isSubsetTrueSubset   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [52/81]

TEST ( AddrRangeTest  ,
LegacyConstructorNoInterleaving   
)

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

References expected.

◆ TEST() [53/81]

TEST ( AddrRangeTest  ,
LegacyConstructorOneBitMask   
)

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

References expected.

◆ TEST() [54/81]

TEST ( AddrRangeTest  ,
LegacyConstructorTwoBitMask   
)

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

References expected.

◆ TEST() [55/81]

TEST ( AddrRangeTest  ,
LegacyConstructorTwoBitMaskWithXOR   
)

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

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

◆ TEST() [56/81]

TEST ( AddrRangeTest  ,
LessThan   
)

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

◆ TEST() [57/81]

TEST ( AddrRangeTest  ,
LsbInterleavingMask   
)

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

References gem5::MipsISA::r.

◆ TEST() [58/81]

TEST ( AddrRangeTest  ,
MergesWith   
)

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

References gem5::AddrRange::mergesWith().

◆ TEST() [59/81]

TEST ( AddrRangeTest  ,
MergingInterleavingAddressRanges   
)

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

References gem5::output().

◆ TEST() [60/81]

TEST ( AddrRangeTest  ,
MergingInterleavingAddressRangesOneRange   
)

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

References gem5::output(), and gem5::MipsISA::r.

◆ TEST() [61/81]

TEST ( AddrRangeTest  ,
MultipleExclusion   
)

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

References gem5::MipsISA::r.

◆ TEST() [62/81]

TEST ( AddrRangeTest  ,
MultipleExclusionOverlapping   
)

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

References gem5::MipsISA::r.

◆ TEST() [63/81]

TEST ( AddrRangeTest  ,
MultipleExclusionUnsorted   
)

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

References gem5::MipsISA::r.

◆ TEST() [64/81]

TEST ( AddrRangeTest  ,
NoExclusion   
)

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

References gem5::MipsISA::r.

◆ TEST() [65/81]

TEST ( AddrRangeTest  ,
OffsetInRange   
)

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

References gem5::MipsISA::r.

◆ TEST() [66/81]

TEST ( AddrRangeTest  ,
OffsetOutOfRangeAfter   
)

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

References gem5::MaxAddr, and gem5::MipsISA::r.

◆ TEST() [67/81]

TEST ( AddrRangeTest  ,
OffsetOutOfRangeBefore   
)

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

References gem5::MaxAddr, and gem5::MipsISA::r.

◆ TEST() [68/81]

TEST ( AddrRangeTest  ,
Range16Bit   
)

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

References gem5::MipsISA::r.

◆ TEST() [69/81]

TEST ( AddrRangeTest  ,
RangeExConstruction   
)

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

References gem5::MipsISA::r, and gem5::RangeEx().

◆ TEST() [70/81]

TEST ( AddrRangeTest  ,
RangeInConstruction   
)

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

References gem5::MipsISA::r, and gem5::RangeIn().

◆ TEST() [71/81]

TEST ( AddrRangeTest  ,
RangeSizeConstruction   
)

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

References gem5::MipsISA::r, and gem5::RangeSize().

◆ TEST() [72/81]

TEST ( AddrRangeTest  ,
RangeSizeOfOne   
)

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

References gem5::MipsISA::r.

◆ TEST() [73/81]

TEST ( AddrRangeTest  ,
RemoveIntlvBits   
)

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

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

◆ TEST() [74/81]

TEST ( AddrRangeTest  ,
SubtractionAssignmentOfRangeFromRangeList   
)

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

References gem5::X86ISA::base.

◆ TEST() [75/81]

TEST ( AddrRangeTest  ,
SubtractionAssignmentOfRangeListFromRangeList   
)

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

References gem5::X86ISA::base.

◆ TEST() [76/81]

TEST ( AddrRangeTest  ,
SubtractionOfRangeFromRangeList   
)

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

References gem5::X86ISA::base.

◆ TEST() [77/81]

TEST ( AddrRangeTest  ,
SubtractionOfRangeListFromRangeList   
)

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

References gem5::X86ISA::base.

◆ TEST() [78/81]

TEST ( AddrRangeTest  ,
SubtractionOperatorRange   
)

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

References gem5::MipsISA::r.

◆ TEST() [79/81]

TEST ( AddrRangeTest  ,
SubtractionOperatorRangeList   
)

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

References gem5::MipsISA::r.

◆ TEST() [80/81]

TEST ( AddrRangeTest  ,
TwoInterleavingMasks   
)

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

References gem5::MipsISA::r.

◆ TEST() [81/81]

TEST ( AddrRangeTest  ,
ValidRange   
)

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

References gem5::MipsISA::r.


Generated on Wed May 4 2022 12:14:14 for gem5 by doxygen 1.8.17