[flang-commits] [PATCH] D129296: Lower mask intrinsics
Tarun Prabhu via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Jul 7 08:31:11 PDT 2022
tarunprabhu created this revision.
tarunprabhu added reviewers: klausler, jeanPerier, awarzynski, vdonaldson, kiranchandramohan.
tarunprabhu added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert.
Herald added a project: All.
tarunprabhu requested review of this revision.
This patch lowers the maskl and maskr intrinsics from F2008 <https://reviews.llvm.org/F2008>.
The first argument to the intrinsic is I which is the number of bits on the left/right to be set in the result.
If I == 0, no bits will be set in the result
If I == BIT_SIZE(KIND), all bits will be set in the result
If I < 0 or I > BIT_SIZE(KIND), the result will always be 0.
where KIND is optionally provided as an argument to MASK* and is the default integer kind if left unspecified.
https://reviews.llvm.org/D129296
Files:
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/maskl.f90
flang/test/Lower/Intrinsics/maskr.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129296.442930.patch
Type: text/x-patch
Size: 13489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220707/95f8baf1/attachment-0001.bin>
More information about the flang-commits
mailing list