[clang] [RISCV][FMV] Remove support for negative priority (PR #112161)
Piyou Chen via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 13 22:40:25 PDT 2024
================
@@ -111,3 +111,9 @@ __attribute__((target_version("default"))) int invalidVerson4(void) { return 2;
__attribute__((target_version("priority=1"))) int prioriyWithoutArch(void) { return 2; }
// expected-error at +1 {{redefinition of 'prioriyWithoutArch'}}
__attribute__((target_version("default"))) int prioriyWithoutArch(void) { return 2; }
+
+// expected-warning at +2 {{unsupported '-1' in the 'target_version' attribute string; 'target_version' attribute ignored}}
----------------
BeMg wrote:
I plan to create another PR to make the warning messages consistent.
https://github.com/llvm/llvm-project/pull/112161
More information about the cfe-commits
mailing list