[llvm] [AArch64][GlobalISel] Add codegen for simd fpcvt instructions (PR #156892)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 8 06:29:34 PDT 2025


================
@@ -7949,6 +7950,21 @@ multiclass SIMDFPTwoScalar<bit U, bit S, bits<5> opc, string asm> {
   }
 }
 
+let mayRaiseFPException = 1, Uses = [FPCR] in
+multiclass SIMDFPTwoScalarFCVT<bit U, bit S, bits<5> opc, string asm,
+                               SDPatternOperator OpN> {
+  let Predicates = [HasNEONandIsStreamingSafe], FastISelShouldIgnore = 1  in {
----------------
CarolineConcatto wrote:

Another question is, I cannot find the description of these instructions  on developer.arm. Where the converts vector in and out has the same size.
This one:
https://developer.arm.com/documentation/ddi0602/2025-06/SIMD-FP-Instructions/FCVTAU--vector---Floating-point-convert-to-unsigned-integer--rounding-to-nearest-with-ties-to-away--vector--?lang=en
only have form half to half

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


More information about the llvm-commits mailing list