This is an archive of the discontinued LLVM Phabricator instance.

[LegalizeTypes][X86] Add SoftPromoteHalfOperand support for STRICT_FP_TO_SINT/STRICT_FP_TO_UINT
Needs ReviewPublic

Authored by Pretty-box on Jun 22 2022, 4:34 AM.

Details

Diff Detail

Event Timeline

Pretty-box created this revision.Jun 22 2022, 4:34 AM
Pretty-box requested review of this revision.Jun 22 2022, 4:34 AM
pengfei added inline comments.Jun 22 2022, 5:45 AM
llvm/test/CodeGen/X86/fp16-promote-strict.ll
2–3

Does it intend to check sse only? The x86_64 will enable +sse2 by default.

6

We have made half a legal type on SSE2 and above targets now. So they won't go into the SoftPromoteXXX anymore.
For targets before SSE2, both GCC and Clang have decided to drop the support for half type, because we can't make the ABI compatible with the later targets.

Pretty-box added inline comments.Jun 24 2022, 1:05 AM
llvm/test/CodeGen/X86/fp16-promote-strict.ll
6

I got it, thanks for the reminder.