xref: /linux/arch/xtensa/lib/bswapsi2.S (revision 72bea132f3680ee51e7ed2cee62892b6f5121909)
1/* SPDX-License-Identifier: GPL-2.0-or-later WITH GCC-exception-2.0 */
2#include <linux/linkage.h>
3#include <asm/asmmacro.h>
4#include <asm/core.h>
5
6ENTRY(__bswapsi2)
7
8	abi_entry_default
9	ssai	8
10	srli	a3, a2, 16
11	src	a3, a3, a2
12	src	a3, a3, a3
13	src	a2, a2, a3
14	abi_ret_default
15
16ENDPROC(__bswapsi2)
17EXPORT_SYMBOL(__bswapsi2)
18