aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/beam_validator_SUITE_data/compiler_bug.S
blob: ba27bf5c473abed331a9cb53399153e404d6690b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{module, compiler_bug}.  %% version = 0

{exports, [{module_info,0},{module_info,1},{sum,2}]}.

{attributes, []}.

{labels, 7}.


{function, sum, 2, 2}.
  {label,1}.
    {line,[{location,"compiler_bug.erl",4}]}.
    {func_info,{atom,compiler_bug},{atom,sum},2}.
  {label,2}.
    {line,[{location,"compiler_bug.erl",5}]}.
    {gc_bif,'+',{f,0},2,[{y,0},{y,1}],{x,0}}.
    return.


{function, module_info, 0, 4}.
  {label,3}.
    {line,[]}.
    {func_info,{atom,compiler_bug},{atom,module_info},0}.
  {label,4}.
    {move,{atom,compiler_bug},{x,0}}.
    {line,[]}.
    {call_ext_only,1,{extfunc,erlang,get_module_info,1}}.


{function, module_info, 1, 6}.
  {label,5}.
    {line,[]}.
    {func_info,{atom,compiler_bug},{atom,module_info},1}.
  {label,6}.
    {move,{x,0},{x,1}}.
    {move,{atom,compiler_bug},{x,0}}.
    {line,[]}.
    {call_ext_only,2,{extfunc,erlang,get_module_info,2}}.