aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-10-19 14:50:50 +0200
committerLukas Larsson <[email protected]>2017-11-20 10:31:17 +0100
commitd8d07a7593d811a6adad060951bc425ee0d81446 (patch)
tree2c5f861c105089e47ecc28ac70bfc85c5a6365b1 /lib/compiler/test
parent202d62c473e00fd066a70c85ba1d5c26ef2607a1 (diff)
downloadotp-d8d07a7593d811a6adad060951bc425ee0d81446.tar.gz
otp-d8d07a7593d811a6adad060951bc425ee0d81446.tar.bz2
otp-d8d07a7593d811a6adad060951bc425ee0d81446.zip
compiler: Add +to_dis option that dumps loaded asm
Diffstat (limited to 'lib/compiler/test')
-rw-r--r--lib/compiler/test/compile_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/test/compile_SUITE.erl b/lib/compiler/test/compile_SUITE.erl
index f647a4030d..98a77ea2b2 100644
--- a/lib/compiler/test/compile_SUITE.erl
+++ b/lib/compiler/test/compile_SUITE.erl
@@ -398,6 +398,7 @@ do_file_listings(DataDir, PrivDir, [File|Files]) ->
ok = file:delete(filename:join(Listings, File ++ ".core")),
do_listing(Simple, TargetDir, to_core, ".core"),
do_listing(Simple, TargetDir, to_kernel, ".kernel"),
+ do_listing(Simple, TargetDir, to_dis, ".dis"),
%% Final clean up.
lists:foreach(fun(F) -> ok = file:delete(F) end,
@@ -413,6 +414,7 @@ listings_big(Config) when is_list(Config) ->
do_listing(Big, TargetDir, 'E'),
do_listing(Big, TargetDir, 'P'),
do_listing(Big, TargetDir, dkern, ".kernel"),
+ do_listing(Big, TargetDir, to_dis, ".dis"),
TargetNoext = filename:rootname(Target, code:objfile_extension()),
{ok,big} = compile:file(TargetNoext, [from_asm,{outdir,TargetDir}]),