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
9dbd3483
Commit
9dbd3483
authored
Sep 06, 2010
by
Matthias Braun
Browse files
sparc: fix bitopcc bugs
[r27971]
parent
9c99a89c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/sparc/sparc_spec.pl
View file @
9dbd3483
...
...
@@ -462,7 +462,7 @@ And => {
AndCCZero
=>
{
irn_flags
=>
[
"
rematerializable
",
"
modifies_flags
"
],
emit
=>
'
. and %S1, %R2I, %%g0
',
emit
=>
'
. and
cc
%S1, %R2I, %%g0
',
mode
=>
$mode_flags
,
constructors
=>
\
%binopcczero_operand_constructors
,
},
...
...
@@ -476,7 +476,7 @@ AndN => {
AndNCCZero
=>
{
irn_flags
=>
[
"
rematerializable
",
"
modifies_flags
"
],
emit
=>
'
. andn %S1, %R2I, %%g0
',
emit
=>
'
. andn
cc
%S1, %R2I, %%g0
',
mode
=>
$mode_flags
,
constructors
=>
\
%binopcczero_operand_constructors
,
},
...
...
@@ -490,7 +490,7 @@ Or => {
OrCCZero
=>
{
irn_flags
=>
[
"
rematerializable
",
"
modifies_flags
"
],
emit
=>
'
. or %S1, %R2I, %%g0
',
emit
=>
'
. or
cc
%S1, %R2I, %%g0
',
mode
=>
$mode_flags
,
constructors
=>
\
%binopcczero_operand_constructors
,
},
...
...
@@ -504,7 +504,7 @@ OrN => {
OrNCCZero
=>
{
irn_flags
=>
[
"
rematerializable
",
"
modifies_flags
"
],
emit
=>
'
. orn %S1, %R2I, %%g0
',
emit
=>
'
. orn
cc
%S1, %R2I, %%g0
',
mode
=>
$mode_flags
,
constructors
=>
\
%binopcczero_operand_constructors
,
},
...
...
@@ -518,7 +518,7 @@ Xor => {
XorCCZero
=>
{
irn_flags
=>
[
"
rematerializable
",
"
modifies_flags
"
],
emit
=>
'
. xor %S1, %R2I, %%g0
',
emit
=>
'
. xor
cc
%S1, %R2I, %%g0
',
mode
=>
$mode_flags
,
constructors
=>
\
%binopcczero_operand_constructors
,
},
...
...
@@ -532,7 +532,7 @@ XNor => {
XNorCCZero
=>
{
irn_flags
=>
[
"
rematerializable
",
"
modifies_flags
"
],
emit
=>
'
. xnor %S1, %R2I, %%g0
',
emit
=>
'
. xnor
cc
%S1, %R2I, %%g0
',
mode
=>
$mode_flags
,
constructors
=>
\
%binopcczero_operand_constructors
,
},
...
...
ir/be/sparc/sparc_transform.c
View file @
9dbd3483
...
...
@@ -726,7 +726,7 @@ static ir_node *gen_helper_bitop(ir_node *node,
ir_node
*
op1
=
get_binop_left
(
node
);
ir_node
*
op2
=
get_binop_right
(
node
);
if
(
is_Not
(
op1
))
{
return
gen_helper_binop_args
(
node
,
get_Not_op
(
op1
),
op2
,
return
gen_helper_binop_args
(
node
,
op2
,
get_Not_op
(
op1
),
MATCH_MODE_NEUTRAL
,
new_not_reg
,
new_not_imm
);
}
...
...
Write
Preview
Markdown
is supported
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