[llvm] [AArch64] Correct SCVTF/UCVTF instructions for vector input (PR #152974)

Amina Chabane via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 9 02:22:21 PDT 2025


================
@@ -449,3 +435,26 @@ define <1 x float> @ucvtf_f32i64_simple(<1 x i64> %x) {
  %conv = uitofp <1 x i64> %x to <1 x float>
  ret <1 x float> %conv
 }
+
+define <1 x double> @uitofp_sext_v2i32_extract_lane0(<2 x i32> %x) {
+; CHECK-LABEL: uitofp_sext_v2i32_extract_lane0:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    sshll v0.2d, v0.2s, #0
+; CHECK-NEXT:    ucvtf v0.2d, v0.2d
+; CHECK-NEXT:    // kill: def $d0 killed $d0 killed $q0
+; CHECK-NOT:     ucvtf d0, s0
----------------
Amichaxx wrote:

Duly noted. I've since removed the CHECK-NOT lines I added.

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


More information about the llvm-commits mailing list