|
gem5
v21.0.1.0
|
#include <gtest/gtest-spi.h>#include <gtest/gtest.h>#include <utility>#include "base/sat_counter.hh"Go to the source code of this file.
Functions | |
| TEST (SatCounterTest, MaximumValue) | |
| Test if the maximum value is indeed the maximum value reachable. More... | |
| TEST (SatCounterTest, MinimumValue) | |
| Test if the minimum value is indeed the mimimum value reachable. More... | |
| TEST (SatCounterTest, InitialValue) | |
| Test initializing the counter with a value, updating it and then resetting. More... | |
| TEST (SatCounterTest, SaturationPercentile) | |
| Test calculating saturation percentile. More... | |
| TEST (SatCounterTest, Saturate) | |
| Test abrupt saturation. More... | |
| TEST (SatCounterTest, IntComparison) | |
| Test back and forth against an int. More... | |
| TEST (SatCounterTest, Shift) | |
| Test shift operators. More... | |
| TEST (SatCounterTest, PrePostOperators) | |
| Test both pre and post operators. More... | |
| TEST (SatCounterTest, CopyMove) | |
| Test copy and move for both constructor and assignment. More... | |
| TEST (SatCounterTest, AddSubAssignment) | |
| Test add-assignment and subtract assignment. More... | |
| TEST (SatCounterTest, NegativeAddSubAssignment) | |
| Test add-assignment and subtract assignment using negative numbers. More... | |
| TEST (SatCounterTest, Size16) | |
| Test max and min when using SatCounter16. More... | |
| TEST (SatCounterTest, Size32) | |
| Test max and min when using SatCounter32. More... | |
| TEST (SatCounterTest, Size64) | |
| Test max and min when using SatCounter64. More... | |
| TEST | ( | SatCounterTest | , |
| AddSubAssignment | |||
| ) |
Test add-assignment and subtract assignment.
Definition at line 283 of file sat_counter.test.cc.
References bits().
| TEST | ( | SatCounterTest | , |
| CopyMove | |||
| ) |
Test copy and move for both constructor and assignment.
Definition at line 229 of file sat_counter.test.cc.
References bits(), ArmISA::i, and GenericSatCounter< T >::reset().
| TEST | ( | SatCounterTest | , |
| InitialValue | |||
| ) |
Test initializing the counter with a value, updating it and then resetting.
Definition at line 70 of file sat_counter.test.cc.
References bits(), and GenericSatCounter< T >::reset().
| TEST | ( | SatCounterTest | , |
| IntComparison | |||
| ) |
Test back and forth against an int.
Definition at line 118 of file sat_counter.test.cc.
References bits().
| TEST | ( | SatCounterTest | , |
| MaximumValue | |||
| ) |
Test if the maximum value is indeed the maximum value reachable.
Definition at line 39 of file sat_counter.test.cc.
| TEST | ( | SatCounterTest | , |
| MinimumValue | |||
| ) |
Test if the minimum value is indeed the mimimum value reachable.
Definition at line 55 of file sat_counter.test.cc.
| TEST | ( | SatCounterTest | , |
| NegativeAddSubAssignment | |||
| ) |
Test add-assignment and subtract assignment using negative numbers.
Definition at line 333 of file sat_counter.test.cc.
References bits().
| TEST | ( | SatCounterTest | , |
| PrePostOperators | |||
| ) |
Test both pre and post operators.
Definition at line 200 of file sat_counter.test.cc.
| TEST | ( | SatCounterTest | , |
| Saturate | |||
| ) |
Test abrupt saturation.
Definition at line 101 of file sat_counter.test.cc.
References bits(), GenericSatCounter< T >::isSaturated(), and GenericSatCounter< T >::saturate().
| TEST | ( | SatCounterTest | , |
| SaturationPercentile | |||
| ) |
Test calculating saturation percentile.
Definition at line 84 of file sat_counter.test.cc.
References bits(), GenericSatCounter< T >::calcSaturation(), and GenericSatCounter< T >::isSaturated().
| TEST | ( | SatCounterTest | , |
| Shift | |||
| ) |
Test shift operators.
Definition at line 142 of file sat_counter.test.cc.
References bits(), and GenericSatCounter< T >::reset().
| TEST | ( | SatCounterTest | , |
| Size16 | |||
| ) |
Test max and min when using SatCounter16.
Definition at line 364 of file sat_counter.test.cc.
| TEST | ( | SatCounterTest | , |
| Size32 | |||
| ) |
Test max and min when using SatCounter32.
Definition at line 396 of file sat_counter.test.cc.
| TEST | ( | SatCounterTest | , |
| Size64 | |||
| ) |
Test max and min when using SatCounter64.
Definition at line 428 of file sat_counter.test.cc.
References ULL.