[llvm] [NVPTX] Add folding for cvt.rn.bf16x2.f32 (PR #116109)

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 15:20:41 PST 2024


================
@@ -135,3 +135,24 @@ ret i32 %val
 }
 
 declare i32 @llvm.nvvm.f2tf32.rna(float)
+
+
+define <2 x bfloat> @fold_ff2bf16x2(float %a, float %b) {
+; CHECK-LABEL: fold_ff2bf16x2
----------------
AlexMaclean wrote:

Sounds good, I've updated the test file.

https://github.com/llvm/llvm-project/pull/116109


More information about the llvm-commits mailing list