[llvm] [LoongArch] Use LSX for scalar FP rounding with explicit rounding mode (PR #114766)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 4 03:05:58 PST 2024
================
@@ -0,0 +1,123 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
+
+;; ceilf
+define float @ceil_f32(float %i) nounwind {
+; CHECK-LABEL: ceil_f32:
----------------
zhaoqi5 wrote:
Thanks for your review!
You are right. Without this commit, `llvm.{ceil/floor/trunc/roundeven}` intrinsics were expanded at the loongarch backend. A call to the function in libm was generated.
https://github.com/llvm/llvm-project/pull/114766
More information about the llvm-commits
mailing list