[llvm] [ARM]: codegen `llvm.roundeven.v*` (PR #141786)
Folkert de Vries via llvm-commits
llvm-commits at lists.llvm.org
Thu May 29 09:01:12 PDT 2025
================
@@ -0,0 +1,78 @@
+; RUN: llc -mtriple=armv8 -mattr=+neon %s -o - | FileCheck %s
+
+; The llvm.arm.neon.frintn intrinsic should be auto-upgraded to the
+; target-independent roundeven intrinsic.
+
+define <4 x half> @frintn_4h(<4 x half> %A) nounwind {
+;CHECK-LABEL: frintn_4h:
+;CHECK: bl llvm.arm.neon.frintn.v4f16
+ %tmp3 = call <4 x half> @llvm.arm.neon.frintn.v4f16(<4 x half> %A)
----------------
folkertdev wrote:
Well, I can't get that to work, despite this test using it and that test working on my machine. I'm using the same `RUN` line, so idk?
https://github.com/llvm/llvm-project/blob/67a0844812f545586104135f4cbf5a2aaaa8466f/llvm/test/CodeGen/ARM/armv8.2a-fp16-vector-intrinsics.ll#L489-L509
Anyway, that means it's already tested elsewhere, so duplicating that doesn't seem that valuable.
https://github.com/llvm/llvm-project/pull/141786
More information about the llvm-commits
mailing list