[PATCH] D81651: [AMDGPU][CODEGEN] Added support of new inline assembler constraints

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 07:58:45 PDT 2020


arsenm added inline comments.


================
Comment at: llvm/docs/LangRef.rst:4151
+- ``J``: A 16-bit signed integer constant.
+- ``L``: A 15-bit unsigned integer constant.
 - ``A``: An integer or a floating-point inline constant.
----------------
This one is weird; we don't actually have any of these instructions?


================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:11065
+    unsigned UnusedBits = 64 - Size;
+    Val = (Val << UnusedBits) >> UnusedBits;
+  }
----------------
Val & maskTrailingOnes(Size) might be clearer


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81651/new/

https://reviews.llvm.org/D81651





More information about the llvm-commits mailing list