gem5  [DEVELOP-FOR-23.0]
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
amo.test.cc File Reference
#include <gtest/gtest.h>
#include <string>
#include <array>
#include "base/amo.hh"

Go to the source code of this file.

Functions

void multiply2Op (int *b, int a)
 
void multiply3Op (int *b, int a, int c)
 
void addSubColumns (int *b, const std::array< int, 2 > &a, const std::array< int, 2 > &c)
 
 TEST (AmoTest, AtomicOpMin)
 
 TEST (AmoTest, AtomicOpMax)
 
 TEST (AmoTest, AtomicOpDec)
 
 TEST (AmoTest, AtomicOpInc)
 
 TEST (AmoTest, AtomicOpSub)
 
 TEST (AmoTest, AtomicOpAdd)
 
 TEST (AmoTest, AtomicOpExch)
 
 TEST (AmoTest, AtomicOpXor)
 
 TEST (AmoTest, AtomicOpOr)
 
 TEST (AmoTest, AtomicOpAnd)
 
 TEST (AmoTest, AtomicGeneric2Op)
 
 TEST (AmoTest, AtomicGeneric3Op)
 
 TEST (AmoTest, AtomicGenericPair3Op)
 

Function Documentation

◆ addSubColumns()

void addSubColumns ( int *  b,
const std::array< int, 2 > &  a,
const std::array< int, 2 > &  c 
)

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

References gem5::ArmISA::a, gem5::ArmISA::b, and gem5::VegaISA::c.

Referenced by TEST().

◆ multiply2Op()

void multiply2Op ( int *  b,
int  a 
)

Definition at line 41 of file amo.test.cc.

References gem5::ArmISA::a, and gem5::ArmISA::b.

Referenced by TEST().

◆ multiply3Op()

void multiply3Op ( int *  b,
int  a,
int  c 
)

Definition at line 47 of file amo.test.cc.

References gem5::ArmISA::a, gem5::ArmISA::b, and gem5::VegaISA::c.

Referenced by TEST().

◆ TEST() [1/13]

TEST ( AmoTest  ,
AtomicGeneric2Op   
)

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

References gem5::TypedAtomicOpFunctor< T >::execute(), and multiply2Op().

◆ TEST() [2/13]

TEST ( AmoTest  ,
AtomicGeneric3Op   
)

Definition at line 225 of file amo.test.cc.

References gem5::TypedAtomicOpFunctor< T >::execute(), and multiply3Op().

◆ TEST() [3/13]

TEST ( AmoTest  ,
AtomicGenericPair3Op   
)

◆ TEST() [4/13]

TEST ( AmoTest  ,
AtomicOpAdd   
)

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

References gem5::TypedAtomicOpFunctor< T >::execute().

◆ TEST() [5/13]

TEST ( AmoTest  ,
AtomicOpAnd   
)

Definition at line 200 of file amo.test.cc.

References gem5::TypedAtomicOpFunctor< T >::execute().

◆ TEST() [6/13]

TEST ( AmoTest  ,
AtomicOpDec   
)

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

References gem5::TypedAtomicOpFunctor< T >::execute().

◆ TEST() [7/13]

TEST ( AmoTest  ,
AtomicOpExch   
)

Definition at line 158 of file amo.test.cc.

References gem5::TypedAtomicOpFunctor< T >::execute().

◆ TEST() [8/13]

TEST ( AmoTest  ,
AtomicOpInc   
)

Definition at line 116 of file amo.test.cc.

References gem5::TypedAtomicOpFunctor< T >::execute().

◆ TEST() [9/13]

TEST ( AmoTest  ,
AtomicOpMax   
)

Definition at line 81 of file amo.test.cc.

References gem5::TypedAtomicOpFunctor< T >::execute().

◆ TEST() [10/13]

TEST ( AmoTest  ,
AtomicOpMin   
)

Definition at line 59 of file amo.test.cc.

References gem5::TypedAtomicOpFunctor< T >::execute().

◆ TEST() [11/13]

TEST ( AmoTest  ,
AtomicOpOr   
)

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

References gem5::TypedAtomicOpFunctor< T >::execute().

◆ TEST() [12/13]

TEST ( AmoTest  ,
AtomicOpSub   
)

Definition at line 130 of file amo.test.cc.

References gem5::TypedAtomicOpFunctor< T >::execute().

◆ TEST() [13/13]

TEST ( AmoTest  ,
AtomicOpXor   
)

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

References gem5::TypedAtomicOpFunctor< T >::execute().


Generated on Sun Jul 30 2023 01:57:04 for gem5 by doxygen 1.8.17