Skip to content

Commit 302aa53

Browse files
Add an explicit COPY_TO_REGCLASS in the no-NEON pattern
1 parent 49c7501 commit 302aa53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.td

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8527,7 +8527,9 @@ def : Pat<(v4f32 (any_fpextend (extract_high_v8bf16 (v8bf16 V128:$Rn)))),
85278527
// Fallback pattern for when we don't have NEON
85288528
def : Pat<(f32 (any_fpextend (bf16 FPR16:$Rn))),
85298529
(f32 (COPY_TO_REGCLASS
8530-
(i32 (UBFMWri (i32 (SUBREG_TO_REG (i32 0), (bf16 FPR16:$Rn), hsub)),
8530+
(i32 (UBFMWri (COPY_TO_REGCLASS
8531+
(f32 (SUBREG_TO_REG (i32 0), (bf16 FPR16:$Rn), hsub)),
8532+
GPR32),
85318533
(i64 16), (i64 15))),
85328534
FPR32))>;
85338535

0 commit comments

Comments
 (0)