mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
[RISCV][MC] Fix encoding for vfwmaccbf16
The encoding matched the one given in the bf16 extension specification PDF, but per https://github.com/riscv/riscv-bfloat16/issues/45 it seems this encoding was not the one that is intended and was incorrectly modified due to an issue in the PDF generation process. This patch corrects the opcode to 111011 from 100011. The correct encoding is shown in the new spec PDF <https://github.com/riscv/riscv-bfloat16/releases/tag/20230614>. Differential Revision: https://reviews.llvm.org/D152894
This commit is contained in:
parent
82e29c65e3
commit
d532484468
@ -27,5 +27,5 @@ defm VFNCVTBF16_F_F_W : VNCVTF_FV_VS2<"vfncvtbf16.f.f.w", 0b010010, 0b11101>;
|
||||
|
||||
let Predicates = [HasStdExtZvfbfwma], Constraints = "@earlyclobber $vd",
|
||||
RVVConstraint = WidenV, Uses = [FRM], mayRaiseFPException = true in {
|
||||
defm VFWMACCBF16_V : VWMAC_FV_V_F<"vfwmaccbf16", 0b100011>;
|
||||
defm VFWMACCBF16_V : VWMAC_FV_V_F<"vfwmaccbf16", 0b111011>;
|
||||
}
|
||||
|
@ -18,27 +18,27 @@
|
||||
# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
|
||||
|
||||
# CHECK-INST: vfwmaccbf16.vv v8, v20, v4, v0.t
|
||||
# CHECK-ENCODING: [0x57,0x14,0x4a,0x8c]
|
||||
# CHECK-ENCODING: [0x57,0x14,0x4a,0xec]
|
||||
# CHECK-ERROR: instruction requires the following: 'Zvfbfwma' (Vector BF16 widening mul-add){{$}}
|
||||
# CHECK-UNKNOWN: 57 14 4a 8c <unknown>
|
||||
# CHECK-UNKNOWN: 57 14 4a ec <unknown>
|
||||
vfwmaccbf16.vv v8, v20, v4, v0.t
|
||||
|
||||
# CHECK-INST: vfwmaccbf16.vv v8, v20, v4
|
||||
# CHECK-ENCODING: [0x57,0x14,0x4a,0x8e]
|
||||
# CHECK-ENCODING: [0x57,0x14,0x4a,0xee]
|
||||
# CHECK-ERROR: instruction requires the following: 'Zvfbfwma' (Vector BF16 widening mul-add){{$}}
|
||||
# CHECK-UNKNOWN: 57 14 4a 8e <unknown>
|
||||
# CHECK-UNKNOWN: 57 14 4a ee <unknown>
|
||||
vfwmaccbf16.vv v8, v20, v4
|
||||
|
||||
# CHECK-INST: vfwmaccbf16.vf v8, fa0, v4, v0.t
|
||||
# CHECK-ENCODING: [0x57,0x54,0x45,0x8c]
|
||||
# CHECK-ENCODING: [0x57,0x54,0x45,0xec]
|
||||
# CHECK-ERROR: instruction requires the following: 'Zvfbfwma' (Vector BF16 widening mul-add){{$}}
|
||||
# CHECK-UNKNOWN: 57 54 45 8c <unknown>
|
||||
# CHECK-UNKNOWN: 57 54 45 ec <unknown>
|
||||
vfwmaccbf16.vf v8, fa0, v4, v0.t
|
||||
|
||||
# CHECK-INST: vfwmaccbf16.vf v8, fa0, v4
|
||||
# CHECK-ENCODING: [0x57,0x54,0x45,0x8e]
|
||||
# CHECK-ENCODING: [0x57,0x54,0x45,0xee]
|
||||
# CHECK-ERROR: instruction requires the following: 'Zvfbfwma' (Vector BF16 widening mul-add){{$}}
|
||||
# CHECK-UNKNOWN: 57 54 45 8e <unknown>
|
||||
# CHECK-UNKNOWN: 57 54 45 ee <unknown>
|
||||
vfwmaccbf16.vf v8, fa0, v4
|
||||
|
||||
# Check scalar half FP load/store/move included in this extension.
|
||||
|
Loading…
Reference in New Issue
Block a user