Commit de0b229e authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Factor out a template for emms and femms.

parent b644c154
...@@ -406,6 +406,14 @@ my $fpcwop = { ...@@ -406,6 +406,14 @@ my $fpcwop = {
fixed => "x86_insn_size_t const size = X86_SIZE_16;", fixed => "x86_insn_size_t const size = X86_SIZE_16;",
}; };
my $emmsop = {
op_flags => [ "keep" ],
out_reqs => [ "none" ],
attrs_equal => "attrs_equal_false",
fixed => "x86_insn_size_t const size = X86_SIZE_32;"
."\t$x87sim",
};
%nodes = ( %nodes = (
Immediate => { Immediate => {
...@@ -1945,23 +1953,15 @@ ffreep => { ...@@ -1945,23 +1953,15 @@ ffreep => {
}, },
emms => { emms => {
op_flags => [ "keep" ], template => $emmsop,
out_reqs => [ "none" ], emit => "emms",
attrs_equal => "attrs_equal_false", latency => 3,
emit => "emms",
fixed => "x86_insn_size_t const size = X86_SIZE_32;"
."\t".$x87sim,
latency => 3,
}, },
femms => { femms => {
op_flags => [ "keep" ], template => $emmsop,
out_reqs => [ "none" ], emit => "femms",
attrs_equal => "attrs_equal_false", latency => 3,
emit => "femms",
fixed => "x86_insn_size_t const size = X86_SIZE_32;"
."\t".$x87sim,
latency => 3,
}, },
# Spilling and reloading of SSE registers # Spilling and reloading of SSE registers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment