xref: /linux/arch/xtensa/lib/bswapsi2.S (revision 0526b56cbc3c489642bd6a5fe4b718dea7ef0ee8)
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)
17