[llvm] [AArch64][GlobalISel] Add codegen for simd fpcvt intrinsics (PR #157680)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 10 00:40:52 PDT 2025
================
@@ -5232,19 +5232,54 @@ defm FCVTZU : FPToIntegerUnscaled<0b11, 0b001, "fcvtzu", any_fp_to_uint>;
defm FCVTZS : FPToIntegerScaled<0b11, 0b000, "fcvtzs", any_fp_to_sint>;
defm FCVTZU : FPToIntegerScaled<0b11, 0b001, "fcvtzu", any_fp_to_uint>;
+defm FCVTAS : SIMDFPTwoScalarFCVT< 0, 0, 0b11100, "fcvtas", int_aarch64_neon_fcvtas>;
----------------
davemgreen wrote:
In relation to this from #156892
> I wanted to keep patterns together and unfortunately in tablegen you need to define records above their usage so I needed to move these instructions up.
Could we keep the instructions together with the correct kinds, and move the patterns later? I think it's OK to move the patterns later if you wanted to keep them together.
https://github.com/llvm/llvm-project/pull/157680
More information about the llvm-commits
mailing list