fpsimdmacros.h (c37fe6aff89cb0d842993fe2f69e48bf3ebe0ab0) fpsimdmacros.h (483dbf6a35907610597fdc304bd32ecba40cdff0)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * FP/SIMD state saving and restoring macros
4 *
5 * Copyright (C) 2012 ARM Ltd.
6 * Author: Catalin Marinas <catalin.marinas@arm.com>
7 */
8

--- 199 unchanged lines hidden (view full) ---

208.endm
209
210/* Preserve the first 128-bits of Znz and zero the rest. */
211.macro _sve_flush_z nz
212 _sve_check_zreg \nz
213 mov v\nz\().16b, v\nz\().16b
214.endm
215
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * FP/SIMD state saving and restoring macros
4 *
5 * Copyright (C) 2012 ARM Ltd.
6 * Author: Catalin Marinas <catalin.marinas@arm.com>
7 */
8

--- 199 unchanged lines hidden (view full) ---

208.endm
209
210/* Preserve the first 128-bits of Znz and zero the rest. */
211.macro _sve_flush_z nz
212 _sve_check_zreg \nz
213 mov v\nz\().16b, v\nz\().16b
214.endm
215
216.macro sve_flush
216.macro sve_flush_z
217 _for n, 0, 31, _sve_flush_z \n
217 _for n, 0, 31, _sve_flush_z \n
218.endm
219.macro sve_flush_p_ffr
218 _for n, 0, 15, _sve_pfalse \n
219 _sve_wrffr 0
220.endm
221
222.macro sve_save nxbase, xpfpsr, nxtmp
223 _for n, 0, 31, _sve_str_v \n, \nxbase, \n - 34
224 _for n, 0, 15, _sve_str_p \n, \nxbase, \n - 16
225 _sve_rdffr 0

--- 25 unchanged lines hidden ---
220 _for n, 0, 15, _sve_pfalse \n
221 _sve_wrffr 0
222.endm
223
224.macro sve_save nxbase, xpfpsr, nxtmp
225 _for n, 0, 31, _sve_str_v \n, \nxbase, \n - 34
226 _for n, 0, 15, _sve_str_p \n, \nxbase, \n - 16
227 _sve_rdffr 0

--- 25 unchanged lines hidden ---