[flang] Lower real comparison operations
authorValentin Clement <clementval@gmail.com>
Fri, 25 Feb 2022 20:02:53 +0000 (21:02 +0100)
committerValentin Clement <clementval@gmail.com>
Fri, 25 Feb 2022 20:03:39 +0000 (21:03 +0100)
commit98813e365c23c297ef64e4d9cb59cd86eb81ce3c
tree4da173bbdd82ce6fa6b21a23f1aaecda124d3ffe
parentf1dcf3ae92d0e12a89fef77f0cfb1e974c98f7c5
[flang] Lower real comparison operations

This patch handles the lowering of real
comparison operations. The real comparison operations
are lowered to `arith.cmpf` operation.

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

Reviewed By: PeteSteinfeld, schweitz

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

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