diff --git a/src/pass/lower_intrin.cc b/src/pass/lower_intrin.cc index 3935d23cce0c..cc51c6630d92 100644 --- a/src/pass/lower_intrin.cc +++ b/src/pass/lower_intrin.cc @@ -193,7 +193,7 @@ class IntrinInjecter : public arith::IRMutatorWithAnalyzer { using namespace arith; PVar x, y; if ((floormod(x, y) != 0).Match(e)) { - return Mutate((truncmod(x, y) == 0).Eval()); + return Mutate((truncmod(x, y) != 0).Eval()); } return IRMutatorWithAnalyzer::Mutate_(op, e); }