From 6601ce54f7b114dcf2a31fa0f9dd5f5ebb150835 Mon Sep 17 00:00:00 2001 From: blunce Date: Thu, 29 May 2025 15:47:26 +0800 Subject: [PATCH 1/2] xxxx --- gcc/gimple-ssa-expand-sve.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/gimple-ssa-expand-sve.cc b/gcc/gimple-ssa-expand-sve.cc index bd7f88cfa9d..91c380f3815 100644 --- a/gcc/gimple-ssa-expand-sve.cc +++ b/gcc/gimple-ssa-expand-sve.cc @@ -198,6 +198,9 @@ private: return false; } + + fdsfas + const char *get_type_name_arg (tree main_type) { enum tree_code code = TREE_CODE (main_type); -- Gitee From d02e3d2444720ef0890bd45fb45d4d67f24a93aa Mon Sep 17 00:00:00 2001 From: blunce Date: Tue, 17 Jun 2025 17:32:14 +0800 Subject: [PATCH 2/2] [SVE] Add SVE constraint --- gcc/gimple-ssa-expand-sve.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/gimple-ssa-expand-sve.cc b/gcc/gimple-ssa-expand-sve.cc index 91c380f3815..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; @@ -198,9 +204,6 @@ private: return false; } - - fdsfas - const char *get_type_name_arg (tree main_type) { enum tree_code code = TREE_CODE (main_type); -- Gitee