[flang-commits] [PATCH] D129610: NFC: Test folding of F08 bit population count intrinsics

Tarun Prabhu via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Jul 12 17:55:59 PDT 2022


tarunprabhu created this revision.
tarunprabhu added reviewers: kiranchandramohan, klausler, vdonaldson, jeanPerier, clementval, awarzynski.
tarunprabhu added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
tarunprabhu requested review of this revision.

This patch tests the `leadz`, `trailz`, `popcnt` and `poppar` F08 intrinsics for the case where the operand to the intrinsics is a compile-time constant.

Essentially, this checks if the value is folded correctly in that case.


https://reviews.llvm.org/D129610

Files:
  flang/test/Evaluate/fold-popcnt.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129610.444124.patch
Type: text/x-patch
Size: 8665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220713/bb62bc23/attachment.bin>


More information about the flang-commits mailing list