[llvm] [AArch64] Codegen for new SCVTF/UCVTF variants (FEAT_FPRCVT) (PR #123767)
Virginia Cangelosi via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 03:15:34 PST 2025
================
@@ -5511,6 +5511,15 @@ multiclass IntegerToFPSIMDScalar<bits<2> rmode, bits<3> opcode, string asm, SDPa
let Inst{31} = 1; // 64-bit FPR flag
let Inst{23-22} = 0b00; // 32-bit FPR flag
}
+
+ def : Pat<(f16 (any_fpround (f32 (op (i32 FPR32:$Rn))))),
+ (!cast<Instruction>(NAME # HSr) $Rn)>;
+ def : Pat<(f64 (op (i32 (extractelt (v4i32 V128:$Rn), (i64 0))))),
----------------
virginia-cangelosi wrote:
No problem, thank you for your comments. I have implemented the changes hopefully this is what you were aiming for. I agree that its a good idea to show the negative tests as you both said
https://github.com/llvm/llvm-project/pull/123767
More information about the llvm-commits
mailing list