Skip to contentSkip to conversation

target/riscv: Fix vfwmaccbf16.vf

PATCH Applied Max Chou 4 participants 4 messages Oct 5, 2023 – Oct 11, 2023 RISC-V

lore
Share & tools
lore

Max Chou

author
#0 lore raw

PATCH 1/1 target/riscv: Fix vfwmaccbf16.vf

The operator (fwmacc16) of vfwmaccbf16.vf helper function should be replaced by fwmaccbf16.

---
 target/riscv/vector_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/vector_helper.c +1 -1
index 3fb05cc3d6e..c45d94c165c 100644
@@ -3361,7 +3361,7 @@ static uint32_t fwmaccbf16(uint16_t a, uint16_t b, uint32_t d, float_status *s)
 
 RVVCALL(OPFVV3, vfwmaccbf16_vv, WOP_UUU_H, H4, H2, H2, fwmaccbf16)
 GEN_VEXT_VV_ENV(vfwmaccbf16_vv, 4)
-RVVCALL(OPFVF3, vfwmaccbf16_vf, WOP_UUU_H, H4, H2, fwmacc16)
+RVVCALL(OPFVF3, vfwmaccbf16_vf, WOP_UUU_H, H4, H2, fwmaccbf16)
 GEN_VEXT_VF(vfwmaccbf16_vf, 4)
 
 static uint32_t fwnmacc16(uint16_t a, uint16_t b, uint32_t d, float_status *s)
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Max Chou

The operator (fwmacc16) of vfwmaccbf16.vf helper function should be replaced by fwmaccbf16.

Fixes adf772b0f7 ("target/riscv: Add support for Zvfbfwma extension")
Quoted 18 lines
---
  target/riscv/vector_helper.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/vector_helper.c +1 -1
index 3fb05cc3d6e..c45d94c165c 100644
@@ -3361,7 +3361,7 @@ static uint32_t fwmaccbf16(uint16_t a, uint16_t b, uint32_t d, float_status *s)
 
  RVVCALL(OPFVV3, vfwmaccbf16_vv, WOP_UUU_H, H4, H2, H2, fwmaccbf16)
  GEN_VEXT_VV_ENV(vfwmaccbf16_vv, 4)
-RVVCALL(OPFVF3, vfwmaccbf16_vf, WOP_UUU_H, H4, H2, fwmacc16)
+RVVCALL(OPFVF3, vfwmaccbf16_vf, WOP_UUU_H, H4, H2, fwmaccbf16)
  GEN_VEXT_VF(vfwmaccbf16_vf, 4)
 
  static uint32_t fwnmacc16(uint16_t a, uint16_t b, uint32_t d, float_status *s)
Reviewed-by on v1 1/1
#2 lore raw
In reply to Max Chou
Quoted 13 lines · Max Chou

The operator (fwmacc16) of vfwmaccbf16.vf helper function should be replaced by fwmaccbf16.

---
  target/riscv/vector_helper.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/vector_helper.c +0 -0
index 3fb05cc3d6e..c45d94c165c 100644

target/riscv/vector_helper.c static uint32_t fwmaccbf16(uint16_t a, uint16_t b, uint32_t d, float_status *s) · line 3364

Quoted 5 lines
target/riscv/vector_helper.c +1 -1
@@ -3361,7 +3361,7 @@ static uint32_t fwmaccbf16(uint16_t a, uint16_t b, uint32_t d, float_status *s)
 
  RVVCALL(OPFVV3, vfwmaccbf16_vv, WOP_UUU_H, H4, H2, H2, fwmaccbf16)
  GEN_VEXT_VV_ENV(vfwmaccbf16_vv, 4)
-RVVCALL(OPFVF3, vfwmaccbf16_vf, WOP_UUU_H, H4, H2, fwmacc16)
+RVVCALL(OPFVF3, vfwmaccbf16_vf, WOP_UUU_H, H4, H2, fwmaccbf16)

Zhiwei

Quoted 3 lines
target/riscv/vector_helper.c +0 -0
  GEN_VEXT_VF(vfwmaccbf16_vf, 4)
 
  static uint32_t fwnmacc16(uint16_t a, uint16_t b, uint32_t d, float_status *s)
#3 lore raw
In reply to Max Chou
Quoted 5 lines · Max Chou

The operator (fwmacc16) of vfwmaccbf16.vf helper function should be replaced by fwmaccbf16.

Thanks!

Applied to riscv-to-apply.next

Alistair

Quoted 21 lines
---
 target/riscv/vector_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/vector_helper.c +1 -2
index 3fb05cc3d6e..c45d94c165c 100644
@@ -3361,7 +3361,7 @@ static uint32_t fwmaccbf16(uint16_t a, uint16_t b, uint32_t d, float_status *s)
 
 RVVCALL(OPFVV3, vfwmaccbf16_vv, WOP_UUU_H, H4, H2, H2, fwmaccbf16)
 GEN_VEXT_VV_ENV(vfwmaccbf16_vv, 4)
-RVVCALL(OPFVF3, vfwmaccbf16_vf, WOP_UUU_H, H4, H2, fwmacc16)
+RVVCALL(OPFVF3, vfwmaccbf16_vf, WOP_UUU_H, H4, H2, fwmaccbf16)
 GEN_VEXT_VF(vfwmaccbf16_vf, 4)
 
 static uint32_t fwnmacc16(uint16_t a, uint16_t b, uint32_t d, float_status *s)
--

2.34.1