|
31 | 31 | {bs_create_bin_integer_no_fail, 3}, |
32 | 32 | {bs_create_bin_integer_fail, 3}, |
33 | 33 | {bs_create_bin_binary_no_fail, 3}, |
34 | | - {bs_create_bin_binary_fail, 3} |
| 34 | + {bs_create_bin_binary_fail, 3}, |
| 35 | + {bs_create_bin_alloc_list, 1} |
35 | 36 | ]}. |
36 | 37 |
|
37 | 38 | {attributes, []}. |
38 | 39 |
|
39 | | -{labels, 26}. |
| 40 | +{labels, 28}. |
40 | 41 |
|
41 | 42 | {function, bs_create_bin_utf8_no_fail, 3, 2}. |
42 | 43 | {label, 1}. |
@@ -122,3 +123,12 @@ return. |
122 | 123 | {label, 26}. |
123 | 124 | {move, {atom, fail}, {x, 0}}. |
124 | 125 | return. |
| 126 | + |
| 127 | +{function, bs_create_bin_alloc_list, 1, 28}. |
| 128 | +{label, 27}. |
| 129 | +{func_info, {atom, test_op_bs_create_bin_asm}, {atom, bs_create_bin_alloc_list}, 1}. |
| 130 | +{label, 28}. |
| 131 | +%% Test bs_create_bin with allocator list instead of simple literal |
| 132 | +{bs_create_bin, {f, 0}, {alloc, [{words, 2}, {floats, 1}, {funs, 1}]}, 1, 1, {x, 0}, |
| 133 | + {list, [{atom, integer}, 1, 1, nil, {x, 0}, {integer, 32}]}}. |
| 134 | +return. |
0 commit comments