This adds some basic handling for bf16 constants, attempting to treat them a lot like fp16 constants where it can. Zero immediates get lowered to FMOVH0, others either get lowered to FMOVWHr(MOVi32imm) or use FMOVHi if they can. Without fp16 they get expanded. This may not always be optimal, but fixes a gap in our lowering. See https://github.com/llvm/llvm-project/blob/main/llvm/test/CodeGen/AArch64/f16-imm.ll for the equivalent fp16 test.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo