Jlm
jlm
llvm
ir
operators
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
8
#include <
jlm/llvm/ir/operators/operators.hpp
>
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
TEST(ConstantFPOperationTests, test_equality)
Definition:
ConstantFPTests.cpp:10
jlm::llvm::ConstantFP
Definition:
operators.hpp:881
jlm::llvm
Global memory state passed between functions.
Definition:
IpGraphToLlvmConverter.cpp:36
jlm::llvm::fpsize::half
@ half
jlm::llvm::fpsize::flt
@ flt
operators.hpp
Generated by
1.9.1