[llvm] [SimplifyLibCalls] fdim constant fold (PR #109235)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 03:49:33 PDT 2024
================
@@ -0,0 +1,20 @@
+; RUN: opt %s -passes=instcombine -S -mtriple=i386-pc-mingw32 | FileCheck %s --check-prefixes=CHECK,MINGW32
+
+define double @fdim_double() {
+; CHECK-LABEL: define double @fdim_double() {
+; MINGW32: ret double 2.500000e+00
+;
+ %dim = call double @fdim(double 10.5, double 8.0)
+ ret double %dim
+}
+
+define float @fdim_float() {
----------------
arsenm wrote:
Yes, the call should remain
https://github.com/llvm/llvm-project/pull/109235
More information about the llvm-commits
mailing list