Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
82174172
Commit
82174172
authored
Mar 25, 2006
by
Michael Beck
Browse files
BugFix: test can only be created for a&b == 0 or a&b != 0
parent
74425e26
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_transform.c
View file @
82174172
...
...
@@ -1284,9 +1284,11 @@ static ir_node *gen_Cond(ia32_transform_env_t *env) {
expr
=
get_expr_op
(
cmp_a
,
cmp_b
);
if
(
cnst
&&
expr
)
{
if
(
mode_is_int
(
get_irn_mode
(
expr
)))
{
pn_Cmp
pnc
=
get_Proj_proj
(
sel
);
if
((
pnc
==
pn_Cmp_Eq
||
pnc
==
pn_Cmp_Lg
)
&&
mode_is_int
(
get_irn_mode
(
expr
)))
{
if
(
classify_tarval
(
get_ia32_Immop_tarval
(
cnst
))
==
TV_CLASSIFY_NULL
)
{
/* a Cmp A
,
0 */
/* a Cmp A
=/!=
0 */
ir_node
*
op1
=
expr
;
ir_node
*
op2
=
expr
;
ir_node
*
and
=
skip_Proj
(
expr
);
...
...
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