aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/beam_validator_SUITE_data/freg_uninit.S
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-02-17 16:57:04 +0100
committerBjörn Gustavsson <[email protected]>2015-02-18 13:10:29 +0100
commit912fea0b712a9d16a3361cd1ff83161013eb0e9e (patch)
treeac9c4cf460878d8f862300287a87ef50236967d5 /lib/compiler/test/beam_validator_SUITE_data/freg_uninit.S
parentc8aed3b1521edbe7c13860c9a7557129481e60b3 (diff)
downloadotp-912fea0b712a9d16a3361cd1ff83161013eb0e9e.tar.gz
otp-912fea0b712a9d16a3361cd1ff83161013eb0e9e.tar.bz2
otp-912fea0b712a9d16a3361cd1ff83161013eb0e9e.zip
beam_validator: Remove the file/1 and files/1 functions
Before the beam_validator was added as compiler pass, it was a standalone module that could analyse existing .beam files and .S files. Even though beam_validator has been part of the compiler for many releases, it still supports the analysis of .beam and .S files. To reduce the code bloat and to improve coverage of beam_validator, remove the file/1 and files/1 functions and all associated help functions. We'll need to update the test suite, since some of the checked in .S files have errors that beam_validator ignores, but that will not be accepted when running them throught the compiler using the 'from_asm' option. In particular, we will need to export all functions that should be validated (since the beam_clean pass will remove any function that is not possible to call).
Diffstat (limited to 'lib/compiler/test/beam_validator_SUITE_data/freg_uninit.S')
-rw-r--r--lib/compiler/test/beam_validator_SUITE_data/freg_uninit.S14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/compiler/test/beam_validator_SUITE_data/freg_uninit.S b/lib/compiler/test/beam_validator_SUITE_data/freg_uninit.S
index f8d805d9ec..71e833446a 100644
--- a/lib/compiler/test/beam_validator_SUITE_data/freg_uninit.S
+++ b/lib/compiler/test/beam_validator_SUITE_data/freg_uninit.S
@@ -1,10 +1,10 @@
{module, freg_uninit}. %% version = 0
-{exports, []}.
+{exports, [{sum_1,2},{sum_2,2}]}.
{attributes, []}.
-{labels, 8}.
+{labels, 7}.
{function, sum_1, 2, 2}.
@@ -14,7 +14,6 @@
{fconv,{x,0},{fr,0}}.
fclearerror.
{bif,fadd,{f,0},[{fr,0},{fr,1}],{fr,0}}.
- {'%live',1}.
return.
@@ -26,7 +25,12 @@
{fconv,{x,1},{fr,1}}.
fclearerror.
{fcheckerror,{f,0}}.
- {call,2,{f,8}}.
+ {call,2,{f,6}}.
{bif,fadd,{f,0},[{fr,0},{fr,1}],{fr,0}}.
- {'%live',1}.
+ return.
+
+{function, foo, 2, 6}.
+ {label,5}.
+ {func_info,{atom,t},{atom,foo},2}.
+ {label,6}.
return.