cranelift: Rename i{min,max} to s{min,max} (#5187)

This brings these instructions with our general naming convention
of signed instructions being prefixed with `s`.
This commit is contained in:
Afonso Bordado
2022-11-03 18:20:33 +00:00
committed by GitHub
parent 2c69b94744
commit 3ef30b5b67
20 changed files with 173 additions and 173 deletions

View File

@@ -589,7 +589,7 @@ where
}
ControlFlow::Continue
}
Opcode::Imin => {
Opcode::Smin => {
if ctrl_ty.is_vector() {
let icmp = icmp(ctrl_ty, IntCC::SignedGreaterThan, &arg(1)?, &arg(0)?)?;
assign(vselect(&icmp, &arg(0)?, &arg(1)?, ctrl_ty)?)
@@ -612,7 +612,7 @@ where
)
}
}
Opcode::Imax => {
Opcode::Smax => {
if ctrl_ty.is_vector() {
let icmp = icmp(ctrl_ty, IntCC::SignedGreaterThan, &arg(0)?, &arg(1)?)?;
assign(vselect(&icmp, &arg(0)?, &arg(1)?, ctrl_ty)?)