gem5 v24.0.0.0
Loading...
Searching...
No Matches
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::ArmISA::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::ArmISA::c.

Referenced by TEST().

◆ TEST() [1/13]

TEST ( AmoTest ,
AtomicGeneric2Op  )

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

References multiply2Op().

◆ TEST() [2/13]

TEST ( AmoTest ,
AtomicGeneric3Op  )

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

References multiply3Op().

◆ TEST() [3/13]

TEST ( AmoTest ,
AtomicGenericPair3Op  )

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

References gem5::ArmISA::a, addSubColumns(), and gem5::ArmISA::c.

◆ TEST() [4/13]

TEST ( AmoTest ,
AtomicOpAdd  )

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

◆ TEST() [5/13]

TEST ( AmoTest ,
AtomicOpAnd  )

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

◆ TEST() [6/13]

TEST ( AmoTest ,
AtomicOpDec  )

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

◆ TEST() [7/13]

TEST ( AmoTest ,
AtomicOpExch  )

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

◆ TEST() [8/13]

TEST ( AmoTest ,
AtomicOpInc  )

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

◆ TEST() [9/13]

TEST ( AmoTest ,
AtomicOpMax  )

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

◆ TEST() [10/13]

TEST ( AmoTest ,
AtomicOpMin  )

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

◆ TEST() [11/13]

TEST ( AmoTest ,
AtomicOpOr  )

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

◆ TEST() [12/13]

TEST ( AmoTest ,
AtomicOpSub  )

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

◆ TEST() [13/13]

TEST ( AmoTest ,
AtomicOpXor  )

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


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