[llvm] [AArch64] Fixup destructive floating-point precision conversions (PR #118788)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 06:44:48 PST 2024


================
@@ -4268,17 +4269,16 @@ let Predicates = [HasSVE2p2orSME2p2] in {
   defm FCVT_ZPzZ : sve_fp_z2op_p_zd_b_0<"fcvt", "int_aarch64_sve_fcvt">;
 
   // SVE2p2 floating-point convert precision down (placing odd), zeroing predicate
-  defm FCVTNT_ZPzZ      : sve_fp_fcvtntz<"fcvtnt">;
-  def FCVTXNT_ZPzZ_DtoS : sve_fp_fcvt2z<0b0010, "fcvtxnt", ZPR32, ZPR64>;
+  defm FCVTNT_ZPzZ : sve2_fp_convert_down_narrow_z<"fcvtnt">;
+  def FCVTXNT_ZPzZ : sve2_fp_convert_precision<0b0010, 0b0, "fcvtxnt", ZPR32, ZPR64, /*destructive*/ true>;
----------------
SpencerAbson wrote:

This patch hasn't changed whether `FCVTNT`/`FCVTXNT` can be movprfx'd - IIUC, the existing `movprfx` tests in in `MC/AArch64/SVE2p2/fcvtxnt_z-diagnostics.s` and `MC/AArch64/SVE2p2/fcvtnt_z-diagnostics.s` should not need to be changed? 

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


More information about the llvm-commits mailing list