Skip to content

Commit e6ca3d1

Browse files
committed
Rename 2 f32x4 arithmatic instructions to contain "f32x4":
Specifically: - "vsub32x4" -> "vsubf32x4" - "vmul32x4" -> "vmulf32x4"
1 parent d910101 commit e6ca3d1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cranelift/codegen/src/isa/pulley_shared/lower.isle

+2-2
Original file line numberDiff line numberDiff line change
@@ -1157,14 +1157,14 @@
11571157

11581158
(rule (lower (has_type $F32 (fsub a b))) (pulley_fsub32 a b))
11591159
(rule (lower (has_type $F64 (fsub a b))) (pulley_fsub64 a b))
1160-
(rule (lower (has_type $F32X4 (fsub a b))) (pulley_vsub32x4 a b))
1160+
(rule (lower (has_type $F32X4 (fsub a b))) (pulley_vsubf32x4 a b))
11611161
(rule (lower (has_type $F64X2 (fsub a b))) (pulley_vsubf64x2 a b))
11621162

11631163
;;;; Rules for `fmul` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
11641164

11651165
(rule (lower (has_type $F32 (fmul a b))) (pulley_fmul32 a b))
11661166
(rule (lower (has_type $F64 (fmul a b))) (pulley_fmul64 a b))
1167-
(rule (lower (has_type $F32X4 (fmul a b))) (pulley_vmul32x4 a b))
1167+
(rule (lower (has_type $F32X4 (fmul a b))) (pulley_vmulf32x4 a b))
11681168
(rule (lower (has_type $F64X2 (fmul a b))) (pulley_vmulf64x2 a b))
11691169

11701170
;;;; Rules for `fdiv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

pulley/src/interp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2980,7 +2980,7 @@ impl ExtendedOpVisitor for Interpreter<'_> {
29802980
ControlFlow::Continue(())
29812981
}
29822982

2983-
fn vsub32x4(&mut self, operands: BinaryOperands<VReg>) -> ControlFlow<Done> {
2983+
fn vsubf32x4(&mut self, operands: BinaryOperands<VReg>) -> ControlFlow<Done> {
29842984
let mut a = self.state[operands.src1].get_f32x4();
29852985
let b = self.state[operands.src2].get_f32x4();
29862986
for (a, b) in a.iter_mut().zip(b) {
@@ -2997,7 +2997,7 @@ impl ExtendedOpVisitor for Interpreter<'_> {
29972997
ControlFlow::Continue(())
29982998
}
29992999

3000-
fn vmul32x4(&mut self, operands: BinaryOperands<VReg>) -> ControlFlow<Done> {
3000+
fn vmulf32x4(&mut self, operands: BinaryOperands<VReg>) -> ControlFlow<Done> {
30013001
let mut a = self.state[operands.src1].get_f32x4();
30023002
let b = self.state[operands.src2].get_f32x4();
30033003
for (a, b) in a.iter_mut().zip(b) {

pulley/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -812,11 +812,11 @@ macro_rules! for_each_extended_op {
812812
/// `low32(dst) = low32(src1) - low32(src2)`
813813
fsub32 = Fsub32 { operands: BinaryOperands<FReg> };
814814
/// `low128(dst) = low128(src1) - low128(src2)`
815-
vsub32x4 = Vsub32x4 { operands: BinaryOperands<VReg> };
815+
vsubf32x4 = Vsubf32x4 { operands: BinaryOperands<VReg> };
816816
/// `low32(dst) = low32(src1) * low32(src2)`
817817
fmul32 = Fmul32 { operands: BinaryOperands<FReg> };
818818
/// `low128(dst) = low128(src1) * low128(src2)`
819-
vmul32x4 = Vmul32x4 { operands: BinaryOperands<VReg> };
819+
vmulf32x4 = Vmulf32x4 { operands: BinaryOperands<VReg> };
820820
/// `low32(dst) = low32(src1) / low32(src2)`
821821
fdiv32 = Fdiv32 { operands: BinaryOperands<FReg> };
822822
/// `low128(dst) = low128(src1) / low128(src2)`

0 commit comments

Comments
 (0)