[PATCH] D156883: [RISCV] Implement support for bf16 selects when zfbfmin is enabled

Alex Bradbury via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 05:41:04 PDT 2023


asb created this revision.
asb added reviewers: craig.topper, reames, joshua-arch1.
Herald added subscribers: jobnoorman, luke, wingo, pmatos, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
asb requested review of this revision.
Herald added subscribers: wangpc, eopXD, MaskRay.
Herald added a project: LLVM.

These test cases previously caused an error. RISCVInstrInfo::copyPhysReg also needed a tweak in order to account for copying bf16 values in FPR16 registers.


https://reviews.llvm.org/D156883

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
  llvm/test/CodeGen/RISCV/bfloat-select-fcmp.ll
  llvm/test/CodeGen/RISCV/bfloat-select-icmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156883.546425.patch
Type: text/x-patch
Size: 18600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230802/e6c2ef53/attachment.bin>


More information about the llvm-commits mailing list