gem5 v24.0.0.0
Loading...
Searching...
No Matches
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 (AddrRangeTest, isNotSubsetLastByte)
 
 TEST (AddrRangeTest, isSubsetLastByte)
 
 TEST (AddrRangeDeathTest, ExcludeInterleavingRanges)
 

Function Documentation

◆ TEST() [1/83]

TEST ( AddrRangeDeathTest ,
ExcludeInterleavingRanges  )

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

References gem5::MipsISA::r.

◆ TEST() [2/83]

TEST ( AddrRangeTest ,
addIntlvBits  )

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

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

◆ TEST() [3/83]

TEST ( AddrRangeTest ,
AddRemoveInterleavBitsAcrossContiguousRange  )

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

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

◆ TEST() [4/83]

TEST ( AddrRangeTest ,
AddRemoveInterleavBitsAcrossRange  )

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

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

◆ TEST() [5/83]

TEST ( AddrRangeTest ,
ComplexInterleavingMasks  )

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

References gem5::MipsISA::r.

◆ TEST() [6/83]

TEST ( AddrRangeTest ,
Contains  )

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

References gem5::MipsISA::r.

◆ TEST() [7/83]

TEST ( AddrRangeTest ,
ContainsInAnEmptyRange  )

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

References gem5::MipsISA::r.

◆ TEST() [8/83]

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/83]

TEST ( AddrRangeTest ,
DISABLED_InterleavingAddressesDoesNotIntersectOnOneByteAddress  )

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

References gem5::AddrRange::intersects().

◆ TEST() [10/83]

TEST ( AddrRangeTest ,
DISABLED_InterleavingAddressesIntersect  )

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

References gem5::AddrRange::intersects().

◆ TEST() [11/83]

TEST ( AddrRangeTest ,
DISABLED_InterleavingAddressesIntersectsOnOneByteAddress  )

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

References gem5::AddrRange::intersects().

◆ TEST() [12/83]

TEST ( AddrRangeTest ,
DISABLED_InterleavingAddressIsNotSubset  )

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

References gem5::AddrRange::isSubset().

◆ TEST() [13/83]

TEST ( AddrRangeTest ,
DISABLED_InterleavingAddressIsSubset  )

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

References gem5::AddrRange::isSubset().

◆ TEST() [14/83]

TEST ( AddrRangeTest ,
DoesNotMergeWith  )

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

References gem5::AddrRange::mergesWith().

◆ TEST() [15/83]

TEST ( AddrRangeTest ,
DoubleExclusion  )

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

References gem5::MipsISA::r.

◆ TEST() [16/83]

TEST ( AddrRangeTest ,
EmptyRange  )

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

References gem5::MipsISA::r.

◆ TEST() [17/83]

TEST ( AddrRangeTest ,
EqualToNotEqualTo  )

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

◆ TEST() [18/83]

TEST ( AddrRangeTest ,
ExcludeAll  )

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

References gem5::MipsISA::r.

◆ TEST() [19/83]

TEST ( AddrRangeTest ,
ExcludeAllEqual  )

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

References gem5::MipsISA::r.

◆ TEST() [20/83]

TEST ( AddrRangeTest ,
ExcludeAllMultiple  )

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

References gem5::MipsISA::r.

◆ TEST() [21/83]

TEST ( AddrRangeTest ,
ExcludeAllOverlapping  )

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

References gem5::MipsISA::r.

◆ TEST() [22/83]

TEST ( AddrRangeTest ,
ExcludeEmpty  )

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

References gem5::MipsISA::r.

◆ TEST() [23/83]

TEST ( AddrRangeTest ,
ExclusionOfRangeFromRangeList  )

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

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

◆ TEST() [24/83]

TEST ( AddrRangeTest ,
ExclusionOfRangeListFromRangeList  )

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

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

◆ TEST() [25/83]

TEST ( AddrRangeTest ,
ExclusionOfSingleRange  )

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

References gem5::MipsISA::r.

◆ TEST() [26/83]

TEST ( AddrRangeTest ,
ExclusionOverlapping  )

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

References gem5::MipsISA::r.

◆ TEST() [27/83]

TEST ( AddrRangeTest ,
InterleavingAddressAddRemoveInterlvBits  )

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

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

◆ TEST() [28/83]

TEST ( AddrRangeTest ,
InterleavingAddressAddRemoveInterlvBitsTwoMasks  )

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

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

◆ TEST() [29/83]

TEST ( AddrRangeTest ,
InterleavingAddressesDoesNotIntersectViaMerging  )

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

References gem5::AddrRange::intersects().

◆ TEST() [30/83]

TEST ( AddrRangeTest ,
InterleavingAddressesDoNotIntersect  )

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

References gem5::AddrRange::intersects().

◆ TEST() [31/83]

TEST ( AddrRangeTest ,
InterleavingAddressesDoNotMergeWith  )

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

References gem5::AddrRange::mergesWith().

◆ TEST() [32/83]

TEST ( AddrRangeTest ,
InterleavingAddressesGetOffset  )

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

References gem5::MipsISA::r.

◆ TEST() [33/83]

TEST ( AddrRangeTest ,
InterleavingAddressesIntersectsViaMerging  )

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

References gem5::AddrRange::intersects().

◆ TEST() [34/83]

TEST ( AddrRangeTest ,
InterleavingAddressesMergesWith  )

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

References gem5::AddrRange::mergesWith().

◆ TEST() [35/83]

TEST ( AddrRangeTest ,
InterleavingEqualTo  )

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

◆ TEST() [36/83]

TEST ( AddrRangeTest ,
InterleavingLessThanStartEquals  )

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

◆ TEST() [37/83]

TEST ( AddrRangeTest ,
InterleavingLessThanStartNotEquals  )

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

◆ TEST() [38/83]

TEST ( AddrRangeTest ,
InterleavingNotEqualTo  )

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

◆ TEST() [39/83]

TEST ( AddrRangeTest ,
IntersectsAddressWithin  )

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

References gem5::AddrRange::intersects().

◆ TEST() [40/83]

TEST ( AddrRangeTest ,
IntersectsCompleteOverlap  )

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

References gem5::AddrRange::intersects().

◆ TEST() [41/83]

TEST ( AddrRangeTest ,
IntersectsFirstLastAddressOverlap  )

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

References gem5::AddrRange::intersects().

◆ TEST() [42/83]

TEST ( AddrRangeTest ,
IntersectsNoOverlap  )

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

References gem5::AddrRange::intersects().

◆ TEST() [43/83]

TEST ( AddrRangeTest ,
IntersectsPartialOverlap  )

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

References gem5::AddrRange::intersects().

◆ TEST() [44/83]

TEST ( AddrRangeTest ,
InvalidRange  )

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

References gem5::MipsISA::r.

◆ TEST() [45/83]

TEST ( AddrRangeTest ,
isNotSubsetLastByte  )

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

References gem5::AddrRange::isSubset(), and gem5::RangeSize().

◆ TEST() [46/83]

TEST ( AddrRangeTest ,
isSubsetCompleteOverlap  )

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

References gem5::AddrRange::isSubset().

◆ TEST() [47/83]

TEST ( AddrRangeTest ,
isSubsetInterleavedCompleteOverlap  )

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

◆ TEST() [48/83]

TEST ( AddrRangeTest ,
isSubsetInterleavedNoOverlap  )

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

◆ TEST() [49/83]

TEST ( AddrRangeTest ,
isSubsetInterleavedPartialOverlap  )

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

◆ TEST() [50/83]

TEST ( AddrRangeTest ,
isSubsetLastByte  )

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

References gem5::AddrRange::isSubset(), and gem5::RangeSize().

◆ TEST() [51/83]

TEST ( AddrRangeTest ,
isSubsetNoOverlap  )

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

References gem5::AddrRange::isSubset().

◆ TEST() [52/83]

TEST ( AddrRangeTest ,
isSubsetPartialSubset  )

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

References gem5::AddrRange::isSubset().

◆ TEST() [53/83]

TEST ( AddrRangeTest ,
isSubsetTrueSubset  )

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

References gem5::AddrRange::isSubset().

◆ TEST() [54/83]

TEST ( AddrRangeTest ,
LegacyConstructorNoInterleaving  )

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

References expected().

◆ TEST() [55/83]

TEST ( AddrRangeTest ,
LegacyConstructorOneBitMask  )

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

References expected().

◆ TEST() [56/83]

TEST ( AddrRangeTest ,
LegacyConstructorTwoBitMask  )

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

References expected().

◆ TEST() [57/83]

TEST ( AddrRangeTest ,
LegacyConstructorTwoBitMaskWithXOR  )

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

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

◆ TEST() [58/83]

TEST ( AddrRangeTest ,
LessThan  )

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

◆ TEST() [59/83]

TEST ( AddrRangeTest ,
LsbInterleavingMask  )

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

References gem5::MipsISA::r.

◆ TEST() [60/83]

TEST ( AddrRangeTest ,
MergesWith  )

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

References gem5::AddrRange::mergesWith().

◆ TEST() [61/83]

TEST ( AddrRangeTest ,
MergingInterleavingAddressRanges  )

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

References gem5::output().

◆ TEST() [62/83]

TEST ( AddrRangeTest ,
MergingInterleavingAddressRangesOneRange  )

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

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

◆ TEST() [63/83]

TEST ( AddrRangeTest ,
MultipleExclusion  )

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

References gem5::MipsISA::r.

◆ TEST() [64/83]

TEST ( AddrRangeTest ,
MultipleExclusionOverlapping  )

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

References gem5::MipsISA::r.

◆ TEST() [65/83]

TEST ( AddrRangeTest ,
MultipleExclusionUnsorted  )

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

References gem5::MipsISA::r.

◆ TEST() [66/83]

TEST ( AddrRangeTest ,
NoExclusion  )

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

References gem5::MipsISA::r.

◆ TEST() [67/83]

TEST ( AddrRangeTest ,
OffsetInRange  )

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

References gem5::MipsISA::r.

◆ TEST() [68/83]

TEST ( AddrRangeTest ,
OffsetOutOfRangeAfter  )

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

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

◆ TEST() [69/83]

TEST ( AddrRangeTest ,
OffsetOutOfRangeBefore  )

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

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

◆ TEST() [70/83]

TEST ( AddrRangeTest ,
Range16Bit  )

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

References gem5::MipsISA::r.

◆ TEST() [71/83]

TEST ( AddrRangeTest ,
RangeExConstruction  )

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

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

◆ TEST() [72/83]

TEST ( AddrRangeTest ,
RangeInConstruction  )

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

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

◆ TEST() [73/83]

TEST ( AddrRangeTest ,
RangeSizeConstruction  )

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

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

◆ TEST() [74/83]

TEST ( AddrRangeTest ,
RangeSizeOfOne  )

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

References gem5::MipsISA::r.

◆ TEST() [75/83]

TEST ( AddrRangeTest ,
RemoveIntlvBits  )

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

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

◆ TEST() [76/83]

TEST ( AddrRangeTest ,
SubtractionAssignmentOfRangeFromRangeList  )

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

References gem5::X86ISA::base.

◆ TEST() [77/83]

TEST ( AddrRangeTest ,
SubtractionAssignmentOfRangeListFromRangeList  )

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

References gem5::X86ISA::base.

◆ TEST() [78/83]

TEST ( AddrRangeTest ,
SubtractionOfRangeFromRangeList  )

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

References gem5::X86ISA::base.

◆ TEST() [79/83]

TEST ( AddrRangeTest ,
SubtractionOfRangeListFromRangeList  )

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

References gem5::X86ISA::base.

◆ TEST() [80/83]

TEST ( AddrRangeTest ,
SubtractionOperatorRange  )

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

References gem5::MipsISA::r.

◆ TEST() [81/83]

TEST ( AddrRangeTest ,
SubtractionOperatorRangeList  )

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

References gem5::MipsISA::r.

◆ TEST() [82/83]

TEST ( AddrRangeTest ,
TwoInterleavingMasks  )

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

References gem5::MipsISA::r.

◆ TEST() [83/83]

TEST ( AddrRangeTest ,
ValidRange  )

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

References gem5::MipsISA::r.


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0