Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xing Lin
qemu
Commits
5a30b7f6
Commit
5a30b7f6
authored
Jan 25, 2011
by
Edgar E. Iglesias
Browse files
cris: Replace tcg branch sequence with setcond
Signed-off-by:
Edgar E. Iglesias
<
edgar.iglesias@gmail.com
>
parent
bf1064b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
target-cris/translate.c
View file @
5a30b7f6
...
...
@@ -947,15 +947,8 @@ static void gen_tst_cc (DisasContext *dc, TCGv cc, int cond)
case
CC_EQ
:
if
((
arith_opt
||
move_opt
)
&&
dc
->
cc_x_uptodate
!=
(
2
|
X_FLAG
))
{
/* If cc_result is zero, T0 should be
non-zero otherwise T0 should be zero. */
int
l1
;
l1
=
gen_new_label
();
tcg_gen_movi_tl
(
cc
,
0
);
tcg_gen_brcondi_tl
(
TCG_COND_NE
,
cc_result
,
0
,
l1
);
tcg_gen_movi_tl
(
cc
,
1
);
gen_set_label
(
l1
);
tcg_gen_setcond_tl
(
TCG_COND_EQ
,
cc
,
cc_result
,
tcg_const_tl
(
0
));
}
else
{
cris_evaluate_flags
(
dc
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment