[llvm] [X86][LegalizeDAG] FPOWI: promote f16 operand (PR #105775)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 20:29:59 PDT 2024


https://github.com/v01dXYZ created https://github.com/llvm/llvm-project/pull/105775

Fixes #105747 

>From 374c8d8dfb9abaf1c60c207ca1f060a54dbfcf20 Mon Sep 17 00:00:00 2001
From: v01dxyz <v01dxyz at v01d.xyz>
Date: Fri, 23 Aug 2024 05:23:40 +0200
Subject: [PATCH] [X86][LegalizeDAG] FPOWI: promote f16 operand

---
 llvm/lib/Target/X86/X86ISelLowering.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index e0face6b6a7904..83bb2577777864 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -614,6 +614,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
     setOperationAction(ISD::FTAN, VT, Action);
     setOperationAction(ISD::FSQRT, VT, Action);
     setOperationAction(ISD::FPOW, VT, Action);
+    setOperationAction(ISD::FPOWI, VT, Action);
     setOperationAction(ISD::FLOG, VT, Action);
     setOperationAction(ISD::FLOG2, VT, Action);
     setOperationAction(ISD::FLOG10, VT, Action);



More information about the llvm-commits mailing list