Skip to content

kernel/arm64: fixed cscal and zscal #5281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions kernel/arm64/zscal.S
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define INC_X x4 /* X stride */
#define I x5 /* loop variable */
#define X_COPY x6 /* Copy of X */

#define FLAG x7 /* NaN handling level */
/*******************************************************************************
* Macro definitions
*******************************************************************************/
Expand Down Expand Up @@ -217,11 +217,15 @@ zscal_begin:
cmp N, xzr
ble .Lzscal_kernel_L999

ldr FLAG, [sp]
cmp FLAG, #1
beq .Lzscal_kernel_R_non_zero

fcmp DA_R, #0.0
bne .Lzscal_kernel_R_non_zero

fcmp DA_I, #0.0
beq .Lzscal_kernel_RI_zero
// fcmp DA_I, #0.0
// beq .Lzscal_kernel_RI_zero

// b .Lzscal_kernel_R_zero

Expand Down
Loading