[PATCH] D105754: [PowerPC] Fix L[D|W]ARX Implementation

Albion Fung via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 10 16:29:56 PDT 2021


Conanap added a comment.

looking at the failing test cases, for example `./clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vadd.c`, which are not test cases compiled for `PPC`, I'm seeing this following error:

  clang: /home/conanap/llvm/ccom/llvm-project/llvm/lib/IR/Instructions.cpp:494: void llvm::CallInst::init(llvm::FunctionType *, llvm::Value *, ArrayRef<llvm::Value *>, ArrayRef<llvm::OperandBundleDef>, const llvm::Twine &): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"' failed.

Debug prints show that it's entering the code block `emitLoadReserveIntrinsic` and `BuiltinID` evaluates to `clang::PPC::BI__builtin_ppc_lwarx`. The `FTy` dump shows `i32 (i32 *)`, which is correct... I'm not exactly sure what to make of this yet, just putting this update here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105754



More information about the cfe-commits mailing list