diff options
author | Björn Gustavsson <[email protected]> | 2013-02-04 13:53:40 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-02-04 13:53:40 +0100 |
commit | 9b5dc27be0baab15d1bc8b583305205559d97668 (patch) | |
tree | e48e22712662ec4b1ef16cc6025bb7eecba089d2 /erts | |
parent | f84427d53db9843227adda945fb10ed19fc762b8 (diff) | |
parent | 819894b14db18c98ea0460cbbb28f3ad2a1d1b1b (diff) | |
download | otp-9b5dc27be0baab15d1bc8b583305205559d97668.tar.gz otp-9b5dc27be0baab15d1bc8b583305205559d97668.tar.bz2 otp-9b5dc27be0baab15d1bc8b583305205559d97668.zip |
Merge branch 'bjorn/compiler/float/OTP-10788'
* bjorn/compiler/float/OTP-10788:
beam_type: Convert integer to float at compile time
compiler: Use the literal pool for floating point constants
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/beam/beam_load.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c index f57fa2bfbb..81c1ea749a 100644 --- a/erts/emulator/beam/beam_load.c +++ b/erts/emulator/beam/beam_load.c @@ -1853,7 +1853,10 @@ load_code(LoaderState* stp) unsigned tag; switch (last_op->a[arg].val) { - case 0: /* Floating point number */ + case 0: + /* Floating point number. + * Not generated by the compiler in R16B and later. + */ { Eterm* hp; /* XXX:PaN - Halfword should use ARCH_64 variant instead */ |