[llvm] [IR] Add `llvm.modf` intrinsic (PR #121948)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 6 06:57:42 PST 2025
================
@@ -0,0 +1,57 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --filter "(bl|ptrue)" --version 5
+; RUN: llc -mtriple=aarch64-gnu-linux -mattr=+neon,+sve -vector-library=sleefgnuabi < %s | FileCheck %s -check-prefix=SLEEF
+; RUN: llc -mtriple=aarch64-gnu-linux -mattr=+neon,+sve -vector-library=ArmPL < %s | FileCheck %s -check-prefix=ARMPL
+
+define <4 x float> @test_modf_v4f32(<4 x float> %x, ptr %out_integral) {
+; SLEEF-LABEL: test_modf_v4f32:
+; SLEEF: bl _ZGVnN4vl4_modff
+;
+; ARMPL-LABEL: test_modf_v4f32:
+; ARMPL: bl armpl_vmodfq_f32
----------------
MacDue wrote:
Sure, I've removed the filtering. I'll add a few negative tests later on (I think there's some already for sincos/frexp for the store folding, but possibly not testing vectors too).
https://github.com/llvm/llvm-project/pull/121948
More information about the llvm-commits
mailing list