[llvm] [ConstantFolding] Add ilogb in isMathLibCallNoop (PR #122582)
Kshitij Paranjape via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 14 01:51:36 PST 2025
================
@@ -0,0 +1,13 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt < %s -O1 -S | FileCheck %s
+
+define i32 @ilogb_const1() {
+; CHECK-LABEL: define noundef i32 @ilogb_const1(
+; CHECK-SAME: ) local_unnamed_addr #[[ATTR0:[0-9]+]] {
+; CHECK-NEXT: ret i32 2
+;
+ %r = call i32 @ilogb(double -7.000000e+00)
+ ret i32 %r
+}
+
----------------
kshitijvp wrote:
Made the changes.
https://github.com/llvm/llvm-project/pull/122582
More information about the llvm-commits
mailing list