gem5  v21.1.0.2
Functions
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, 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)
 

Function Documentation

◆ TEST() [1/56]

TEST ( BitfieldTest  ,
AlignToPowerOfTwo0   
)

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

References gem5::alignToPowerOfTwo().

◆ TEST() [2/56]

TEST ( BitfieldTest  ,
AlignToPowerOfTwo10   
)

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

References gem5::alignToPowerOfTwo().

◆ TEST() [3/56]

TEST ( BitfieldTest  ,
AlignToPowerOfTwo16   
)

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

References gem5::alignToPowerOfTwo().

◆ TEST() [4/56]

TEST ( BitfieldTest  ,
AlignToPowerOfTwo3   
)

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

References gem5::alignToPowerOfTwo().

◆ TEST() [5/56]

TEST ( BitfieldTest  ,
AlignToPowerOfTwo31   
)

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

References gem5::alignToPowerOfTwo().

◆ TEST() [6/56]

TEST ( BitfieldTest  ,
AlignToPowerOfTwo5   
)

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

References gem5::alignToPowerOfTwo().

◆ TEST() [7/56]

TEST ( BitfieldTest  ,
CountTrailingZero64AllZeros   
)

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

References gem5::ctz64().

◆ TEST() [8/56]

TEST ( BitfieldTest  ,
CountTrailingZeros32Bits   
)

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

References gem5::ctz32().

◆ TEST() [9/56]

TEST ( BitfieldTest  ,
CountTrailingZeros32BitsNoTrailing   
)

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

References gem5::ctz32().

◆ TEST() [10/56]

TEST ( BitfieldTest  ,
CountTrailingZeros64Bits   
)

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

References gem5::ctz64().

◆ TEST() [11/56]

TEST ( BitfieldTest  ,
CountTrailingZeros64BitsNoTrailing   
)

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

References gem5::ctz64().

◆ TEST() [12/56]

TEST ( BitfieldTest  ,
Extract63rdBit   
)

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

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

◆ TEST() [13/56]

TEST ( BitfieldTest  ,
ExtractFirstBit   
)

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

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

◆ TEST() [14/56]

TEST ( BitfieldTest  ,
ExtractFirstBitFirstBitZero   
)

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

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

◆ TEST() [15/56]

TEST ( BitfieldTest  ,
ExtractOneBit   
)

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

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

◆ TEST() [16/56]

TEST ( BitfieldTest  ,
ExtractThreeBits   
)

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

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

◆ TEST() [17/56]

TEST ( BitfieldTest  ,
FindLsb   
)

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

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

◆ TEST() [18/56]

TEST ( BitfieldTest  ,
FindLsbZero   
)

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

References gem5::findLsbSet().

◆ TEST() [19/56]

TEST ( BitfieldTest  ,
FindMsb29   
)

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

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

◆ TEST() [20/56]

TEST ( BitfieldTest  ,
FindMsb63   
)

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

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

◆ TEST() [21/56]

TEST ( BitfieldTest  ,
FindMsbZero   
)

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

References gem5::findMsbSet().

◆ TEST() [22/56]

TEST ( BitfieldTest  ,
InsertMultipleBits   
)

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

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

◆ TEST() [23/56]

TEST ( BitfieldTest  ,
InsertMultipleBitsOverwrite   
)

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

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

◆ TEST() [24/56]

TEST ( BitfieldTest  ,
InsertOnBitTo8LsbZero   
)

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

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

◆ TEST() [25/56]

TEST ( BitfieldTest  ,
InsertOneBitTo18   
)

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

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

◆ TEST() [26/56]

TEST ( BitfieldTest  ,
InsertOneBitTo18LsbZero   
)

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

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

◆ TEST() [27/56]

TEST ( BitfieldTest  ,
InsertOneBitTo3   
)

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

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

◆ TEST() [28/56]

TEST ( BitfieldTest  ,
InsertOneBitTo3LsbZero   
)

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

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

◆ TEST() [29/56]

TEST ( BitfieldTest  ,
Mask0Bits   
)

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

References gem5::mask().

◆ TEST() [30/56]

TEST ( BitfieldTest  ,
Mask16Bits   
)

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

References gem5::mask().

◆ TEST() [31/56]

TEST ( BitfieldTest  ,
Mask1Bit   
)

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

References gem5::mask().

◆ TEST() [32/56]

TEST ( BitfieldTest  ,
Mask32Bits   
)

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

References gem5::mask().

◆ TEST() [33/56]

TEST ( BitfieldTest  ,
Mask8Bits   
)

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

References gem5::mask().

◆ TEST() [34/56]

TEST ( BitfieldTest  ,
MaskAllBits   
)

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

References gem5::mask().

◆ TEST() [35/56]

TEST ( BitfieldTest  ,
MaskAllBitsGreaterThan64   
)

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

References gem5::mask().

◆ TEST() [36/56]

TEST ( BitfieldTest  ,
MaskEntireRange   
)

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

References gem5::mask().

◆ TEST() [37/56]

TEST ( BitfieldTest  ,
MaskOneBit   
)

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

References gem5::mask().

◆ TEST() [38/56]

TEST ( BitfieldTest  ,
MaskOutsideOfRange   
)

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

References gem5::mask().

◆ TEST() [39/56]

TEST ( BitfieldTest  ,
MaskThreeBits   
)

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

References gem5::mask().

◆ TEST() [40/56]

TEST ( BitfieldTest  ,
MaskTwoBits   
)

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

References gem5::mask().

◆ TEST() [41/56]

TEST ( BitfieldTest  ,
MbitsEntireRange   
)

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

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

◆ TEST() [42/56]

TEST ( BitfieldTest  ,
MbitsStandardCase   
)

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

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

◆ TEST() [43/56]

TEST ( BitfieldTest  ,
PopCountAllOnes   
)

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

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

◆ TEST() [44/56]

TEST ( BitfieldTest  ,
PopCountManyBits   
)

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

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

◆ TEST() [45/56]

TEST ( BitfieldTest  ,
PopCountNoBits   
)

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

References gem5::popCount().

◆ TEST() [46/56]

TEST ( BitfieldTest  ,
PopCountOneBit   
)

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

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

◆ TEST() [47/56]

TEST ( BitfieldTest  ,
ReverseBits64Bit   
)

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

References gem5::reverseBits().

◆ TEST() [48/56]

TEST ( BitfieldTest  ,
ReverseBits8Bit   
)

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

References gem5::reverseBits().

◆ TEST() [49/56]

TEST ( BitfieldTest  ,
SignExtendNegativeInput   
)

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

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

◆ TEST() [50/56]

TEST ( BitfieldTest  ,
SignExtendNegativeInputOutsideRange   
)

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

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

◆ TEST() [51/56]

TEST ( BitfieldTest  ,
SignExtendPositiveInput   
)

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

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

◆ TEST() [52/56]

TEST ( BitfieldTest  ,
SignExtendPositiveInputOutsideRange   
)

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

◆ TEST() [53/56]

TEST ( BitfieldTest  ,
SignZeroExtendNegativeInput   
)

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

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

◆ TEST() [54/56]

TEST ( BitfieldTest  ,
SignZeroExtendNegativeInputOutsideRange   
)

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

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

◆ TEST() [55/56]

TEST ( BitfieldTest  ,
SignZeroExtendPositiveInput   
)

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

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

◆ TEST() [56/56]

TEST ( BitfieldTest  ,
SignZeroExtendPositiveInputOutsideRange   
)

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


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