[llvm] [ARM] CMSE security mitigation on function arguments and returned values (PR #89944)
Victor Campos via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 02:03:42 PDT 2024
================
@@ -4617,6 +4636,15 @@ SDValue ARMTargetLowering::LowerFormalArguments(
(VA.getValVT() == MVT::f16 || VA.getValVT() == MVT::bf16))
ArgValue = MoveToHPR(dl, DAG, VA.getLocVT(), VA.getValVT(), ArgValue);
+ // On CMSE Entry Functions, formal integer arguments whose bitwidth is
----------------
vhscampos wrote:
The code above regarding SExt and ZExt seems to be dead as it is not code covered by the LLVM tests. The BCvt part is exercised when arguments are of floating-point type. So I believe we can leave it as it is.
https://github.com/llvm/llvm-project/pull/89944
More information about the llvm-commits
mailing list