[PR68432 17/22] Use code,alternative attributes for s390

Richard Sandiford richard.sandiford@arm.com
Wed Nov 25 12:33:00 GMT 2015


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

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

diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md
index a5335ca..aca5233 100644
--- a/gcc/config/s390/s390.md
+++ b/gcc/config/s390/s390.md
@@ -437,7 +437,8 @@
 
 (define_attr "cpu_facility"
   "standard,ieee,zarch,cpu_zarch,longdisp,extimm,dfp,z10,z196,zEC12,vec"
-  (const_string "standard"))
+  (const_string "standard")
+  "code,alternative")
 
 (define_attr "enabled" ""
   (cond [(eq_attr "cpu_facility" "standard")
@@ -482,7 +483,8 @@
          (and (eq_attr "cpu_facility" "vec")
               (match_test "TARGET_VX"))
 	 (const_int 1)]
-	(const_int 0)))
+	(const_int 0))
+  "code,alternative")
 
 ;; Pipeline description for z900.  For lack of anything better,
 ;; this description is also used for the g5 and g6.



More information about the Gcc-patches mailing list