Tested as described in the covering note.  I plan to commit this as obvious
if the prerequisites are approved.

gcc/
        * config/arc/arc.md (cpu_facility): Turn into a code,alternative
        attribute.
        (enabled): Likewise.

diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md
index 1d070a3..5477260 100644
--- a/gcc/config/arc/arc.md
+++ b/gcc/config/arc/arc.md
@@ -231,7 +231,8 @@
 
 ; for ARCv2 we need to disable/enable different instruction alternatives
 (define_attr "cpu_facility" "std,av1,av2"
-  (const_string "std"))
+  (const_string "std")
+  "code,alternative")
 
 ; We should consider all the instructions enabled until otherwise
 (define_attr "enabled" "no,yes"
@@ -243,7 +244,8 @@
              (not (match_test "TARGET_V2")))
         (const_string "no")
         ]
-       (const_string "yes")))
+       (const_string "yes"))
+  "code,alternative")
 
 (define_attr "predicable" "no,yes" (const_string "no"))
 ;; if 'predicable' were not so brain-dead, we would specify:

Reply via email to