Jlm
Loading...
Searching...
No Matches
Namespaces | Functions
IntegerOperationsTests.cpp File Reference
#include <gtest/gtest.h>
#include <jlm/llvm/ir/operators/IntegerOperations.hpp>
#include <jlm/rvsdg/NodeNormalization.hpp>
#include <jlm/rvsdg/TestNodes.hpp>
#include <jlm/rvsdg/view.hpp>
Include dependency graph for IntegerOperationsTests.cpp:

Go to the source code of this file.

Namespaces

namespace  jlm
 
namespace  jlm::llvm
 Global memory state passed between functions.
 

Functions

template<typename Operation >
static void jlm::llvm::TestFoldConstants (const FoldConstantsTestInput &input)
 
 jlm::llvm::TEST (IntegerEqOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerNeOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerSgeOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerSgtOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerSleOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerSltOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerUgeOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerUgtOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerUleOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerUltOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerOrOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerAndOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerXorOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerAddOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerSubOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerMulOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerSDivOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerUDivOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerSRemOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerURemOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerAShrOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerShlOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerLShrOperationTest, foldConstants)
 
 jlm::llvm::TEST (IntegerSubOperationTests, normalizeAdditiveInverse)
 

Variable Documentation

◆ c1

std::int64_t c1

Definition at line 20 of file IntegerOperationsTests.cpp.

◆ c2

std::int64_t c2

Definition at line 23 of file IntegerOperationsTests.cpp.

◆ expected

std::int64_t expected

Definition at line 26 of file IntegerOperationsTests.cpp.

◆ numBitsC1

std::uint64_t numBitsC1

Definition at line 21 of file IntegerOperationsTests.cpp.

◆ numBitsC2

std::uint64_t numBitsC2

Definition at line 24 of file IntegerOperationsTests.cpp.

◆ numBitsExpected

std::int64_t numBitsExpected

Definition at line 27 of file IntegerOperationsTests.cpp.