CodeGen used llvm.sext when converting fir.convert %0 : (i1) -> iXX
where iXX is any integer. This leads to wrong values when the initial
i1 is equal to 1.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D145984
[flang] Use llvm.zext when converting from i1 -> iXX ClosedPublic Authored by clementval on Mar 13 2023, 1:17 PM.
Details Summary CodeGen used llvm.sext when converting fir.convert %0 : (i1) -> iXX
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 13 2023, 1:17 PM This revision is now accepted and ready to land.Mar 13 2023, 1:46 PM Closed by commit rGc024fa4b5bd6: [flang] Use llvm.zext when converting from i1 -> iXX (authored by clementval). · Explain WhyMar 13 2023, 10:32 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 504944 flang/lib/Optimizer/CodeGen/CodeGen.cpp
flang/test/Fir/convert-to-llvm.fir
|