[llvm] CodeGen: Add ISD::AssertNoFPClass (PR #135946)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 21 02:15:25 PDT 2025


================
@@ -0,0 +1,12 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc --mtriple=aarch64-linux-gnu < %s | FileCheck %s
+
+define nofpclass(nzero) float @f(float noundef nofpclass(nan) %a, float noundef nofpclass(nan) %b) {
+; CHECK-LABEL: f:
+; CHECK:       // %bb.0: // %entry
+; CHECK-NEXT:    fmaxnm s0, s0, s1
+; CHECK-NEXT:    ret
+entry:
+  %cond = tail call float @llvm.maximumnum.f32(float %a, float %b)
+  ret float %cond
+}
----------------
arsenm wrote:

Also test a vector case. And what about uniform float aggregates? 

https://github.com/llvm/llvm-project/pull/135946


More information about the llvm-commits mailing list