[PATCH] D140460: [RISCV][MC] Add support for experimental zfa extension
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 10:17:53 PST 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h:347
+ // We expect an 5-bit binary encoding of a floating-point constant here.
+ static unsigned char Exp_arr[31] = {
+ 0b00000001, 0b01101111, 0b01110000, 0b01110111, 0b01111000, 0b01111011,
----------------
Use uint8_t.
================
Comment at: llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h:355
+
+ static unsigned char Man_arr[31] = {
+ 0b000, 0b000, 0b000, 0b000, 0b000, 0b000, 0b000, 0b000,
----------------
Use uint8_t
================
Comment at: llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h:412
+
+ return -1;
+}
----------------
I can't find any caller that checks for the -1 value. Did I miss it?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140460/new/
https://reviews.llvm.org/D140460
More information about the llvm-commits
mailing list