Jlm
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 
10 TEST(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)
Global memory state passed between functions.