[llvm-branch-commits] [llvm] [AArch64] Add SVE lowering for FP_TO_[US]INT_SAT. (PR #207201)
Benjamin Maxwell via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jul 8 09:27:44 PDT 2026
================
@@ -0,0 +1,144 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc < %s -mtriple=aarch64 -mattr=+sve | FileCheck %s
+
+;define <vscale x 2 x i32> @fptosi_nxv2f64_to_nxv2i32(<vscale x 2 x double> %f) {
+; %res = call <vscale x 2 x i32> @llvm.fptosi.sat(<vscale x 2 x double> %f)
+; ret <vscale x 2 x i32> %res
+;}
+;
+;define <vscale x 4 x i32> @fptosi_nxv4f64_to_nxv4i32(<vscale x 4 x double> %f) {
+; %res = call <vscale x 4 x i32> @llvm.fptosi.sat(<vscale x 4 x double> %f)
+; ret <vscale x 4 x i32> %res
+;}
+;
+;define <vscale x 8 x i32> @fptosi_nxv8f64_to_nxv8i32(<vscale x 8 x double> %f) {
+; %res = call <vscale x 8 x i32> @llvm.fptosi.sat(<vscale x 8 x double> %f)
+; ret <vscale x 8 x i32> %res
+;}
+;
----------------
MacDue wrote:
Why are these (and other) tests commented out? Is there an issue that should have a TODO/FIXME?
https://github.com/llvm/llvm-project/pull/207201
More information about the llvm-branch-commits
mailing list