[ARM][DAG] BF16 constant handling.
authorDavid Green <david.green@arm.com>
Sun, 2 Oct 2022 10:51:08 +0000 (11:51 +0100)
committerDavid Green <david.green@arm.com>
Sun, 2 Oct 2022 10:51:08 +0000 (11:51 +0100)
commit3651635ecad1a5a62321bcd79dcbf20855ceb443
tree2eb3d18277cdf2199452666b3d8cf011048f2e69
parent3f0ad8558aa5f92387831662130b0124596ad6ad
[ARM][DAG] BF16 constant handling.

Much like f16 and f32, we shouldn't try to shrink bf16 to smaller fp
constant.  The code may not be optimal, but this allows us to legalize
bf16 constants under Arm without errors.
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/test/CodeGen/ARM/bf16-imm.ll [new file with mode: 0644]