[PATCH] ARC:fpu: add extra capability check before use of sqrt and fma builtins

2022-12-21 Thread Pavel . Kozlov
From: Pavel Kozlov Add extra check for compiler definitions to ensure that compiler provides sqrt and fma hw fpu instructions else use software implementation. As divide/sqrt and FMA hw support from CPU side is optional, the compiler can be configured by options to generate hw FPU instructions,

[PATCH] ARC: align child stack in clone

2022-12-21 Thread Pavel . Kozlov
From: Pavel Kozlov The ARCv2 ABI requires 4 byte stack pointer alignment. Don't allow to use unaligned child stack in clone. As the stack grows down, align it down. This was pointed by misc/tst-misalign-clone-internal and misc/tst-misalign-clone tests. Stack alignmet fixes these tests fails. ---