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
b644c154
Commit
b644c154
authored
Oct 27, 2016
by
Christoph Mallon
Browse files
ia32: Factor out a template for nodes handling the fpcw.
parent
2625aa66
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_spec.pl
View file @
b644c154
...
...
@@ -400,6 +400,12 @@ my $noregop = {
fixed
=>
"
x86_insn_size_t const size = X86_SIZE_32;
",
};
my
$fpcwop
=
{
op_flags
=>
[
"
uses_memory
"
],
state
=>
"
pinned
",
fixed
=>
"
x86_insn_size_t const size = X86_SIZE_16;
",
};
%nodes
=
(
Immediate
=>
{
...
...
@@ -996,35 +1002,29 @@ ChangeCW => {
},
FldCW
=>
{
op_flags
=>
[
"
uses_memory
"
],
state
=>
"
pinned
",
template
=>
$fpcwop
,
in_reqs
=>
[
"
gp
",
"
gp
",
"
mem
"
],
out_reqs
=>
[
"
fpcw
"
],
ins
=>
[
"
base
",
"
index
",
"
mem
"
],
latency
=>
5
,
fixed
=>
"
x86_insn_size_t const size = X86_SIZE_16;
",
emit
=>
"
fldcw %AM
",
},
FnstCW
=>
{
op_flags
=>
[
"
uses_memory
"
],
state
=>
"
pinned
",
template
=>
$fpcwop
,
in_reqs
=>
[
"
gp
",
"
gp
",
"
mem
",
"
fp_cw
"
],
out_reqs
=>
[
"
mem
"
],
ins
=>
[
"
base
",
"
index
",
"
mem
",
"
fpcw
"
],
latency
=>
5
,
fixed
=>
"
x86_insn_size_t const size = X86_SIZE_16;
",
emit
=>
"
fnstcw %AM
",
},
FnstCWNOP
=>
{
op_flags
=>
[
"
uses_memory
"
],
state
=>
"
pinned
",
template
=>
$fpcwop
,
in_reqs
=>
[
"
fp_cw
"
],
out_reqs
=>
[
"
mem
"
],
ins
=>
[
"
fpcw
"
],
latency
=>
0
,
fixed
=>
"
x86_insn_size_t const size = X86_SIZE_16;
",
emit
=>
"",
},
...
...
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