gem5 v24.0.0.0
Loading...
Searching...
No Matches
bitfield.test.cc File Reference
#include <gtest/gtest.h>
#include "base/bitfield.hh"

Go to the source code of this file.

Functions

 TEST (BitfieldTest, Mask0Bits)
 
 TEST (BitfieldTest, Mask1Bit)
 
 TEST (BitfieldTest, Mask8Bits)
 
 TEST (BitfieldTest, Mask16Bits)
 
 TEST (BitfieldTest, Mask32Bits)
 
 TEST (BitfieldTest, MaskAllBits)
 
 TEST (BitfieldTest, MaskAllBitsGreaterThan64)
 
 TEST (BitfieldTest, MaskOneBit)
 
 TEST (BitfieldTest, MaskTwoBits)
 
 TEST (BitfieldTest, MaskThreeBits)
 
 TEST (BitfieldTest, MaskEntireRange)
 
 TEST (BitfieldTest, MaskOutsideOfRange)
 
 TEST (BitfieldTest, ExtractOneBit)
 
 TEST (BitfieldTest, Extract63rdBit)
 
 TEST (BitfieldTest, ExtractFirstBit)
 
 TEST (BitfieldTest, ExtractFirstBitFirstBitZero)
 
 TEST (BitfieldTest, ExtractThreeBits)
 
 TEST (BitfieldTest, MbitsStandardCase)
 
 TEST (BitfieldTest, MbitsEntireRange)
 
 TEST (BitfieldTest, SignExtendPositiveInput)
 
 TEST (BitfieldTest, SignExtendNegativeInput)
 
 TEST (BitfieldTest, SignExtendPositiveInputOutsideRange)
 
 TEST (BitfieldTest, SignExtendNegativeInputOutsideRange)
 
 TEST (BitfieldTest, SignZeroExtendPositiveInput)
 
 TEST (BitfieldTest, SignZeroExtendNegativeInput)
 
 TEST (BitfieldTest, SignZeroExtendPositiveInputOutsideRange)
 
 TEST (BitfieldTest, SignZeroExtendNegativeInputOutsideRange)
 
 TEST (BitfieldTest, InsertOneBitTo3)
 
 TEST (BitfieldTest, InsertOneBitTo18)
 
 TEST (BitfieldTest, InsertOneBitTo3LsbZero)
 
 TEST (BitfieldTest, InsertOneBitTo18LsbZero)
 
 TEST (BitfieldTest, InsertOnBitTo8LsbZero)
 
 TEST (BitfieldTest, InsertMultipleBits)
 
 TEST (BitfieldTest, InsertMultipleBitsOverwrite)
 
 TEST (BitfieldTest, ReverseBits8Bit)
 
 TEST (BitfieldTest, ReverseBits64Bit)
 
 TEST (BitfieldTest, FindMsb29)
 
 TEST (BitfieldTest, FindMsb63)
 
 TEST (BitfieldTest, FindMsbZero)
 
 TEST (BitfieldTest, FindLsb)
 
 TEST (BitfieldTest, FindLsbZero)
 
 TEST (BitfieldTest, FindLsbGeneralized)
 
 TEST (BitfieldTest, PopCountNoBits)
 
 TEST (BitfieldTest, PopCountOneBit)
 
 TEST (BitfieldTest, PopCountManyBits)
 
 TEST (BitfieldTest, PopCountAllOnes)
 
 TEST (BitfieldTest, AlignToPowerOfTwo0)
 
 TEST (BitfieldTest, AlignToPowerOfTwo3)
 
 TEST (BitfieldTest, AlignToPowerOfTwo5)
 
 TEST (BitfieldTest, AlignToPowerOfTwo10)
 
 TEST (BitfieldTest, AlignToPowerOfTwo16)
 
 TEST (BitfieldTest, AlignToPowerOfTwo31)
 
 TEST (BitfieldTest, CountTrailingZeros32BitsNoTrailing)
 
 TEST (BitfieldTest, CountTrailingZeros32Bits)
 
 TEST (BitfieldTest, CountTrailingZeros64BitsNoTrailing)
 
 TEST (BitfieldTest, CountTrailingZeros64Bits)
 
 TEST (BitfieldTest, CountTrailingZero64AllZeros)
 
 TEST (BitfieldTest, CountLeadingZeros32BitsNoTrailing)
 
 TEST (BitfieldTest, CountLeadingZeros32Bits)
 
 TEST (BitfieldTest, CountLeadingZeros64BitsNoTrailing)
 
 TEST (BitfieldTest, CountLeadingZeros64Bits)
 
 TEST (BitfieldTest, CountLeadingZero64AllZeros)
 

Function Documentation

◆ TEST() [1/62]

TEST ( BitfieldTest ,
AlignToPowerOfTwo0  )

Definition at line 376 of file bitfield.test.cc.

References gem5::alignToPowerOfTwo().

◆ TEST() [2/62]

TEST ( BitfieldTest ,
AlignToPowerOfTwo10  )

Definition at line 391 of file bitfield.test.cc.

References gem5::alignToPowerOfTwo().

◆ TEST() [3/62]

TEST ( BitfieldTest ,
AlignToPowerOfTwo16  )

Definition at line 396 of file bitfield.test.cc.

References gem5::alignToPowerOfTwo().

◆ TEST() [4/62]

TEST ( BitfieldTest ,
AlignToPowerOfTwo3  )

Definition at line 381 of file bitfield.test.cc.

References gem5::alignToPowerOfTwo().

◆ TEST() [5/62]

TEST ( BitfieldTest ,
AlignToPowerOfTwo31  )

Definition at line 401 of file bitfield.test.cc.

References gem5::alignToPowerOfTwo().

◆ TEST() [6/62]

TEST ( BitfieldTest ,
AlignToPowerOfTwo5  )

Definition at line 386 of file bitfield.test.cc.

References gem5::alignToPowerOfTwo().

◆ TEST() [7/62]

TEST ( BitfieldTest ,
CountLeadingZero64AllZeros  )

Definition at line 472 of file bitfield.test.cc.

References gem5::clz64().

◆ TEST() [8/62]

TEST ( BitfieldTest ,
CountLeadingZeros32Bits  )

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

References gem5::clz32().

◆ TEST() [9/62]

TEST ( BitfieldTest ,
CountLeadingZeros32BitsNoTrailing  )

Definition at line 448 of file bitfield.test.cc.

References gem5::clz32().

◆ TEST() [10/62]

TEST ( BitfieldTest ,
CountLeadingZeros64Bits  )

Definition at line 466 of file bitfield.test.cc.

References gem5::clz64().

◆ TEST() [11/62]

TEST ( BitfieldTest ,
CountLeadingZeros64BitsNoTrailing  )

Definition at line 460 of file bitfield.test.cc.

References gem5::clz64().

◆ TEST() [12/62]

TEST ( BitfieldTest ,
CountTrailingZero64AllZeros  )

Definition at line 436 of file bitfield.test.cc.

References gem5::ctz64().

◆ TEST() [13/62]

TEST ( BitfieldTest ,
CountTrailingZeros32Bits  )

Definition at line 418 of file bitfield.test.cc.

References gem5::ctz32().

◆ TEST() [14/62]

TEST ( BitfieldTest ,
CountTrailingZeros32BitsNoTrailing  )

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

References gem5::ctz32().

◆ TEST() [15/62]

TEST ( BitfieldTest ,
CountTrailingZeros64Bits  )

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

References gem5::ctz64().

◆ TEST() [16/62]

TEST ( BitfieldTest ,
CountTrailingZeros64BitsNoTrailing  )

Definition at line 424 of file bitfield.test.cc.

References gem5::ctz64().

◆ TEST() [17/62]

TEST ( BitfieldTest ,
Extract63rdBit  )

Definition at line 126 of file bitfield.test.cc.

References gem5::bits(), and gem5::RiscvISA::x.

◆ TEST() [18/62]

TEST ( BitfieldTest ,
ExtractFirstBit  )

Definition at line 132 of file bitfield.test.cc.

References gem5::bits(), and gem5::RiscvISA::x.

◆ TEST() [19/62]

TEST ( BitfieldTest ,
ExtractFirstBitFirstBitZero  )

Definition at line 138 of file bitfield.test.cc.

References gem5::bits(), and gem5::RiscvISA::x.

◆ TEST() [20/62]

TEST ( BitfieldTest ,
ExtractOneBit  )

Definition at line 120 of file bitfield.test.cc.

References gem5::bits(), and gem5::RiscvISA::x.

◆ TEST() [21/62]

TEST ( BitfieldTest ,
ExtractThreeBits  )

Definition at line 144 of file bitfield.test.cc.

References gem5::bits(), and gem5::RiscvISA::x.

◆ TEST() [22/62]

TEST ( BitfieldTest ,
FindLsb  )

Definition at line 315 of file bitfield.test.cc.

References gem5::findLsbSet(), and gem5::X86ISA::val.

◆ TEST() [23/62]

TEST ( BitfieldTest ,
FindLsbGeneralized  )

Definition at line 327 of file bitfield.test.cc.

References gem5::X86ISA::bs, gem5::findLsbSet(), and gem5::ArmISA::i.

◆ TEST() [24/62]

TEST ( BitfieldTest ,
FindLsbZero  )

Definition at line 322 of file bitfield.test.cc.

References gem5::findLsbSet().

◆ TEST() [25/62]

TEST ( BitfieldTest ,
FindMsb29  )

Definition at line 297 of file bitfield.test.cc.

References gem5::findMsbSet(), and gem5::X86ISA::val.

◆ TEST() [26/62]

TEST ( BitfieldTest ,
FindMsb63  )

Definition at line 303 of file bitfield.test.cc.

References gem5::findMsbSet(), and gem5::X86ISA::val.

◆ TEST() [27/62]

TEST ( BitfieldTest ,
FindMsbZero  )

Definition at line 310 of file bitfield.test.cc.

References gem5::findMsbSet().

◆ TEST() [28/62]

TEST ( BitfieldTest ,
InsertMultipleBits  )

Definition at line 267 of file bitfield.test.cc.

References gem5::bits(), gem5::insertBits(), and gem5::X86ISA::val.

◆ TEST() [29/62]

TEST ( BitfieldTest ,
InsertMultipleBitsOverwrite  )

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

References gem5::bits(), gem5::insertBits(), and gem5::X86ISA::val.

◆ TEST() [30/62]

TEST ( BitfieldTest ,
InsertOnBitTo8LsbZero  )

Definition at line 260 of file bitfield.test.cc.

References gem5::bits(), gem5::insertBits(), and gem5::X86ISA::val.

◆ TEST() [31/62]

TEST ( BitfieldTest ,
InsertOneBitTo18  )

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

References gem5::bits(), gem5::insertBits(), and gem5::X86ISA::val.

◆ TEST() [32/62]

TEST ( BitfieldTest ,
InsertOneBitTo18LsbZero  )

Definition at line 253 of file bitfield.test.cc.

References gem5::bits(), gem5::insertBits(), and gem5::X86ISA::val.

◆ TEST() [33/62]

TEST ( BitfieldTest ,
InsertOneBitTo3  )

Definition at line 232 of file bitfield.test.cc.

References gem5::bits(), gem5::insertBits(), and gem5::X86ISA::val.

◆ TEST() [34/62]

TEST ( BitfieldTest ,
InsertOneBitTo3LsbZero  )

Definition at line 246 of file bitfield.test.cc.

References gem5::bits(), gem5::insertBits(), and gem5::X86ISA::val.

◆ TEST() [35/62]

TEST ( BitfieldTest ,
Mask0Bits  )

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

References gem5::ArmISA::mask.

◆ TEST() [36/62]

TEST ( BitfieldTest ,
Mask16Bits  )

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

References gem5::ArmISA::mask.

◆ TEST() [37/62]

TEST ( BitfieldTest ,
Mask1Bit  )

Definition at line 53 of file bitfield.test.cc.

References gem5::ArmISA::mask.

◆ TEST() [38/62]

TEST ( BitfieldTest ,
Mask32Bits  )

Definition at line 68 of file bitfield.test.cc.

References gem5::ArmISA::mask.

◆ TEST() [39/62]

TEST ( BitfieldTest ,
Mask8Bits  )

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

References gem5::ArmISA::mask.

◆ TEST() [40/62]

TEST ( BitfieldTest ,
MaskAllBits  )

Definition at line 73 of file bitfield.test.cc.

References gem5::ArmISA::mask.

◆ TEST() [41/62]

TEST ( BitfieldTest ,
MaskAllBitsGreaterThan64  )

Definition at line 78 of file bitfield.test.cc.

References gem5::ArmISA::mask.

◆ TEST() [42/62]

TEST ( BitfieldTest ,
MaskEntireRange  )

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

References gem5::ArmISA::mask.

◆ TEST() [43/62]

TEST ( BitfieldTest ,
MaskOneBit  )

Definition at line 90 of file bitfield.test.cc.

References gem5::ArmISA::mask.

◆ TEST() [44/62]

TEST ( BitfieldTest ,
MaskOutsideOfRange  )

Definition at line 110 of file bitfield.test.cc.

References gem5::ArmISA::mask.

◆ TEST() [45/62]

TEST ( BitfieldTest ,
MaskThreeBits  )

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

References gem5::ArmISA::mask.

◆ TEST() [46/62]

TEST ( BitfieldTest ,
MaskTwoBits  )

Definition at line 95 of file bitfield.test.cc.

References gem5::ArmISA::mask.

◆ TEST() [47/62]

TEST ( BitfieldTest ,
MbitsEntireRange  )

Definition at line 161 of file bitfield.test.cc.

References gem5::mbits(), and gem5::RiscvISA::x.

◆ TEST() [48/62]

TEST ( BitfieldTest ,
MbitsStandardCase  )

Definition at line 155 of file bitfield.test.cc.

References gem5::mbits(), and gem5::RiscvISA::x.

◆ TEST() [49/62]

TEST ( BitfieldTest ,
PopCountAllOnes  )

Definition at line 365 of file bitfield.test.cc.

References gem5::popCount(), and gem5::X86ISA::val.

◆ TEST() [50/62]

TEST ( BitfieldTest ,
PopCountManyBits  )

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

References gem5::popCount(), and gem5::X86ISA::val.

◆ TEST() [51/62]

TEST ( BitfieldTest ,
PopCountNoBits  )

Definition at line 348 of file bitfield.test.cc.

References gem5::popCount().

◆ TEST() [52/62]

TEST ( BitfieldTest ,
PopCountOneBit  )

Definition at line 353 of file bitfield.test.cc.

References gem5::popCount(), and gem5::X86ISA::val.

◆ TEST() [53/62]

TEST ( BitfieldTest ,
ReverseBits64Bit  )

Definition at line 288 of file bitfield.test.cc.

References gem5::reverseBits().

◆ TEST() [54/62]

TEST ( BitfieldTest ,
ReverseBits8Bit  )

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

References gem5::reverseBits().

◆ TEST() [55/62]

TEST ( BitfieldTest ,
SignExtendNegativeInput  )

Definition at line 179 of file bitfield.test.cc.

References gem5::output(), gem5::sext(), and gem5::X86ISA::val.

◆ TEST() [56/62]

TEST ( BitfieldTest ,
SignExtendNegativeInputOutsideRange  )

Definition at line 191 of file bitfield.test.cc.

References gem5::output(), gem5::sext(), and gem5::X86ISA::val.

◆ TEST() [57/62]

TEST ( BitfieldTest ,
SignExtendPositiveInput  )

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

References gem5::output(), gem5::sext(), and gem5::X86ISA::val.

◆ TEST() [58/62]

TEST ( BitfieldTest ,
SignExtendPositiveInputOutsideRange  )

Definition at line 186 of file bitfield.test.cc.

References gem5::sext().

◆ TEST() [59/62]

TEST ( BitfieldTest ,
SignZeroExtendNegativeInput  )

Definition at line 209 of file bitfield.test.cc.

References gem5::output(), gem5::szext(), and gem5::X86ISA::val.

◆ TEST() [60/62]

TEST ( BitfieldTest ,
SignZeroExtendNegativeInputOutsideRange  )

Definition at line 221 of file bitfield.test.cc.

References gem5::output(), gem5::szext(), and gem5::X86ISA::val.

◆ TEST() [61/62]

TEST ( BitfieldTest ,
SignZeroExtendPositiveInput  )

Definition at line 202 of file bitfield.test.cc.

References gem5::output(), gem5::szext(), and gem5::X86ISA::val.

◆ TEST() [62/62]

TEST ( BitfieldTest ,
SignZeroExtendPositiveInputOutsideRange  )

Definition at line 216 of file bitfield.test.cc.

References gem5::szext().


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