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
c791412b
Commit
c791412b
authored
Sep 10, 2010
by
Matthias Braun
Browse files
sparc: rename misnamed node Slr to Srl
[r27998]
parent
f1f51d1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/sparc/sparc_spec.pl
View file @
c791412b
...
...
@@ -427,7 +427,7 @@ Sll => {
constructors
=>
\
%binop_operand_constructors
,
},
S
l
r
=>
{
Sr
l
=>
{
irn_flags
=>
[
"
rematerializable
"
],
mode
=>
$mode_gp
,
emit
=>
'
. srl %S0, %R1I, %D0
',
...
...
ir/be/sparc/sparc_transform.c
View file @
c791412b
...
...
@@ -89,7 +89,7 @@ static ir_node *gen_zero_extension(dbg_info *dbgi, ir_node *block, ir_node *op,
return
new_bd_sparc_And_imm
(
dbgi
,
block
,
op
,
NULL
,
0xFF
);
}
else
if
(
src_bits
==
16
)
{
ir_node
*
lshift
=
new_bd_sparc_Sll_imm
(
dbgi
,
block
,
op
,
NULL
,
16
);
ir_node
*
rshift
=
new_bd_sparc_S
l
r_imm
(
dbgi
,
block
,
lshift
,
NULL
,
16
);
ir_node
*
rshift
=
new_bd_sparc_Sr
l
_imm
(
dbgi
,
block
,
lshift
,
NULL
,
16
);
return
rshift
;
}
else
{
panic
(
"zero extension only supported for 8 and 16 bits"
);
...
...
@@ -774,7 +774,7 @@ static ir_node *gen_Shl(ir_node *node)
static
ir_node
*
gen_Shr
(
ir_node
*
node
)
{
return
gen_helper_binop
(
node
,
MATCH_NONE
,
new_bd_sparc_S
l
r_reg
,
new_bd_sparc_S
l
r_imm
);
return
gen_helper_binop
(
node
,
MATCH_NONE
,
new_bd_sparc_Sr
l
_reg
,
new_bd_sparc_Sr
l
_imm
);
}
static
ir_node
*
gen_Shrs
(
ir_node
*
node
)
...
...
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