-
-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build error on loongarch64 (#4558)
- Loading branch information
1 parent
3e258f5
commit cbd086a
Showing
4 changed files
with
303 additions
and
241 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// SPDX-FileCopyrightText: 2024 Wenlong Zhang <[email protected]> | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
return strdup( | ||
"=PC pc\n" | ||
"=SP sp\n" | ||
"=BP fp\n" | ||
"=A0 a0\n" | ||
"=A1 a1\n" | ||
"=A2 a2\n" | ||
"=A3 a3\n" | ||
"=A4 a4\n" | ||
"=A5 a5\n" | ||
"=A6 a6\n" | ||
"=A7 a7\n" | ||
"gpr zero .64 0 0\n" | ||
"gpr ra .64 8 0\n" | ||
"gpr tp .64 16 0\n" | ||
"gpr sp .64 24 0\n" | ||
/* args */ | ||
"gpr a0 .64 32 0\n" | ||
"gpr a1 .64 40 0\n" | ||
"gpr a2 .64 48 0\n" | ||
"gpr a3 .64 56 0\n" | ||
"gpr a4 .64 64 0\n" | ||
"gpr a5 .64 72 0\n" | ||
"gpr a6 .64 80 0\n" | ||
"gpr a7 .64 88 0\n" | ||
/* tmp */ | ||
"gpr t0 .64 96 0\n" | ||
"gpr t1 .64 104 0\n" | ||
"gpr t2 .64 112 0\n" | ||
"gpr t3 .64 120 0\n" | ||
"gpr t4 .64 128 0\n" | ||
"gpr t5 .64 136 0\n" | ||
"gpr t6 .64 144 0\n" | ||
"gpr t7 .64 152 0\n" | ||
"gpr t8 .64 160 0\n" | ||
/* saved */ | ||
"gpr r21 .64 168 0\n" // Non-allocatable | ||
/* fp */ | ||
"gpr fp .64 176 0\n" | ||
/* static */ | ||
"gpr s0 .64 184 0\n" | ||
"gpr s1 .64 192 0\n" | ||
"gpr s2 .64 200 0\n" | ||
"gpr s3 .64 208 0\n" | ||
"gpr s4 .64 216 0\n" | ||
"gpr s5 .64 224 0\n" | ||
"gpr s6 .64 232 0\n" | ||
"gpr s7 .64 240 0\n" | ||
"gpr s8 .64 248 0\n"); |
Oops, something went wrong.