Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
target/loongarch: Add LASX data support
Signed-off-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230914022645.1151356-12-gaosong@loongson.cn>
- Loading branch information
1 parent
cd10061
commit 008a3b1
Showing
9 changed files
with
86 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| /* | ||
| * QEMU LoongArch vector utilitites | ||
| * | ||
| * Copyright (c) 2023 Loongson Technology Corporation Limited | ||
| */ | ||
|
|
||
| #ifndef LOONGARCH_VEC_H | ||
| #define LOONGARCH_VEC_H | ||
|
|
||
| #if HOST_BIG_ENDIAN | ||
| #define B(x) B[(x) ^ 15] | ||
| #define H(x) H[(x) ^ 7] | ||
| #define W(x) W[(x) ^ 3] | ||
| #define D(x) D[(x) ^ 1] | ||
| #define UB(x) UB[(x) ^ 15] | ||
| #define UH(x) UH[(x) ^ 7] | ||
| #define UW(x) UW[(x) ^ 3] | ||
| #define UD(x) UD[(x) ^ 1] | ||
| #define Q(x) Q[x] | ||
| #else | ||
| #define B(x) B[x] | ||
| #define H(x) H[x] | ||
| #define W(x) W[x] | ||
| #define D(x) D[x] | ||
| #define UB(x) UB[x] | ||
| #define UH(x) UH[x] | ||
| #define UW(x) UW[x] | ||
| #define UD(x) UD[x] | ||
| #define Q(x) Q[x] | ||
| #endif /* HOST_BIG_ENDIAN */ | ||
|
|
||
| #endif /* LOONGARCH_VEC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters