diff options
author | Björn Gustavsson <[email protected]> | 2015-01-12 09:54:22 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-01-12 09:54:22 +0100 |
commit | 90f9d6b8c6277f68c75d347aff60ecc44ca22dfe (patch) | |
tree | 4fe87375bcda6db063bc8d7ee304b5b1b643d480 /lib/compiler/test/misc_SUITE.erl | |
parent | 821d84c5860a9a26185efa19be407796422e3090 (diff) | |
parent | 5d9aa72a69bd3fd2054558036838fab6434c20df (diff) | |
download | otp-90f9d6b8c6277f68c75d347aff60ecc44ca22dfe.tar.gz otp-90f9d6b8c6277f68c75d347aff60ecc44ca22dfe.tar.bz2 otp-90f9d6b8c6277f68c75d347aff60ecc44ca22dfe.zip |
Merge branch 'bjorn/compiler/beam_dead/OTP-12393'
* bjorn/compiler/beam_dead/OTP-12393:
Update the comments that explain what beam_dead does
Improve optimization of bs_start_match2
Extend count_bits_matched/3 to handle the UTF instructions
misc_SUITE: Cover the exception handling code in beam_dead
Generalize optimizations using shortcut_rel_op/4
beam_dead: Optimize branches from relational conditionals
Diffstat (limited to 'lib/compiler/test/misc_SUITE.erl')
-rw-r--r-- | lib/compiler/test/misc_SUITE.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/compiler/test/misc_SUITE.erl b/lib/compiler/test/misc_SUITE.erl index 44c7161530..5416e8b6c7 100644 --- a/lib/compiler/test/misc_SUITE.erl +++ b/lib/compiler/test/misc_SUITE.erl @@ -225,14 +225,15 @@ silly_coverage(Config) when is_list(Config) -> {label,2}|non_proper_list]}],99}, ?line expect_error(fun() -> beam_bool:module(BoolInput, []) end), - %% beam_dead + %% beam_dead. This is tricky. Our function must look OK to + %% beam_utils:clean_labels/1, but must crash beam_dead. DeadInput = {?MODULE,[{foo,0}],[], [{function,foo,0,2, [{label,1}, {func_info,{atom,?MODULE},{atom,foo},0}, {label,2}, - {jump,bad}]}],99}, - ?line expect_error(fun() -> beam_block:module(DeadInput, []) end), + {test,is_eq_exact,{f,1},[bad,operands]}]}],99}, + expect_error(fun() -> beam_dead:module(DeadInput, []) end), %% beam_clean CleanInput = {?MODULE,[{foo,0}],[], |