[flang] Error checking for IBCLR/IBSET and ISHFT/SHIFT[ALR]
authorpeter klausler <pklausler@nvidia.com>
Wed, 6 Oct 2021 23:29:00 +0000 (16:29 -0700)
committerpeter klausler <pklausler@nvidia.com>
Thu, 7 Oct 2021 20:51:20 +0000 (13:51 -0700)
commitf4a5fb0c5573477c2a597c3246513d8dba2f5e63
treef0a28e436a088cb2347b8c36db7ffe913090ebee
parent09cb376d27aeca4b2539b31e16706c32cda82a4e
[flang] Error checking for IBCLR/IBSET and ISHFT/SHIFT[ALR]

Bit positions for the intrinsics IBCLR and IBSET and shift counts
for the intrinsics ISHFT/SHIFTA/SHIFTL/SHIFTR should be validated
when folding.

Differential Revision: https://reviews.llvm.org/D111327
flang/lib/Evaluate/fold-integer.cpp