gem5  v21.1.0.2
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 321 of file addr_range.test.cc.

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

◆ TEST() [2/60]

TEST ( AddrRangeTest  ,
AddRemoveInterleavBitsAcrossContiguousRange   
)

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

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

◆ TEST() [3/60]

TEST ( AddrRangeTest  ,
AddRemoveInterleavBitsAcrossRange   
)

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

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

◆ TEST() [4/60]

TEST ( AddrRangeTest  ,
ComplexInterleavingMasks   
)

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

References gem5::MipsISA::r.

◆ TEST() [5/60]

TEST ( AddrRangeTest  ,
Contains   
)

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

References gem5::MipsISA::r.

◆ TEST() [6/60]

TEST ( AddrRangeTest  ,
ContainsInAnEmptyRange   
)

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

References gem5::MipsISA::r.

◆ TEST() [7/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressContains   
)

addr[0] && !addr[4]

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

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

◆ TEST() [8/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressesDoesNotIntersectOnOneByteAddress   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [9/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressesIntersect   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [10/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressesIntersectsOnOneByteAddress   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [11/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressIsNotSubset   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [12/60]

TEST ( AddrRangeTest  ,
DISABLED_InterleavingAddressIsSubset   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [13/60]

TEST ( AddrRangeTest  ,
DoesNotMergeWith   
)

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

References gem5::AddrRange::mergesWith().

◆ TEST() [14/60]

TEST ( AddrRangeTest  ,
EmptyRange   
)

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

References gem5::MipsISA::r.

◆ TEST() [15/60]

TEST ( AddrRangeTest  ,
EqualToNotEqualTo   
)

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

◆ TEST() [16/60]

TEST ( AddrRangeTest  ,
InterleavingAddressAddRemoveInterlvBits   
)

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

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

◆ TEST() [17/60]

TEST ( AddrRangeTest  ,
InterleavingAddressAddRemoveInterlvBitsTwoMasks   
)

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

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

◆ TEST() [18/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesDoesNotIntersectViaMerging   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [19/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesDoNotIntersect   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [20/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesDoNotMergeWith   
)

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

References gem5::AddrRange::mergesWith().

◆ TEST() [21/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesGetOffset   
)

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

References gem5::MipsISA::r.

◆ TEST() [22/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesIntersectsViaMerging   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [23/60]

TEST ( AddrRangeTest  ,
InterleavingAddressesMergesWith   
)

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

References gem5::AddrRange::mergesWith().

◆ TEST() [24/60]

TEST ( AddrRangeTest  ,
InterleavingEqualTo   
)

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

◆ TEST() [25/60]

TEST ( AddrRangeTest  ,
InterleavingLessThanStartEquals   
)

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

◆ TEST() [26/60]

TEST ( AddrRangeTest  ,
InterleavingLessThanStartNotEquals   
)

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

◆ TEST() [27/60]

TEST ( AddrRangeTest  ,
InterleavingNotEqualTo   
)

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

◆ TEST() [28/60]

TEST ( AddrRangeTest  ,
IntersectsAddressWithin   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [29/60]

TEST ( AddrRangeTest  ,
IntersectsCompleteOverlap   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [30/60]

TEST ( AddrRangeTest  ,
IntersectsFirstLastAddressOverlap   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [31/60]

TEST ( AddrRangeTest  ,
IntersectsNoOverlap   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [32/60]

TEST ( AddrRangeTest  ,
IntersectsPartialOverlap   
)

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

References gem5::AddrRange::intersects().

◆ TEST() [33/60]

TEST ( AddrRangeTest  ,
InvalidRange   
)

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

References gem5::MipsISA::r.

◆ TEST() [34/60]

TEST ( AddrRangeTest  ,
isSubsetCompleteOverlap   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [35/60]

TEST ( AddrRangeTest  ,
isSubsetInterleavedCompleteOverlap   
)

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

◆ TEST() [36/60]

TEST ( AddrRangeTest  ,
isSubsetInterleavedNoOverlap   
)

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

◆ TEST() [37/60]

TEST ( AddrRangeTest  ,
isSubsetInterleavedPartialOverlap   
)

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

◆ TEST() [38/60]

TEST ( AddrRangeTest  ,
isSubsetNoOverlap   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [39/60]

TEST ( AddrRangeTest  ,
isSubsetPartialSubset   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [40/60]

TEST ( AddrRangeTest  ,
isSubsetTrueSubset   
)

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

References gem5::AddrRange::isSubset().

◆ TEST() [41/60]

TEST ( AddrRangeTest  ,
LegacyConstructorNoInterleaving   
)

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

References expected.

◆ TEST() [42/60]

TEST ( AddrRangeTest  ,
LegacyConstructorOneBitMask   
)

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

References expected.

◆ TEST() [43/60]

TEST ( AddrRangeTest  ,
LegacyConstructorTwoBitMask   
)

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

References expected.

◆ TEST() [44/60]

TEST ( AddrRangeTest  ,
LegacyConstructorTwoBitMaskWithXOR   
)

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

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

◆ TEST() [45/60]

TEST ( AddrRangeTest  ,
LessThan   
)

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

◆ TEST() [46/60]

TEST ( AddrRangeTest  ,
LsbInterleavingMask   
)

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

References gem5::MipsISA::r.

◆ TEST() [47/60]

TEST ( AddrRangeTest  ,
MergesWith   
)

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

References gem5::AddrRange::mergesWith().

◆ TEST() [48/60]

TEST ( AddrRangeTest  ,
MergingInterleavingAddressRanges   
)

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

References gem5::output().

◆ TEST() [49/60]

TEST ( AddrRangeTest  ,
MergingInterleavingAddressRangesOneRange   
)

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

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

◆ TEST() [50/60]

TEST ( AddrRangeTest  ,
OffsetInRange   
)

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

References gem5::MipsISA::r.

◆ TEST() [51/60]

TEST ( AddrRangeTest  ,
OffsetOutOfRangeAfter   
)

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

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

◆ TEST() [52/60]

TEST ( AddrRangeTest  ,
OffsetOutOfRangeBefore   
)

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

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

◆ TEST() [53/60]

TEST ( AddrRangeTest  ,
Range16Bit   
)

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

References gem5::MipsISA::r.

◆ TEST() [54/60]

TEST ( AddrRangeTest  ,
RangeExConstruction   
)

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

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

◆ TEST() [55/60]

TEST ( AddrRangeTest  ,
RangeInConstruction   
)

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

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

◆ TEST() [56/60]

TEST ( AddrRangeTest  ,
RangeSizeConstruction   
)

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

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

◆ TEST() [57/60]

TEST ( AddrRangeTest  ,
RangeSizeOfOne   
)

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

References gem5::MipsISA::r.

◆ TEST() [58/60]

TEST ( AddrRangeTest  ,
RemoveIntlvBits   
)

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

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

◆ TEST() [59/60]

TEST ( AddrRangeTest  ,
TwoInterleavingMasks   
)

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

References gem5::MipsISA::r.

◆ TEST() [60/60]

TEST ( AddrRangeTest  ,
ValidRange   
)

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

References gem5::MipsISA::r.


Generated on Tue Sep 21 2021 12:26:25 for gem5 by doxygen 1.8.17