llvm-project
3b32d6e5 - [X86][GlobalISel] Support fp80 for G_FPTRUNC and G_FPEXT (#141611)

Commit
37 days ago
[X86][GlobalISel] Support fp80 for G_FPTRUNC and G_FPEXT (#141611) Introduce `G_FPEXTLOAD` and `G_FPTRUNCSTORE` for extending load and truncating store of a floating point value. * Introduce `IfFPExtend` and `IfFPTrunc` into `GINodeEquiv` to dispatch SDAG patterns to the newly introduced opcodes similarly to `G_SEXTLOAD` and `G_ZEXTLOAD`. * Added narrowing and widening for the opcodes. However they aren't used anywhere. * Supported lowering of `G_FPEXTLOAD` and `G_FPTRUNCSTORE` for X86 by using X87. * Added `lowerFPExtAndTruncMem` as default lowering for `G_FPTRUNC` and `G_FPEXT` using memory. * Dropped autogenerated line from `legalizer-info-validation.mir` as scripts can't update them anymore. * Updated `match-table-cxx.td` with regexps. This is not the first PR that updates the whole test after opcode introduction.
Author
Parents
Loading