mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Implemented INT_NE_i64
This commit is contained in:
parent
8befd12355
commit
71258e0e59
6 changed files with 72 additions and 1 deletions
|
@ -543,6 +543,26 @@ fn from_can<'a>(
|
|||
Err(()) => panic!("Invalid layout"),
|
||||
}
|
||||
}
|
||||
Symbol::BOOL_NEQ => {
|
||||
match Layout::from_var(
|
||||
env.arena,
|
||||
loc_args[0].0,
|
||||
env.subs,
|
||||
env.pointer_size,
|
||||
) {
|
||||
Ok(Layout::Builtin(builtin)) => match builtin {
|
||||
Builtin::Int64 => Symbol::INT_NEQ_I64,
|
||||
_ => {
|
||||
panic!("Not-Equality not implemented for {:?}", builtin)
|
||||
}
|
||||
},
|
||||
Ok(complex) => panic!(
|
||||
"TODO support equality on complex layouts like {:?}",
|
||||
complex
|
||||
),
|
||||
Err(()) => panic!("Invalid layout"),
|
||||
}
|
||||
}
|
||||
_ => symbol,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue