[RISCV][NFC] Add test case for accept hexadecimal floating-point for fli instructions
Zfa provide fli instruction to load a floating point immediate value, and some of those are not easy to write and read by human, so hexadecimal floating-point format should be a good alternative way to write: Consider this case: 1^-16 = 1.52587890625e-05 (decimal) vs 0x1p-16 (hexadecimal) The hexadecimal format is easier to write for human. Fortunately hexadecimal floating-point constants already supported in C99, so actually we don't need to add any extra code to support that. This patch added test case for demonstrate we support that and also make sure this will be supported in future. I also gonna to talk with ISA folks to adding hexadecimal floating-point to the ISA spec, so that user will know fli accept value in this format. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D148077
Loading
Please sign in to comment