Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Bellard不干了
proj216-tcc-for-loongarch
Commits
ce9a35a0
Commit
ce9a35a0
authored
1 year ago
by
Bellard不干了
Browse files
Options
Download
Patches
Plain Diff
70
parent
846377f8
main
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.vscode/launch.json
+1
-1
.vscode/launch.json
loongarch64-gen.c
+2
-1
loongarch64-gen.c
with
3 additions
and
2 deletions
+3
-2
.vscode/launch.json
+
1
−
1
View file @
ce9a35a0
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
"testfilePath"
:
"/home/raki/Desktop/test/tests2/"
,
"testfilePath"
:
"/home/raki/Desktop/test/tests2/"
,
"tcclExecPath"
:
"/opt/clfs-os/tcc-test/"
,
"tcclExecPath"
:
"/opt/clfs-os/tcc-test/"
,
//
"testfilePath"
:
"/home/raki/Desktop/test/examples/"
,
//
"testfilePath"
:
"/home/raki/Desktop/test/examples/"
,
"testfile"
:
"
23_type_coercion
"
"testfile"
:
"
70_floating_point_literals
"
//
"testfile"
:
"95_tmp"
//
"testfile"
:
"95_tmp"
},
},
//
"args"
:
[
"${testfilePath}${testfile}.c"
,
"-c"
,
"-o"
,
"${testfilePath}tccl-${testfile}.o"
]
//
"args"
:
[
"${testfilePath}${testfile}.c"
,
"-c"
,
"-o"
,
"${testfilePath}tccl-${testfile}.o"
]
...
...
This diff is collapsed.
Click to expand it.
loongarch64-gen.c
+
2
−
1
View file @
ce9a35a0
...
@@ -1310,7 +1310,8 @@ ST_FUNC void gfunc_call(int nb_args)
...
@@ -1310,7 +1310,8 @@ ST_FUNC void gfunc_call(int nb_args)
assert
(
vtop
->
r2
<=
7
&&
r2
<=
7
);
assert
(
vtop
->
r2
<=
7
&&
r2
<=
7
);
/* XXX we'd like to have 'gv' move directly into
/* XXX we'd like to have 'gv' move directly into
the right class instead of us fixing it up. */
the right class instead of us fixing it up. */
EI
(
0x13
,
0
,
ireg
(
r2
),
ireg
(
vtop
->
r2
),
0
);
// mv Ra+1, RR2
// EI(0x13, 0, ireg(r2), ireg(vtop->r2), 0); // mv Ra+1, RR2
E2RI12
(
ADDI_D
,
ireg
(
r2
),
ireg
(
vtop
->
r2
),
0
);
vtop
->
r2
=
r2
;
vtop
->
r2
=
r2
;
}
}
done:
done:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets