[all-commits] [llvm/llvm-project] f9e995: [flang] Normalize logical values during type conve...
Slava Zakharin via All-commits
all-commits at lists.llvm.org
Tue Mar 28 10:12:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f9e995b4bdce7e3afbda0997b606fdc80112f803
https://github.com/llvm/llvm-project/commit/f9e995b4bdce7e3afbda0997b606fdc80112f803
Author: Slava Zakharin <szakharin at nvidia.com>
Date: 2023-03-28 (Tue, 28 Mar 2023)
Changed paths:
M flang/docs/Extensions.md
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
M flang/test/Fir/convert-to-llvm-openmp-and-fir.fir
M flang/test/Fir/global-initialization.fir
A flang/test/Fir/logical-convert.fir
Log Message:
-----------
[flang] Normalize logical values during type conversions.
Flang was missing value normalization for logical<->integer conversions
which is required by Flang specification. The shrinking logical<->logical
conversions were also incorrectly truncating the input.
This change performs value normalization for all logical<->integer
conversions and logical<->logical conversions between different kinds.
Note that value normalization is not strictly required for
logical(kind=k1)->logical(kind=k2) conversions when k1 < k2.
Differential Revision: https://reviews.llvm.org/D147019
More information about the All-commits
mailing list