[flang] Implement the runtime portion of the CSHIFT intrinsic
authorPeter Steinfeld <psteinfeld@nvidia.com>
Mon, 19 Jul 2021 18:22:45 +0000 (11:22 -0700)
committerPeter Steinfeld <psteinfeld@nvidia.com>
Wed, 21 Jul 2021 20:39:21 +0000 (13:39 -0700)
commit7898e7c82d98fabc8c87a5b7b4a4f7786df69314
treeb3c0335a541199ad184b25ba1b26844c3c94ba3e
parent8e6b31c3952b366fc3fa0da8e3df7fc09fa65b05
[flang] Implement the runtime portion of the CSHIFT intrinsic

This change fixes a bug in  the runtime portion of the CSHIFT intrinsic
that happens when the value of the SHIFT argument is negative.

Differential Revision: https://reviews.llvm.org/D106292
flang/runtime/transformational.cpp
flang/unittests/RuntimeGTest/Transformational.cpp