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

@@ -1570,7 +1570,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
}
Operator::I8x16MinS | Operator::I16x8MinS | Operator::I32x4MinS => {
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
state.push1(builder.ins().imin(a, b))
state.push1(builder.ins().smin(a, b))
}
Operator::I8x16MinU | Operator::I16x8MinU | Operator::I32x4MinU => {
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
@@ -1578,7 +1578,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
}
Operator::I8x16MaxS | Operator::I16x8MaxS | Operator::I32x4MaxS => {
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
state.push1(builder.ins().imax(a, b))
state.push1(builder.ins().smax(a, b))
}
Operator::I8x16MaxU | Operator::I16x8MaxU | Operator::I32x4MaxU => {
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);