Handle negation on scalar expression.
res = -a
This patch is part of the upstreaming effort from fir-dev branch.
Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
| Paths 
 |  Differential  D120071  
[flang] Lower scalar negation ClosedPublic Authored by clementval on Feb 17 2022, 9:59 AM. 
Details Summary Handle negation on scalar expression. res = -a This patch is part of the upstreaming effort from fir-dev branch. Co-authored-by: Jean Perier <jperier@nvidia.com> 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Feb 17 2022, 1:48 PM Closed by commit rGeafafbae92f4: [flang] Lower scalar negation (authored by clementval).  ·  Explain WhyFeb 17 2022, 11:09 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 409859 flang/lib/Lower/ConvertExpr.cpp
 flang/test/Lower/assignment.f90
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||