diff options
author | Björn Gustavsson <[email protected]> | 2017-08-24 10:21:39 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-08-24 10:21:39 +0200 |
commit | fbf740d68600b59dc5fa7bd76d0aa0d019e81a75 (patch) | |
tree | 08092ecd6b529989e888bf976d1370a1afacf8d0 /erts/emulator/test | |
parent | 6c4b60d6b9208bdc5eef3f0f2da220fbce890938 (diff) | |
parent | 7b64965d7a22d2250d3c6582a6d1737ca325a8dc (diff) | |
download | otp-fbf740d68600b59dc5fa7bd76d0aa0d019e81a75.tar.gz otp-fbf740d68600b59dc5fa7bd76d0aa0d019e81a75.tar.bz2 otp-fbf740d68600b59dc5fa7bd76d0aa0d019e81a75.zip |
Merge branch 'bjorn/erts/improve-beam-ops'
* bjorn/erts/improve-beam-ops:
arith_instrs.tab: Clean up bsl/bsr
beam_makeops: Stop using the Arg() macro
Eliminate the beam_instrs.h file
Add the 'S' type for a register source
Introduce more packable types
Pack cold instructions too
Pack instructions using 'q', 'c', and 's'
beam_makeops: Rewrite the packer, fixing several bugs
Make map update instruction functions indepedent of instruction format
beam_makeops: Introduce the new type 'W' (machine word)
Use the wait_timeout_{un}locked_int instructions
beam_makeops: Remove the unused aliases 'N' and 'U'
beam_makeops: Add an additional sanity check
beam_makeops: Prevent truncation when packing 'I' values
Improve performance for bsl/bsr
arith_instrs.tab: Eliminate warning for uninitialized value
beam_emu: Remove unused macros
beam_makeops: Remove unused subroutine save_c_code
Add missing -no_next for badarg instruction
Diffstat (limited to 'erts/emulator/test')
-rw-r--r-- | erts/emulator/test/tuple_SUITE.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/emulator/test/tuple_SUITE.erl b/erts/emulator/test/tuple_SUITE.erl index 79b681b4d1..baf41180e0 100644 --- a/erts/emulator/test/tuple_SUITE.erl +++ b/erts/emulator/test/tuple_SUITE.erl @@ -134,6 +134,13 @@ t_element(Config) when is_list(Config) -> {'EXIT', {badarg, _}} = (catch element(1, id(42))), {'EXIT', {badarg, _}} = (catch element(id(1.5), id({a,b}))), + %% Make sure that the loader does not reject the module when + %% huge literal index values are used. + {'EXIT', {badarg, _}} = (catch element((1 bsl 24)-1, id({a,b,c}))), + {'EXIT', {badarg, _}} = (catch element(1 bsl 24, id({a,b,c}))), + {'EXIT', {badarg, _}} = (catch element(1 bsl 32, id({a,b,c}))), + {'EXIT', {badarg, _}} = (catch element(1 bsl 64, id({a,b,c}))), + ok. get_elements([Element|Rest], Tuple, Pos) -> |