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
478e0451
Commit
478e0451
authored
Dec 24, 2014
by
Christoph Mallon
Browse files
sparc: Specify a template for conditional branch instructions.
parent
8ca7e27c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/sparc/sparc_spec.pl
View file @
478e0451
...
...
@@ -254,6 +254,15 @@ my $float_unop = {
},
};
my
$branchcc
=
{
op_flags
=>
[
"
cfopcode
",
"
forking
"
],
irn_flags
=>
[
"
has_delay_slot
"
],
state
=>
"
pinned
",
attr_type
=>
"
sparc_jmp_cond_attr_t
",
ins
=>
[
"
flags
"
],
outs
=>
[
"
false
",
"
true
"
],
};
%nodes
=
(
ASM
=>
{
...
...
@@ -468,27 +477,17 @@ FrameAddr => {
},
Bicc
=>
{
op_flags
=>
[
"
cfopcode
",
"
forking
"
],
irn_flags
=>
[
"
has_delay_slot
"
],
state
=>
"
pinned
",
attr_type
=>
"
sparc_jmp_cond_attr_t
",
template
=>
$branchcc
,
attr
=>
"
ir_relation relation, bool is_unsigned
",
init_attr
=>
"
\t
init_sparc_jmp_cond_attr(res, relation, is_unsigned);
",
reg_req
=>
{
in
=>
[
"
flags
"
],
out
=>
[
"
none
",
"
none
"
]
},
ins
=>
[
"
flags
"
],
outs
=>
[
"
false
",
"
true
"
],
},
fbfcc
=>
{
op_flags
=>
[
"
cfopcode
",
"
forking
"
],
irn_flags
=>
[
"
has_delay_slot
"
],
state
=>
"
pinned
",
attr_type
=>
"
sparc_jmp_cond_attr_t
",
template
=>
$branchcc
,
attr
=>
"
ir_relation relation
",
init_attr
=>
"
\t
init_sparc_jmp_cond_attr(res, relation, false);
",
reg_req
=>
{
in
=>
[
"
fpflags
"
],
out
=>
[
"
none
",
"
none
"
]
},
ins
=>
[
"
flags
"
],
outs
=>
[
"
false
",
"
true
"
],
},
Ba
=>
{
...
...
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