[PATCH] D152993: [VP][RISCV] Add vp.is.fpclass and RISC-V support

Yeting Kuo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 19 08:50:10 PDT 2023


fakepaper56 added inline comments.


================
Comment at: llvm/lib/IR/Verifier.cpp:6049
+  if (VPI.getIntrinsicID() == Intrinsic::vp_is_fpclass) {
+    const ConstantInt *TestMask = cast<ConstantInt>(VPI.getOperand(1));
+    Check((TestMask->getZExtValue() & ~static_cast<unsigned>(fcAllFlags)) == 0,
----------------
Is using `auto` for casting better?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152993



More information about the llvm-commits mailing list