[flang] Lower integer comparison operation
authorValentin Clement <clementval@gmail.com>
Fri, 25 Feb 2022 20:00:07 +0000 (21:00 +0100)
committerValentin Clement <clementval@gmail.com>
Fri, 25 Feb 2022 20:01:27 +0000 (21:01 +0100)
commitf1dcf3ae92d0e12a89fef77f0cfb1e974c98f7c5
treec9354efd77b6b1ba575163e503194ffac11e19c1
parent84647ff38ca76136e3c4be80cf6785a78188d33a
[flang] Lower integer comparison operation

This patch handles the lowering of comprison
operator between integers.
The comparison is lowered to a `arith.cmpi` operation.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: PeteSteinfeld, schweitz, rovka

Differential Revision: https://reviews.llvm.org/D120559

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
flang/lib/Lower/ConvertExpr.cpp
flang/test/Lower/integer-operations.f90 [new file with mode: 0644]