gem5 v24.0.0.0
|
#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) | |
TEST | ( | AddrRangeDeathTest | , |
ExcludeInterleavingRanges | ) |
Definition at line 1581 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
addIntlvBits | ) |
Definition at line 324 of file addr_range.test.cc.
References gem5::ArmISA::a, and gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
AddRemoveInterleavBitsAcrossContiguousRange | ) |
Definition at line 792 of file addr_range.test.cc.
References gem5::ArmISA::i, and gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
AddRemoveInterleavBitsAcrossRange | ) |
Definition at line 763 of file addr_range.test.cc.
References gem5::ArmISA::i, and gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
ComplexInterleavingMasks | ) |
Definition at line 415 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
Contains | ) |
Definition at line 290 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
ContainsInAnEmptyRange | ) |
Definition at line 304 of file addr_range.test.cc.
References gem5::MipsISA::r.
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 | ( | AddrRangeTest | , |
DISABLED_InterleavingAddressesDoesNotIntersectOnOneByteAddress | ) |
Definition at line 606 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
DISABLED_InterleavingAddressesIntersect | ) |
Definition at line 561 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
DISABLED_InterleavingAddressesIntersectsOnOneByteAddress | ) |
Definition at line 588 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
DISABLED_InterleavingAddressIsNotSubset | ) |
Definition at line 654 of file addr_range.test.cc.
References gem5::AddrRange::isSubset().
TEST | ( | AddrRangeTest | , |
DISABLED_InterleavingAddressIsSubset | ) |
Definition at line 631 of file addr_range.test.cc.
References gem5::AddrRange::isSubset().
TEST | ( | AddrRangeTest | , |
DoesNotMergeWith | ) |
Definition at line 172 of file addr_range.test.cc.
References gem5::AddrRange::mergesWith().
TEST | ( | AddrRangeTest | , |
DoubleExclusion | ) |
Definition at line 1261 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
EmptyRange | ) |
Definition at line 63 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
EqualToNotEqualTo | ) |
Definition at line 142 of file addr_range.test.cc.
TEST | ( | AddrRangeTest | , |
ExcludeAll | ) |
Definition at line 1109 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
ExcludeAllEqual | ) |
Definition at line 1133 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
ExcludeAllMultiple | ) |
Definition at line 1157 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
ExcludeAllOverlapping | ) |
Definition at line 1187 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
ExcludeEmpty | ) |
Definition at line 1210 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
ExclusionOfRangeFromRangeList | ) |
Definition at line 1424 of file addr_range.test.cc.
References gem5::X86ISA::base, and gem5::exclude().
TEST | ( | AddrRangeTest | , |
ExclusionOfRangeListFromRangeList | ) |
Definition at line 1437 of file addr_range.test.cc.
References gem5::X86ISA::base, and gem5::exclude().
TEST | ( | AddrRangeTest | , |
ExclusionOfSingleRange | ) |
Definition at line 1412 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
ExclusionOverlapping | ) |
Definition at line 1361 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
InterleavingAddressAddRemoveInterlvBits | ) |
Definition at line 701 of file addr_range.test.cc.
References gem5::output(), and gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
InterleavingAddressAddRemoveInterlvBitsTwoMasks | ) |
Definition at line 736 of file addr_range.test.cc.
References gem5::output(), and gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
InterleavingAddressesDoesNotIntersectViaMerging | ) |
Definition at line 525 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
InterleavingAddressesDoNotIntersect | ) |
Definition at line 476 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
InterleavingAddressesDoNotMergeWith | ) |
Definition at line 454 of file addr_range.test.cc.
References gem5::AddrRange::mergesWith().
TEST | ( | AddrRangeTest | , |
InterleavingAddressesGetOffset | ) |
Definition at line 820 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
InterleavingAddressesIntersectsViaMerging | ) |
Definition at line 503 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
InterleavingAddressesMergesWith | ) |
Definition at line 435 of file addr_range.test.cc.
References gem5::AddrRange::mergesWith().
TEST | ( | AddrRangeTest | , |
InterleavingEqualTo | ) |
Definition at line 884 of file addr_range.test.cc.
TEST | ( | AddrRangeTest | , |
InterleavingLessThanStartEquals | ) |
Definition at line 838 of file addr_range.test.cc.
TEST | ( | AddrRangeTest | , |
InterleavingLessThanStartNotEquals | ) |
Definition at line 863 of file addr_range.test.cc.
TEST | ( | AddrRangeTest | , |
InterleavingNotEqualTo | ) |
Definition at line 903 of file addr_range.test.cc.
TEST | ( | AddrRangeTest | , |
IntersectsAddressWithin | ) |
Definition at line 190 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
IntersectsCompleteOverlap | ) |
Definition at line 181 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
IntersectsFirstLastAddressOverlap | ) |
Definition at line 217 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
IntersectsNoOverlap | ) |
Definition at line 208 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
IntersectsPartialOverlap | ) |
Definition at line 199 of file addr_range.test.cc.
References gem5::AddrRange::intersects().
TEST | ( | AddrRangeTest | , |
InvalidRange | ) |
Definition at line 118 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
isNotSubsetLastByte | ) |
Definition at line 1547 of file addr_range.test.cc.
References gem5::AddrRange::isSubset(), and gem5::RangeSize().
TEST | ( | AddrRangeTest | , |
isSubsetCompleteOverlap | ) |
Definition at line 230 of file addr_range.test.cc.
References gem5::AddrRange::isSubset().
TEST | ( | AddrRangeTest | , |
isSubsetInterleavedCompleteOverlap | ) |
Definition at line 266 of file addr_range.test.cc.
TEST | ( | AddrRangeTest | , |
isSubsetInterleavedNoOverlap | ) |
Definition at line 274 of file addr_range.test.cc.
TEST | ( | AddrRangeTest | , |
isSubsetInterleavedPartialOverlap | ) |
Definition at line 282 of file addr_range.test.cc.
TEST | ( | AddrRangeTest | , |
isSubsetLastByte | ) |
Definition at line 1561 of file addr_range.test.cc.
References gem5::AddrRange::isSubset(), and gem5::RangeSize().
TEST | ( | AddrRangeTest | , |
isSubsetNoOverlap | ) |
Definition at line 239 of file addr_range.test.cc.
References gem5::AddrRange::isSubset().
TEST | ( | AddrRangeTest | , |
isSubsetPartialSubset | ) |
Definition at line 257 of file addr_range.test.cc.
References gem5::AddrRange::isSubset().
TEST | ( | AddrRangeTest | , |
isSubsetTrueSubset | ) |
Definition at line 248 of file addr_range.test.cc.
References gem5::AddrRange::isSubset().
TEST | ( | AddrRangeTest | , |
LegacyConstructorNoInterleaving | ) |
Definition at line 996 of file addr_range.test.cc.
References expected().
TEST | ( | AddrRangeTest | , |
LegacyConstructorOneBitMask | ) |
Definition at line 1007 of file addr_range.test.cc.
References expected().
TEST | ( | AddrRangeTest | , |
LegacyConstructorTwoBitMask | ) |
Definition at line 1023 of file addr_range.test.cc.
References expected().
TEST | ( | AddrRangeTest | , |
LegacyConstructorTwoBitMaskWithXOR | ) |
Definition at line 1040 of file addr_range.test.cc.
References gem5::AddrRange::contains(), and gem5::ArmISA::i.
TEST | ( | AddrRangeTest | , |
LessThan | ) |
Definition at line 124 of file addr_range.test.cc.
TEST | ( | AddrRangeTest | , |
LsbInterleavingMask | ) |
Definition at line 362 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
MergesWith | ) |
Definition at line 159 of file addr_range.test.cc.
References gem5::AddrRange::mergesWith().
TEST | ( | AddrRangeTest | , |
MergingInterleavingAddressRanges | ) |
Definition at line 932 of file addr_range.test.cc.
References gem5::output().
TEST | ( | AddrRangeTest | , |
MergingInterleavingAddressRangesOneRange | ) |
Definition at line 959 of file addr_range.test.cc.
References gem5::output(), and gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
MultipleExclusion | ) |
Definition at line 1292 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
MultipleExclusionOverlapping | ) |
Definition at line 1326 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
MultipleExclusionUnsorted | ) |
Definition at line 1394 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
NoExclusion | ) |
Definition at line 1234 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
OffsetInRange | ) |
Definition at line 337 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
OffsetOutOfRangeAfter | ) |
Definition at line 343 of file addr_range.test.cc.
References gem5::MaxAddr, and gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
OffsetOutOfRangeBefore | ) |
Definition at line 352 of file addr_range.test.cc.
References gem5::MaxAddr, and gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
Range16Bit | ) |
Definition at line 105 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
RangeExConstruction | ) |
Definition at line 1077 of file addr_range.test.cc.
References gem5::MipsISA::r, and gem5::RangeEx().
TEST | ( | AddrRangeTest | , |
RangeInConstruction | ) |
Definition at line 1084 of file addr_range.test.cc.
References gem5::MipsISA::r, and gem5::RangeIn().
TEST | ( | AddrRangeTest | , |
RangeSizeConstruction | ) |
Definition at line 1091 of file addr_range.test.cc.
References gem5::MipsISA::r, and gem5::RangeSize().
TEST | ( | AddrRangeTest | , |
RangeSizeOfOne | ) |
Definition at line 92 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
RemoveIntlvBits | ) |
Definition at line 311 of file addr_range.test.cc.
References gem5::ArmISA::a, and gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
SubtractionAssignmentOfRangeFromRangeList | ) |
Definition at line 1515 of file addr_range.test.cc.
References gem5::X86ISA::base.
TEST | ( | AddrRangeTest | , |
SubtractionAssignmentOfRangeListFromRangeList | ) |
Definition at line 1528 of file addr_range.test.cc.
References gem5::X86ISA::base.
TEST | ( | AddrRangeTest | , |
SubtractionOfRangeFromRangeList | ) |
Definition at line 1483 of file addr_range.test.cc.
References gem5::X86ISA::base.
TEST | ( | AddrRangeTest | , |
SubtractionOfRangeListFromRangeList | ) |
Definition at line 1496 of file addr_range.test.cc.
References gem5::X86ISA::base.
TEST | ( | AddrRangeTest | , |
SubtractionOperatorRange | ) |
Definition at line 1456 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
SubtractionOperatorRangeList | ) |
Definition at line 1468 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
TwoInterleavingMasks | ) |
Definition at line 392 of file addr_range.test.cc.
References gem5::MipsISA::r.
TEST | ( | AddrRangeTest | , |
ValidRange | ) |
Definition at line 51 of file addr_range.test.cc.
References gem5::MipsISA::r.