1/* 2 * Copyright (c) 2024, Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* 8 * hifi_get - Retrieve the HiFi aedX registers 9 */ 10.global hifi_get 11.align 4 12hifi_get: 13 entry a1, 32 14 15 ae_s64.i aed0, a2, 0 16 ae_s64.i aed1, a2, 8 17 ae_s64.i aed2, a2, 16 18 ae_s64.i aed3, a2, 24 19 ae_s64.i aed4, a2, 32 20 ae_s64.i aed5, a2, 40 21 ae_s64.i aed6, a2, 48 22 ae_s64.i aed7, a2, 56 23 24 addi a2, a2, 64 25 26 ae_s64.i aed8, a2, 0 27 ae_s64.i aed9, a2, 8 28 ae_s64.i aed10, a2, 16 29 ae_s64.i aed11, a2, 24 30 ae_s64.i aed12, a2, 32 31 ae_s64.i aed13, a2, 40 32 ae_s64.i aed14, a2, 48 33 ae_s64.i aed15, a2, 56 34 35 retw.n 36 37/* 38 * hifi_set - Set the HiFi aedX registers 39 */ 40.global hifi_set 41.align 4 42hifi_set: 43 entry a1, 32 44 45 ae_l64.i aed0, a2, 0 46 ae_l64.i aed1, a2, 8 47 ae_l64.i aed2, a2, 16 48 ae_l64.i aed3, a2, 24 49 ae_l64.i aed4, a2, 32 50 ae_l64.i aed5, a2, 40 51 ae_l64.i aed6, a2, 48 52 ae_l64.i aed7, a2, 56 53 54 addi a2, a2, 64 55 56 ae_l64.i aed8, a2, 0 57 ae_l64.i aed9, a2, 8 58 ae_l64.i aed10, a2, 16 59 ae_l64.i aed11, a2, 24 60 ae_l64.i aed12, a2, 32 61 ae_l64.i aed13, a2, 40 62 ae_l64.i aed14, a2, 48 63 ae_l64.i aed15, a2, 56 64 65 retw.n 66