From 499bec4f75a9f8846e7a7f2bf7b537debb12d384 Mon Sep 17 00:00:00 2001 From: blunce Date: Tue, 17 Jun 2025 18:10:02 +0800 Subject: [PATCH] [SVE] Add SVE constraint. --- gcc/gimple-ssa-expand-sve.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/gimple-ssa-expand-sve.cc b/gcc/gimple-ssa-expand-sve.cc index bd7f88cfa9d..12f5fe3ab4e 100644 --- a/gcc/gimple-ssa-expand-sve.cc +++ b/gcc/gimple-ssa-expand-sve.cc @@ -35,6 +35,9 @@ along with GCC; see the file COPYING3. If not see #include "cfgloop.h" #include "gimple-ssa.h" #include "gimple-pretty-print.h" +#ifdef __aarch64__ +#include "config/aarch64/aarch64.h" +#endif namespace { @@ -95,6 +98,9 @@ public: if (!flag_find_with_sve) return false; + if (!TARGET_SVE) + return false; + if (!targetm.vector_mode_supported_p (V2DImode)) return false; -- Gitee