mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
add gte and lte to dec
This commit is contained in:
parent
78ebe4e686
commit
3aca2d7412
1 changed files with 10 additions and 0 deletions
|
@ -2233,6 +2233,16 @@ fn build_dec_binop<'a, 'ctx>(
|
|||
|
||||
NumLt => call_bitcode_fn(env, &[lhs, rhs], &bitcode::NUM_LESS_THAN[IntWidth::I128]),
|
||||
NumGt => call_bitcode_fn(env, &[lhs, rhs], &bitcode::NUM_GREATER_THAN[IntWidth::I128]),
|
||||
NumLte => call_bitcode_fn(
|
||||
env,
|
||||
&[lhs, rhs],
|
||||
&bitcode::NUM_LESS_THAN_OR_EQUAL[IntWidth::I128],
|
||||
),
|
||||
NumGte => call_bitcode_fn(
|
||||
env,
|
||||
&[lhs, rhs],
|
||||
&bitcode::NUM_GREATER_THAN_OR_EQUAL[IntWidth::I128],
|
||||
),
|
||||
_ => {
|
||||
unreachable!("Unrecognized dec binary operation: {:?}", op);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue