aboutsummaryrefslogtreecommitdiff
path: root/instrumentation
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-01-04 23:08:46 +0100
committervan Hauser <vh@thc.org>2021-01-04 23:08:46 +0100
commitd367b033a206187b9342c8003512512f62ff99b0 (patch)
tree0cb9a3f105eac63f74257c3cf62b1f674b06d728 /instrumentation
parent7f4b3a460a0b4f83e9039b57c033f6f43be08550 (diff)
downloadAFLplusplus-d367b033a206187b9342c8003512512f62ff99b0.tar.gz
add missing FCMP_UEQ to split-compares-pass.so.cc
Diffstat (limited to 'instrumentation')
-rw-r--r--instrumentation/split-compares-pass.so.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/instrumentation/split-compares-pass.so.cc b/instrumentation/split-compares-pass.so.cc
index 53e93f7a..b6d8c466 100644
--- a/instrumentation/split-compares-pass.so.cc
+++ b/instrumentation/split-compares-pass.so.cc
@@ -555,6 +555,7 @@ size_t SplitComparesTransform::splitFPCompares(Module &M) {
if ((selectcmpInst = dyn_cast<CmpInst>(&IN))) {
if (selectcmpInst->getPredicate() == CmpInst::FCMP_OEQ ||
+ selectcmpInst->getPredicate() == CmpInst::FCMP_UEQ ||
selectcmpInst->getPredicate() == CmpInst::FCMP_ONE ||
selectcmpInst->getPredicate() == CmpInst::FCMP_UNE ||
selectcmpInst->getPredicate() == CmpInst::FCMP_UGT ||
@@ -735,6 +736,7 @@ size_t SplitComparesTransform::splitFPCompares(Module &M) {
BasicBlock * signequal2_bb = signequal_bb;
switch (FcmpInst->getPredicate()) {
+ case CmpInst::FCMP_UEQ:
case CmpInst::FCMP_OEQ:
icmp_exponent_result =
CmpInst::Create(Instruction::ICmp, CmpInst::ICMP_EQ, m_e0, m_e1);
@@ -816,6 +818,7 @@ size_t SplitComparesTransform::splitFPCompares(Module &M) {
switch (FcmpInst->getPredicate()) {
+ case CmpInst::FCMP_UEQ:
case CmpInst::FCMP_OEQ:
/* if the exponents are satifying the compare do a fraction cmp in
* middle_bb */
@@ -904,6 +907,7 @@ size_t SplitComparesTransform::splitFPCompares(Module &M) {
PHINode * PN2 = nullptr;
switch (FcmpInst->getPredicate()) {
+ case CmpInst::FCMP_UEQ:
case CmpInst::FCMP_OEQ:
icmp_fraction_result =
CmpInst::Create(Instruction::ICmp, CmpInst::ICMP_EQ, t_f0, t_f1);
@@ -981,6 +985,7 @@ size_t SplitComparesTransform::splitFPCompares(Module &M) {
switch (FcmpInst->getPredicate()) {
+ case CmpInst::FCMP_UEQ:
case CmpInst::FCMP_OEQ:
/* unequal signs cannot be equal values */
/* goto false branch */