[PATCH] D111449: [flang] Fix capitalization of "ishft"

Pete Steinfeld via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 8 11:32:34 PDT 2021


PeteSteinfeld created this revision.
Herald added a project: Flang.
PeteSteinfeld requested review of this revision.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.

We weren't recognizing the ISHFT intrinsic because the code had
incorrectly capitalized it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111449

Files:
  flang/lib/Evaluate/fold-integer.cpp


Index: flang/lib/Evaluate/fold-integer.cpp
===================================================================
--- flang/lib/Evaluate/fold-integer.cpp
+++ flang/lib/Evaluate/fold-integer.cpp
@@ -615,7 +615,7 @@
     // Second argument can be of any kind. However, it must be smaller or
     // equal than BIT_SIZE. It can be converted to Int4 to simplify.
     auto fptr{&Scalar<T>::ISHFT};
-    if (name == "ISHFT") { // done in fptr definition
+    if (name == "ishft") { // done in fptr definition
     } else if (name == "shifta") {
       fptr = &Scalar<T>::SHIFTA;
     } else if (name == "shiftr") {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111449.378318.patch
Type: text/x-patch
Size: 607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211008/ab6cd6e7/attachment.bin>


More information about the llvm-commits mailing list