aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_block.erl
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2013-11-18 11:49:58 +0100
committerBjörn Gustavsson <[email protected]>2013-12-13 12:52:05 +0100
commit51c7e590e470cb2aa8d09ac8f56a659e272d88b4 (patch)
treee2ee987c985c908d6a27734b65584b67abf4ae17 /lib/compiler/src/beam_block.erl
parentfa6407f35c12156a9ed2eb25fb131e1ef5c7f0e4 (diff)
downloadotp-51c7e590e470cb2aa8d09ac8f56a659e272d88b4.tar.gz
otp-51c7e590e470cb2aa8d09ac8f56a659e272d88b4.tar.bz2
otp-51c7e590e470cb2aa8d09ac8f56a659e272d88b4.zip
Properly let floating-point instructions through in the BEAM compiler
The compiler shouldn't crash when fed an already-optimised BEAM assembly file.
Diffstat (limited to 'lib/compiler/src/beam_block.erl')
-rw-r--r--lib/compiler/src/beam_block.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_block.erl b/lib/compiler/src/beam_block.erl
index cf5244e1ce..ea984a6afb 100644
--- a/lib/compiler/src/beam_block.erl
+++ b/lib/compiler/src/beam_block.erl
@@ -144,6 +144,10 @@ collect({set_tuple_element,S,D,I}) -> {set,[],[S,D],{set_tuple_element,I}};
collect({get_list,S,D1,D2}) -> {set,[D1,D2],[S],get_list};
collect(remove_message) -> {set,[],[],remove_message};
collect({'catch',R,L}) -> {set,[R],[],{'catch',L}};
+collect(fclearerror) -> {set,[],[],fclearerror};
+collect({fcheckerror,{f,0}}) -> {set,[],[],fcheckerror};
+collect({fmove,S,D}) -> {set,[D],[S],fmove};
+collect({fconv,S,D}) -> {set,[D],[S],fconv};
collect(_) -> error.
%% embed_lines([Instruction]) -> [Instruction]