mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-10 13:56:19 +00:00
enable even more dev-backend num tests
This commit is contained in:
parent
b7a41bcb3e
commit
7a365eb88f
3 changed files with 189 additions and 243 deletions
|
@ -1010,7 +1010,7 @@ trait Backend<'a> {
|
|||
arg_layouts[0], *ret_layout,
|
||||
"NumAdd: expected to have the same argument and return layout"
|
||||
);
|
||||
self.build_num_add(sym, &args[0], &args[1], ret_layout)
|
||||
self.build_num_add_wrap(sym, &args[0], &args[1], ret_layout)
|
||||
}
|
||||
LowLevel::NumAddChecked => {
|
||||
self.build_num_add_checked(sym, &args[0], &args[1], &arg_layouts[0], ret_layout)
|
||||
|
@ -2198,6 +2198,14 @@ trait Backend<'a> {
|
|||
return_layout: &InLayout<'a>,
|
||||
);
|
||||
|
||||
fn build_num_add_wrap(
|
||||
&mut self,
|
||||
dst: &Symbol,
|
||||
src1: &Symbol,
|
||||
src2: &Symbol,
|
||||
layout: &InLayout<'a>,
|
||||
);
|
||||
|
||||
/// build_num_sub_checked stores the sum of src1 and src2 into dst.
|
||||
fn build_num_sub_checked(
|
||||
&mut self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue