Jlm
Loading...
Searching...
No Matches
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
c1
std::int64_t c1
Definition
IntegerOperationsTests.cpp:20
c2
std::int64_t c2
Definition
IntegerOperationsTests.cpp:23
jlm::llvm::ConstantFP
Definition
operators.hpp:488
jlm::llvm
Global memory state passed between functions.
Definition
IpGraphToLlvmConverter.cpp:40
operators.hpp
Generated by
1.9.8