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
30b992a4
Commit
30b992a4
authored
Nov 28, 2012
by
Christoph Mallon
Browse files
arch_spec: Remove remnants of unused operands.
parent
33d28f79
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_spec.pl
View file @
30b992a4
...
...
@@ -156,9 +156,6 @@ $custom_init_attr_func = \&ia32_custom_init_attr;
ia32_climbframe_attr_t
=>
"
ia32_compare_climbframe_attr
",
);
%operands
=
(
);
$status_flags
=
[
"
CF
",
"
PF
",
"
AF
",
"
ZF
",
"
SF
",
"
OF
"
];
$status_flags_wo_cf
=
[
"
PF
",
"
AF
",
"
ZF
",
"
SF
",
"
OF
"
];
$fpcw_flags
=
[
"
FP_IM
",
"
FP_DM
",
"
FP_ZM
",
"
FP_OM
",
"
FP_UM
",
"
FP_PM
",
...
...
ir/be/scripts/generate_new_opcodes.pl
View file @
30b992a4
...
...
@@ -36,7 +36,6 @@ my $line_nr = 0;
our
$arch
;
our
$additional_opcodes
;
our
%nodes
;
our
%operands
;
our
%cpu
;
our
$default_op_attr_type
;
our
$default_attr_type
;
...
...
@@ -81,33 +80,6 @@ if(! %compare_attr) {
);
}
# Operands are really just nodes with some special constraints, we check
# these and create new entries in the nodes hashmap
foreach
my
$op
(
keys
(
%operands
))
{
my
%operand
=
%
{
$operands
{"
$op
"}
};
my
%op_node
;
# constraints
if
(
defined
(
$operand
{
op_flags
}))
{
die
"
Fatal error: operands can't have op_flags (
$op
)
";
}
if
(
defined
(
$operand
{
cmp_attr
}))
{
die
"
Fatal error: cmp_attr not allowed for operands (
$op
)
";
}
if
(
defined
(
$operand
{
mode
}))
{
die
"
Operand must not have a mode defined (
$op
)
";
}
if
(
defined
(
$operand
{
out_arity
}))
{
die
"
operand must not have out_arity defined (
$op
)
";
}
if
(
defined
(
$nodes
{
$op
}))
{
die
"
$op
defined as operand and as node
";
};
foreach
my
$flag
(
keys
(
%operand
))
{
$op_node
{
$flag
}
=
$operand
{
$flag
};
}
$op_node
{
op_flags
}
=
"
O
";
$op_node
{
cmp_attr
}
=
'
return 1;
';
$op_node
{
mode
}
=
'
mode_ANY
';
$nodes
{
$op
}
=
\
%op_node
;
}
#print Dumper(%nodes);
#print Dumper(%operands);
# create c code file from specs
my
@obst_limit_func
;
...
...
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