Jlm
Loading...
Searching...
No Matches
ConstantFPTests.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2018 Nico Reißmann <nico.reissmann@gmail.com>
3 * See COPYING for terms of redistribution.
4 */
5
6#include <gtest/gtest.h>
7
9
10TEST(ConstantFPOperationTests, test_equality)
11{
12 using namespace jlm::llvm;
13
14 ConstantFP c1(fpsize::half, llvm::APFloat(0.0));
15 ConstantFP c2(fpsize::flt, llvm::APFloat(0.0));
16 ConstantFP c3(fpsize::flt, llvm::APFloat(-0.0));
17
18 EXPECT_NE(c1, c2);
19 EXPECT_NE(c2, c3);
20}
TEST(ConstantFPOperationTests, test_equality)
std::int64_t c1
std::int64_t c2
Global memory state passed between functions.