[PATCH 5.15 187/244] habanalabs/gaudi: mask constant value before cast