[llvm] [DAG] Add generic expansion for ISD::FCANONICALIZE nodes (PR #142105)
Dominik Steenken via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 30 03:09:48 PDT 2025
================
@@ -0,0 +1,131 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --default-march s390x-unknown-linux-gnu --version 5
+; RUN: llc -mtriple=s390x-linux-gnu -mcpu=z16 < %s | FileCheck %s -check-prefixes=Z16
+
+define float @canonicalize_fp32(float %a) {
----------------
dominik-steenken wrote:
I have added half and extended fp tests. From what i understand, the other touched targets had already implemented their own legalization of `fcanonicalize`, and would have added tests for all of their supported floating point types then. This PR should not change anything there - the targets only needed to be touched since they assumed that common code would not expand by default.
https://github.com/llvm/llvm-project/pull/142105
More information about the llvm-commits
mailing list